@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
|
@@ -91,7 +91,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
91
91
|
]);
|
|
92
92
|
var root = $.from_html(`<!> <!>`, 1);
|
|
93
93
|
var root_1 = $.from_html(`<dl><!></dl>`);
|
|
94
|
-
function Descriptions
|
|
94
|
+
function Descriptions($$anchor, $$props) {
|
|
95
95
|
$.push($$props, true);
|
|
96
96
|
injectComponentStyle("descriptions");
|
|
97
97
|
let layout = $.prop($$props, "layout", 3, "horizontal"), bordered = $.prop($$props, "bordered", 3, false), column = $.prop($$props, "column", 3, 1), rest = $.rest_props($$props, rest_excludes);
|
|
@@ -156,15 +156,4 @@ function Descriptions$1($$anchor, $$props) {
|
|
|
156
156
|
$.pop();
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
|
-
|
|
160
|
-
/** A ledger laid flat: term and detail pairs in one quiet grid. The
|
|
161
|
-
* horizontal layout reads as a table of two columns; the vertical one
|
|
162
|
-
* stacks each pair for narrow measures. */
|
|
163
|
-
const Descriptions = Object.assign(Descriptions$1, {
|
|
164
|
-
Root: Descriptions$1,
|
|
165
|
-
Item: DescriptionsItem,
|
|
166
|
-
Term: DescriptionsTerm,
|
|
167
|
-
Detail: DescriptionsDetail
|
|
168
|
-
});
|
|
169
|
-
//#endregion
|
|
170
|
-
export { Descriptions as t };
|
|
159
|
+
export { DescriptionsDetail as i, DescriptionsTerm as n, DescriptionsItem as r, Descriptions as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as iconHtml } from "./icon-CKL_BxrZ.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as iconHtml } from "./icon-CKL_BxrZ.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
1
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
2
2
|
import { t as Button } from "./button-Cl45zjdj.mjs";
|
|
3
3
|
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
4
4
|
import { t as ButtonGroup } from "./button-group-D9mgSVlR.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { t as useElementId } from "./id-Alz497yI.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
|
+
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
|
+
"variant",
|
|
14
|
+
"children"
|
|
15
|
+
]);
|
|
16
|
+
function PaginationRoot($$anchor, $$props) {
|
|
17
|
+
const generatedId = $.props_id();
|
|
18
|
+
$.push($$props, true);
|
|
19
|
+
injectComponentStyle("pagination");
|
|
20
|
+
let size = $.prop($$props, "size", 3, "md"), variant = $.prop($$props, "variant", 3, "default"), rest = $.rest_props($$props, rest_excludes$1);
|
|
21
|
+
const id = $.derived(() => useElementId("pagination", generatedId, $$props.id));
|
|
22
|
+
var fragment = $.comment();
|
|
23
|
+
var node = $.first_child(fragment);
|
|
24
|
+
{
|
|
25
|
+
let $0 = $.derived(() => variant() === "simple" ? variant() : void 0);
|
|
26
|
+
$.component(node, () => Pagination.Root, ($$anchor, ArkPagination_Root) => {
|
|
27
|
+
ArkPagination_Root($$anchor, $.spread_props(() => rest, {
|
|
28
|
+
get id() {
|
|
29
|
+
return $.get(id);
|
|
30
|
+
},
|
|
31
|
+
get "data-size"() {
|
|
32
|
+
return size();
|
|
33
|
+
},
|
|
34
|
+
get "data-variant"() {
|
|
35
|
+
return $.get($0);
|
|
36
|
+
},
|
|
37
|
+
children: ($$anchor, $$slotProps) => {
|
|
38
|
+
var fragment_1 = $.comment();
|
|
39
|
+
var node_1 = $.first_child(fragment_1);
|
|
40
|
+
$.snippet(node_1, () => $$props.children ?? $.noop);
|
|
41
|
+
$.append($$anchor, fragment_1);
|
|
42
|
+
},
|
|
43
|
+
$$slots: { default: true }
|
|
44
|
+
}));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
$.append($$anchor, fragment);
|
|
48
|
+
$.pop();
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/pagination/Pagination.svelte
|
|
52
|
+
var rest_excludes = /* @__PURE__ */ new Set([
|
|
53
|
+
"$$slots",
|
|
54
|
+
"$$events",
|
|
55
|
+
"$$legacy",
|
|
56
|
+
"page",
|
|
57
|
+
"defaultValue",
|
|
58
|
+
"count",
|
|
59
|
+
"pageSize",
|
|
60
|
+
"defaultPageSize",
|
|
61
|
+
"siblingCount",
|
|
62
|
+
"label",
|
|
63
|
+
"variant",
|
|
64
|
+
"children"
|
|
65
|
+
]);
|
|
66
|
+
var root = $.from_html(`<span data-scope="pagination" data-part="status"> </span>`);
|
|
67
|
+
var root_1 = $.from_html(`<!> <!> <!> <!>`, 1);
|
|
68
|
+
function Pagination$1($$anchor, $$props) {
|
|
69
|
+
$.push($$props, true);
|
|
70
|
+
const paginationContent = ($$anchor, pagination = $.noop) => {
|
|
71
|
+
var fragment = $.comment();
|
|
72
|
+
var node = $.first_child(fragment);
|
|
73
|
+
var consequent = ($$anchor) => {
|
|
74
|
+
var span = root();
|
|
75
|
+
var text = $.only_child(span);
|
|
76
|
+
$.template_effect(($0, $1) => $.set_text(text, `${$0 ?? ""} / ${$1 ?? ""}`), [() => pagination()().page, () => pagination()().totalPages]);
|
|
77
|
+
$.append($$anchor, span);
|
|
78
|
+
};
|
|
79
|
+
var alternate_1 = ($$anchor) => {
|
|
80
|
+
var fragment_1 = $.comment();
|
|
81
|
+
var node_1 = $.first_child(fragment_1);
|
|
82
|
+
$.each(node_1, 19, () => pagination()().pages, (item, index) => item.type === "page" ? item.value : `ellipsis-${index}`, ($$anchor, item, index) => {
|
|
83
|
+
var fragment_2 = $.comment();
|
|
84
|
+
var node_2 = $.first_child(fragment_2);
|
|
85
|
+
var consequent_1 = ($$anchor) => {
|
|
86
|
+
var fragment_3 = $.comment();
|
|
87
|
+
var node_3 = $.first_child(fragment_3);
|
|
88
|
+
$.component(node_3, () => Pagination.Item, ($$anchor, ArkPagination_Item) => {
|
|
89
|
+
ArkPagination_Item($$anchor, {
|
|
90
|
+
type: "page",
|
|
91
|
+
get value() {
|
|
92
|
+
return $.get(item).value;
|
|
93
|
+
},
|
|
94
|
+
children: ($$anchor, $$slotProps) => {
|
|
95
|
+
$.next();
|
|
96
|
+
var text_1 = $.text();
|
|
97
|
+
$.template_effect(() => $.set_text(text_1, $.get(item).value));
|
|
98
|
+
$.append($$anchor, text_1);
|
|
99
|
+
},
|
|
100
|
+
$$slots: { default: true }
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
$.append($$anchor, fragment_3);
|
|
104
|
+
};
|
|
105
|
+
var alternate = ($$anchor) => {
|
|
106
|
+
var fragment_5 = $.comment();
|
|
107
|
+
var node_4 = $.first_child(fragment_5);
|
|
108
|
+
$.component(node_4, () => Pagination.Ellipsis, ($$anchor, ArkPagination_Ellipsis) => {
|
|
109
|
+
ArkPagination_Ellipsis($$anchor, {
|
|
110
|
+
get index() {
|
|
111
|
+
return $.get(index);
|
|
112
|
+
},
|
|
113
|
+
children: ($$anchor, $$slotProps) => {
|
|
114
|
+
$.next();
|
|
115
|
+
var text_2 = $.text("…");
|
|
116
|
+
$.append($$anchor, text_2);
|
|
117
|
+
},
|
|
118
|
+
$$slots: { default: true }
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
$.append($$anchor, fragment_5);
|
|
122
|
+
};
|
|
123
|
+
$.if(node_2, ($$render) => {
|
|
124
|
+
if ($.get(item).type === "page") $$render(consequent_1);
|
|
125
|
+
else $$render(alternate, -1);
|
|
126
|
+
});
|
|
127
|
+
$.append($$anchor, fragment_2);
|
|
128
|
+
});
|
|
129
|
+
$.append($$anchor, fragment_1);
|
|
130
|
+
};
|
|
131
|
+
$.if(node, ($$render) => {
|
|
132
|
+
if (variant() === "simple") $$render(consequent);
|
|
133
|
+
else $$render(alternate_1, -1);
|
|
134
|
+
});
|
|
135
|
+
$.append($$anchor, fragment);
|
|
136
|
+
};
|
|
137
|
+
let page = $.prop($$props, "page", 15), count = $.prop($$props, "count", 3, 0), siblingCount = $.prop($$props, "siblingCount", 3, 1), variant = $.prop($$props, "variant", 3, "default"), rest = $.rest_props($$props, rest_excludes);
|
|
138
|
+
PaginationRoot($$anchor, $.spread_props({
|
|
139
|
+
get count() {
|
|
140
|
+
return count();
|
|
141
|
+
},
|
|
142
|
+
get defaultPage() {
|
|
143
|
+
return $$props.defaultValue;
|
|
144
|
+
},
|
|
145
|
+
get pageSize() {
|
|
146
|
+
return $$props.pageSize;
|
|
147
|
+
},
|
|
148
|
+
get defaultPageSize() {
|
|
149
|
+
return $$props.defaultPageSize;
|
|
150
|
+
},
|
|
151
|
+
get siblingCount() {
|
|
152
|
+
return siblingCount();
|
|
153
|
+
},
|
|
154
|
+
get variant() {
|
|
155
|
+
return variant();
|
|
156
|
+
},
|
|
157
|
+
get "aria-label"() {
|
|
158
|
+
return $$props.label;
|
|
159
|
+
}
|
|
160
|
+
}, () => rest, {
|
|
161
|
+
get page() {
|
|
162
|
+
return page();
|
|
163
|
+
},
|
|
164
|
+
set page($$value) {
|
|
165
|
+
page($$value);
|
|
166
|
+
},
|
|
167
|
+
children: ($$anchor, $$slotProps) => {
|
|
168
|
+
var fragment_7 = root_1();
|
|
169
|
+
var node_5 = $.first_child(fragment_7);
|
|
170
|
+
$.component(node_5, () => Pagination.PrevTrigger, ($$anchor, ArkPagination_PrevTrigger) => {
|
|
171
|
+
ArkPagination_PrevTrigger($$anchor, {
|
|
172
|
+
"aria-label": "Previous page",
|
|
173
|
+
children: ($$anchor, $$slotProps) => {
|
|
174
|
+
InternalIcon($$anchor, { name: "chevron-left" });
|
|
175
|
+
},
|
|
176
|
+
$$slots: { default: true }
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
var node_6 = $.sibling(node_5, 2);
|
|
180
|
+
{
|
|
181
|
+
const render = ($$anchor, pagination = $.noop) => {
|
|
182
|
+
paginationContent($$anchor, pagination);
|
|
183
|
+
};
|
|
184
|
+
$.component(node_6, () => Pagination.Context, ($$anchor, ArkPagination_Context) => {
|
|
185
|
+
ArkPagination_Context($$anchor, {
|
|
186
|
+
render,
|
|
187
|
+
$$slots: { render: true }
|
|
188
|
+
});
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
var node_7 = $.sibling(node_6, 2);
|
|
192
|
+
$.component(node_7, () => Pagination.NextTrigger, ($$anchor, ArkPagination_NextTrigger) => {
|
|
193
|
+
ArkPagination_NextTrigger($$anchor, {
|
|
194
|
+
"aria-label": "Next page",
|
|
195
|
+
children: ($$anchor, $$slotProps) => {
|
|
196
|
+
InternalIcon($$anchor, { name: "chevron-right" });
|
|
197
|
+
},
|
|
198
|
+
$$slots: { default: true }
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
var node_8 = $.sibling(node_7, 2);
|
|
202
|
+
$.snippet(node_8, () => $$props.children ?? $.noop);
|
|
203
|
+
$.append($$anchor, fragment_7);
|
|
204
|
+
},
|
|
205
|
+
$$slots: { default: true }
|
|
206
|
+
}));
|
|
207
|
+
$.pop();
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
export { PaginationRoot as n, Pagination$1 as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as iconHtml } from "./icon-CKL_BxrZ.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
"defaultValue",
|
|
50
|
+
"min",
|
|
51
|
+
"max",
|
|
52
|
+
"label",
|
|
53
|
+
"variant",
|
|
54
|
+
"size",
|
|
55
|
+
"disabled",
|
|
56
|
+
"children"
|
|
57
|
+
]);
|
|
58
|
+
var root = $.from_html(`<div data-scope="progress" data-part="view" data-view="dashboard"><div aria-hidden="true" data-scope="progress" data-part="dash-ring"></div> <!></div>`);
|
|
59
|
+
var root_1 = $.from_html(`<!> <!> <!>`, 1);
|
|
60
|
+
function Progress$1($$anchor, $$props) {
|
|
61
|
+
$.push($$props, true);
|
|
62
|
+
let value = $.prop($$props, "value", 15), variant = $.prop($$props, "variant", 3, "linear"), size = $.prop($$props, "size", 3, "md"), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
63
|
+
const dashboardPercent = $.derived(() => {
|
|
64
|
+
const lower = $$props.min ?? 0;
|
|
65
|
+
const upper = $$props.max ?? 100;
|
|
66
|
+
const percent = ((value() ?? $$props.defaultValue ?? lower + (upper - lower) / 2) - lower) / (upper - lower) * 100;
|
|
67
|
+
return !Number.isFinite(percent) ? 0 : Math.min(100, Math.max(0, percent));
|
|
68
|
+
});
|
|
69
|
+
ProgressRoot($$anchor, $.spread_props({
|
|
70
|
+
get defaultValue() {
|
|
71
|
+
return $$props.defaultValue;
|
|
72
|
+
},
|
|
73
|
+
get min() {
|
|
74
|
+
return $$props.min;
|
|
75
|
+
},
|
|
76
|
+
get max() {
|
|
77
|
+
return $$props.max;
|
|
78
|
+
},
|
|
79
|
+
get disabled() {
|
|
80
|
+
return disabled();
|
|
81
|
+
},
|
|
82
|
+
get size() {
|
|
83
|
+
return size();
|
|
84
|
+
},
|
|
85
|
+
get "data-variant"() {
|
|
86
|
+
return variant();
|
|
87
|
+
}
|
|
88
|
+
}, () => rest, {
|
|
89
|
+
get value() {
|
|
90
|
+
return value();
|
|
91
|
+
},
|
|
92
|
+
set value($$value) {
|
|
93
|
+
value($$value);
|
|
94
|
+
},
|
|
95
|
+
children: ($$anchor, $$slotProps) => {
|
|
96
|
+
var fragment_1 = root_1();
|
|
97
|
+
var node = $.first_child(fragment_1);
|
|
98
|
+
var consequent = ($$anchor) => {
|
|
99
|
+
var fragment_2 = $.comment();
|
|
100
|
+
var node_1 = $.first_child(fragment_2);
|
|
101
|
+
$.component(node_1, () => Progress.Label, ($$anchor, ArkProgress_Label) => {
|
|
102
|
+
ArkProgress_Label($$anchor, {
|
|
103
|
+
children: ($$anchor, $$slotProps) => {
|
|
104
|
+
$.next();
|
|
105
|
+
var text = $.text();
|
|
106
|
+
$.template_effect(() => $.set_text(text, $$props.label));
|
|
107
|
+
$.append($$anchor, text);
|
|
108
|
+
},
|
|
109
|
+
$$slots: { default: true }
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
$.append($$anchor, fragment_2);
|
|
113
|
+
};
|
|
114
|
+
$.if(node, ($$render) => {
|
|
115
|
+
if ($$props.label) $$render(consequent);
|
|
116
|
+
});
|
|
117
|
+
var node_2 = $.sibling(node, 2);
|
|
118
|
+
var consequent_1 = ($$anchor) => {
|
|
119
|
+
var div = root();
|
|
120
|
+
var div_1 = $.child(div);
|
|
121
|
+
let styles;
|
|
122
|
+
var node_3 = $.sibling(div_1, 2);
|
|
123
|
+
$.component(node_3, () => Progress.ValueText, ($$anchor, ArkProgress_ValueText) => {
|
|
124
|
+
ArkProgress_ValueText($$anchor, {});
|
|
125
|
+
});
|
|
126
|
+
$.reset(div);
|
|
127
|
+
$.template_effect(($0) => styles = $.set_style(div_1, "", styles, { "--percent": $0 }), [() => String($.get(dashboardPercent))]);
|
|
128
|
+
$.append($$anchor, div);
|
|
129
|
+
};
|
|
130
|
+
var consequent_2 = ($$anchor) => {
|
|
131
|
+
var fragment_4 = $.comment();
|
|
132
|
+
var node_4 = $.first_child(fragment_4);
|
|
133
|
+
$.component(node_4, () => Progress.View, ($$anchor, ArkProgress_View) => {
|
|
134
|
+
ArkProgress_View($$anchor, {
|
|
135
|
+
view: "circle",
|
|
136
|
+
children: ($$anchor, $$slotProps) => {
|
|
137
|
+
var fragment_5 = $.comment();
|
|
138
|
+
var node_5 = $.first_child(fragment_5);
|
|
139
|
+
$.component(node_5, () => Progress.Circle, ($$anchor, ArkProgress_Circle) => {
|
|
140
|
+
ArkProgress_Circle($$anchor, {
|
|
141
|
+
children: ($$anchor, $$slotProps) => {
|
|
142
|
+
var fragment_6 = $.comment();
|
|
143
|
+
var node_6 = $.first_child(fragment_6);
|
|
144
|
+
$.component(node_6, () => Progress.CircleRange, ($$anchor, ArkProgress_CircleRange) => {
|
|
145
|
+
ArkProgress_CircleRange($$anchor, {});
|
|
146
|
+
});
|
|
147
|
+
$.append($$anchor, fragment_6);
|
|
148
|
+
},
|
|
149
|
+
$$slots: { default: true }
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
$.append($$anchor, fragment_5);
|
|
153
|
+
},
|
|
154
|
+
$$slots: { default: true }
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
$.append($$anchor, fragment_4);
|
|
158
|
+
};
|
|
159
|
+
var alternate = ($$anchor) => {
|
|
160
|
+
var fragment_7 = $.comment();
|
|
161
|
+
var node_7 = $.first_child(fragment_7);
|
|
162
|
+
$.component(node_7, () => Progress.Track, ($$anchor, ArkProgress_Track) => {
|
|
163
|
+
ArkProgress_Track($$anchor, {
|
|
164
|
+
children: ($$anchor, $$slotProps) => {
|
|
165
|
+
var fragment_8 = $.comment();
|
|
166
|
+
var node_8 = $.first_child(fragment_8);
|
|
167
|
+
$.component(node_8, () => Progress.Range, ($$anchor, ArkProgress_Range) => {
|
|
168
|
+
ArkProgress_Range($$anchor, {});
|
|
169
|
+
});
|
|
170
|
+
$.append($$anchor, fragment_8);
|
|
171
|
+
},
|
|
172
|
+
$$slots: { default: true }
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
$.append($$anchor, fragment_7);
|
|
176
|
+
};
|
|
177
|
+
$.if(node_2, ($$render) => {
|
|
178
|
+
if (variant() === "dashboard") $$render(consequent_1);
|
|
179
|
+
else if (variant() === "circle") $$render(consequent_2, 1);
|
|
180
|
+
else $$render(alternate, -1);
|
|
181
|
+
});
|
|
182
|
+
var node_9 = $.sibling(node_2, 2);
|
|
183
|
+
$.snippet(node_9, () => $$props.children ?? $.noop);
|
|
184
|
+
$.append($$anchor, fragment_1);
|
|
185
|
+
},
|
|
186
|
+
$$slots: { default: true }
|
|
187
|
+
}));
|
|
188
|
+
$.pop();
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
export { ProgressRoot as n, Progress$1 as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "./id-Alz497yI.mjs";
|
|
2
|
-
import { t as InternalIcon } from "./InternalIcon-
|
|
2
|
+
import { t as InternalIcon } from "./InternalIcon-Dr81WIG1.mjs";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as $ from "svelte/internal/client";
|
|
5
5
|
import { injectComponentStyle } from "@bysages/core/styling";
|