@agentage/components 0.0.0-stage → 0.21.1
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 +21 -0
- package/README.md +207 -2
- package/dist/components/accordion.context.d.ts +17 -0
- package/dist/components/accordion.context.d.ts.map +1 -0
- package/dist/components/accordion.context.js +14 -0
- package/dist/components/accordion.d.ts +27 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +90 -0
- package/dist/components/accordion.trigger.d.ts +11 -0
- package/dist/components/accordion.trigger.d.ts.map +1 -0
- package/dist/components/accordion.trigger.js +57 -0
- package/dist/components/action-bar.d.ts +29 -0
- package/dist/components/action-bar.d.ts.map +1 -0
- package/dist/components/action-bar.js +119 -0
- package/dist/components/action-bar.parts.d.ts +23 -0
- package/dist/components/action-bar.parts.d.ts.map +1 -0
- package/dist/components/action-bar.parts.js +117 -0
- package/dist/components/alert.d.ts +17 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +73 -0
- package/dist/components/avatar.d.ts +22 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +82 -0
- package/dist/components/badge.d.ts +20 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +32 -0
- package/dist/components/breadcrumb.d.ts +12 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +70 -0
- package/dist/components/button.d.ts +17 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +43 -0
- package/dist/components/button.variants.d.ts +5 -0
- package/dist/components/button.variants.d.ts.map +1 -0
- package/dist/components/button.variants.js +26 -0
- package/dist/components/card-base.d.ts +10 -0
- package/dist/components/card-base.d.ts.map +1 -0
- package/dist/components/card-base.js +10 -0
- package/dist/components/card-state.d.ts +45 -0
- package/dist/components/card-state.d.ts.map +1 -0
- package/dist/components/card-state.js +137 -0
- package/dist/components/card.d.ts +25 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +62 -0
- package/dist/components/card.parts.d.ts +9 -0
- package/dist/components/card.parts.d.ts.map +1 -0
- package/dist/components/card.parts.js +37 -0
- package/dist/components/check-list.d.ts +30 -0
- package/dist/components/check-list.d.ts.map +1 -0
- package/dist/components/check-list.js +88 -0
- package/dist/components/check-list.parts.d.ts +17 -0
- package/dist/components/check-list.parts.d.ts.map +1 -0
- package/dist/components/check-list.parts.js +40 -0
- package/dist/components/checkbox.d.ts +24 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +103 -0
- package/dist/components/chip.d.ts +17 -0
- package/dist/components/chip.d.ts.map +1 -0
- package/dist/components/chip.js +93 -0
- package/dist/components/code-block.d.ts +15 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/code-block.js +87 -0
- package/dist/components/collapsible.d.ts +27 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +81 -0
- package/dist/components/command.context.d.ts +16 -0
- package/dist/components/command.context.d.ts.map +1 -0
- package/dist/components/command.context.js +13 -0
- package/dist/components/command.d.ts +19 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +125 -0
- package/dist/components/command.parts.d.ts +18 -0
- package/dist/components/command.parts.d.ts.map +1 -0
- package/dist/components/command.parts.js +77 -0
- package/dist/components/command.variants.d.ts +6 -0
- package/dist/components/command.variants.d.ts.map +1 -0
- package/dist/components/command.variants.js +23 -0
- package/dist/components/content-block.d.ts +24 -0
- package/dist/components/content-block.d.ts.map +1 -0
- package/dist/components/content-block.diff.d.ts +26 -0
- package/dist/components/content-block.diff.d.ts.map +1 -0
- package/dist/components/content-block.diff.js +110 -0
- package/dist/components/content-block.js +61 -0
- package/dist/components/content-block.parts.d.ts +12 -0
- package/dist/components/content-block.parts.d.ts.map +1 -0
- package/dist/components/content-block.parts.js +52 -0
- package/dist/components/content-blocks.d.ts +61 -0
- package/dist/components/content-blocks.d.ts.map +1 -0
- package/dist/components/content-blocks.js +99 -0
- package/dist/components/content-blocks.meta.d.ts +21 -0
- package/dist/components/content-blocks.meta.d.ts.map +1 -0
- package/dist/components/content-blocks.meta.js +56 -0
- package/dist/components/control.variants.d.ts +10 -0
- package/dist/components/control.variants.d.ts.map +1 -0
- package/dist/components/control.variants.js +25 -0
- package/dist/components/copy-button.d.ts +15 -0
- package/dist/components/copy-button.d.ts.map +1 -0
- package/dist/components/copy-button.js +96 -0
- package/dist/components/count.d.ts +5 -0
- package/dist/components/count.d.ts.map +1 -0
- package/dist/components/count.js +12 -0
- package/dist/components/data-table.body.d.ts +36 -0
- package/dist/components/data-table.body.d.ts.map +1 -0
- package/dist/components/data-table.body.js +112 -0
- package/dist/components/data-table.d.ts +14 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.group-head.d.ts +17 -0
- package/dist/components/data-table.group-head.d.ts.map +1 -0
- package/dist/components/data-table.group-head.js +40 -0
- package/dist/components/data-table.group.d.ts +27 -0
- package/dist/components/data-table.group.d.ts.map +1 -0
- package/dist/components/data-table.group.js +32 -0
- package/dist/components/data-table.js +115 -0
- package/dist/components/data-table.menu.d.ts +12 -0
- package/dist/components/data-table.menu.d.ts.map +1 -0
- package/dist/components/data-table.menu.js +39 -0
- package/dist/components/data-table.parts.d.ts +28 -0
- package/dist/components/data-table.parts.d.ts.map +1 -0
- package/dist/components/data-table.parts.js +54 -0
- package/dist/components/data-table.selection.d.ts +27 -0
- package/dist/components/data-table.selection.d.ts.map +1 -0
- package/dist/components/data-table.selection.js +42 -0
- package/dist/components/data-table.state.d.ts +8 -0
- package/dist/components/data-table.state.d.ts.map +1 -0
- package/dist/components/data-table.state.js +11 -0
- package/dist/components/data-table.types.d.ts +71 -0
- package/dist/components/data-table.types.d.ts.map +1 -0
- package/dist/components/data-table.types.js +0 -0
- package/dist/components/data-table.variants.d.ts +22 -0
- package/dist/components/data-table.variants.d.ts.map +1 -0
- package/dist/components/data-table.variants.js +91 -0
- package/dist/components/data-tree.d.ts +20 -0
- package/dist/components/data-tree.d.ts.map +1 -0
- package/dist/components/data-tree.js +75 -0
- package/dist/components/data-tree.model.d.ts +35 -0
- package/dist/components/data-tree.model.d.ts.map +1 -0
- package/dist/components/data-tree.model.js +70 -0
- package/dist/components/data-tree.row.d.ts +23 -0
- package/dist/components/data-tree.row.d.ts.map +1 -0
- package/dist/components/data-tree.row.js +109 -0
- package/dist/components/data-view.board-card.d.ts +18 -0
- package/dist/components/data-view.board-card.d.ts.map +1 -0
- package/dist/components/data-view.board-card.js +74 -0
- package/dist/components/data-view.board-head.d.ts +14 -0
- package/dist/components/data-view.board-head.d.ts.map +1 -0
- package/dist/components/data-view.board-head.js +61 -0
- package/dist/components/data-view.board.d.ts +31 -0
- package/dist/components/data-view.board.d.ts.map +1 -0
- package/dist/components/data-view.board.js +120 -0
- package/dist/components/data-view.config.d.ts +70 -0
- package/dist/components/data-view.config.d.ts.map +1 -0
- package/dist/components/data-view.config.js +68 -0
- package/dist/components/data-view.d.ts +10 -0
- package/dist/components/data-view.d.ts.map +1 -0
- package/dist/components/data-view.hooks.d.ts +23 -0
- package/dist/components/data-view.hooks.d.ts.map +1 -0
- package/dist/components/data-view.hooks.js +104 -0
- package/dist/components/data-view.js +117 -0
- package/dist/components/data-view.parts.d.ts +22 -0
- package/dist/components/data-view.parts.d.ts.map +1 -0
- package/dist/components/data-view.parts.js +29 -0
- package/dist/components/data-view.toolbar.d.ts +34 -0
- package/dist/components/data-view.toolbar.d.ts.map +1 -0
- package/dist/components/data-view.toolbar.js +134 -0
- package/dist/components/data-view.types.d.ts +53 -0
- package/dist/components/data-view.types.d.ts.map +1 -0
- package/dist/components/data-view.types.js +0 -0
- package/dist/components/date-picker.d.ts +27 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +123 -0
- package/dist/components/date-picker.range.d.ts +18 -0
- package/dist/components/date-picker.range.d.ts.map +1 -0
- package/dist/components/date-picker.range.js +97 -0
- package/dist/components/date-picker.range.parts.d.ts +12 -0
- package/dist/components/date-picker.range.parts.d.ts.map +1 -0
- package/dist/components/date-picker.range.parts.js +80 -0
- package/dist/components/description-list.d.ts +33 -0
- package/dist/components/description-list.d.ts.map +1 -0
- package/dist/components/description-list.js +75 -0
- package/dist/components/description-list.property.d.ts +25 -0
- package/dist/components/description-list.property.d.ts.map +1 -0
- package/dist/components/description-list.property.js +36 -0
- package/dist/components/description-list.variants.d.ts +8 -0
- package/dist/components/description-list.variants.d.ts.map +1 -0
- package/dist/components/description-list.variants.js +74 -0
- package/dist/components/dialog-shell.d.ts +36 -0
- package/dist/components/dialog-shell.d.ts.map +1 -0
- package/dist/components/dialog-shell.js +69 -0
- package/dist/components/dialog.confirm.d.ts +8 -0
- package/dist/components/dialog.confirm.d.ts.map +1 -0
- package/dist/components/dialog.confirm.js +91 -0
- package/dist/components/dialog.d.ts +27 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +53 -0
- package/dist/components/dialog.phrase.d.ts +9 -0
- package/dist/components/dialog.phrase.d.ts.map +1 -0
- package/dist/components/dialog.phrase.js +43 -0
- package/dist/components/dirty-bar.d.ts +30 -0
- package/dist/components/dirty-bar.d.ts.map +1 -0
- package/dist/components/dirty-bar.js +109 -0
- package/dist/components/disclosure.d.ts +24 -0
- package/dist/components/disclosure.d.ts.map +1 -0
- package/dist/components/disclosure.js +34 -0
- package/dist/components/dropdown-menu.d.ts +16 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.items.d.ts +15 -0
- package/dist/components/dropdown-menu.items.d.ts.map +1 -0
- package/dist/components/dropdown-menu.items.js +25 -0
- package/dist/components/dropdown-menu.js +80 -0
- package/dist/components/dropdown-menu.variants.d.ts +2 -0
- package/dist/components/dropdown-menu.variants.d.ts.map +1 -0
- package/dist/components/dropdown-menu.variants.js +1 -0
- package/dist/components/empty-state.d.ts +11 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state.js +33 -0
- package/dist/components/entity-card.d.ts +34 -0
- package/dist/components/entity-card.d.ts.map +1 -0
- package/dist/components/entity-card.js +87 -0
- package/dist/components/entity-list.d.ts +30 -0
- package/dist/components/entity-list.d.ts.map +1 -0
- package/dist/components/entity-list.items.d.ts +20 -0
- package/dist/components/entity-list.items.d.ts.map +1 -0
- package/dist/components/entity-list.items.js +59 -0
- package/dist/components/entity-list.js +61 -0
- package/dist/components/entity-list.parts.d.ts +35 -0
- package/dist/components/entity-list.parts.d.ts.map +1 -0
- package/dist/components/entity-list.parts.js +86 -0
- package/dist/components/entity-list.row.d.ts +14 -0
- package/dist/components/entity-list.row.d.ts.map +1 -0
- package/dist/components/entity-list.row.js +58 -0
- package/dist/components/form-field.d.ts +13 -0
- package/dist/components/form-field.d.ts.map +1 -0
- package/dist/components/form-field.js +65 -0
- package/dist/components/form-field.live.d.ts +6 -0
- package/dist/components/form-field.live.d.ts.map +1 -0
- package/dist/components/form-field.live.js +19 -0
- package/dist/components/group-header.d.ts +23 -0
- package/dist/components/group-header.d.ts.map +1 -0
- package/dist/components/group-header.js +81 -0
- package/dist/components/highlight.d.ts +4 -0
- package/dist/components/highlight.d.ts.map +1 -0
- package/dist/components/highlight.js +14 -0
- package/dist/components/icon-button.d.ts +15 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button.js +25 -0
- package/dist/components/index.d.ts +155 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +95 -0
- package/dist/components/inline-edit.d.ts +24 -0
- package/dist/components/inline-edit.d.ts.map +1 -0
- package/dist/components/inline-edit.js +68 -0
- package/dist/components/input.d.ts +35 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +101 -0
- package/dist/components/kbd.d.ts +5 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +12 -0
- package/dist/components/label.d.ts +5 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +16 -0
- package/dist/components/list-toolbar.d.ts +37 -0
- package/dist/components/list-toolbar.d.ts.map +1 -0
- package/dist/components/list-toolbar.filter.d.ts +13 -0
- package/dist/components/list-toolbar.filter.d.ts.map +1 -0
- package/dist/components/list-toolbar.filter.js +65 -0
- package/dist/components/list-toolbar.fit.d.ts +24 -0
- package/dist/components/list-toolbar.fit.d.ts.map +1 -0
- package/dist/components/list-toolbar.fit.js +69 -0
- package/dist/components/list-toolbar.icons.d.ts +10 -0
- package/dist/components/list-toolbar.icons.d.ts.map +1 -0
- package/dist/components/list-toolbar.icons.js +21 -0
- package/dist/components/list-toolbar.js +68 -0
- package/dist/components/list-toolbar.menus.d.ts +26 -0
- package/dist/components/list-toolbar.menus.d.ts.map +1 -0
- package/dist/components/list-toolbar.menus.js +98 -0
- package/dist/components/list-toolbar.parts.d.ts +25 -0
- package/dist/components/list-toolbar.parts.d.ts.map +1 -0
- package/dist/components/list-toolbar.parts.js +72 -0
- package/dist/components/list-toolbar.search.d.ts +8 -0
- package/dist/components/list-toolbar.search.d.ts.map +1 -0
- package/dist/components/list-toolbar.search.js +54 -0
- package/dist/components/list-toolbar.variants.d.ts +11 -0
- package/dist/components/list-toolbar.variants.d.ts.map +1 -0
- package/dist/components/list-toolbar.variants.js +9 -0
- package/dist/components/log-view.d.ts +25 -0
- package/dist/components/log-view.d.ts.map +1 -0
- package/dist/components/log-view.hooks.d.ts +40 -0
- package/dist/components/log-view.hooks.d.ts.map +1 -0
- package/dist/components/log-view.hooks.js +87 -0
- package/dist/components/log-view.js +110 -0
- package/dist/components/log-view.model.d.ts +35 -0
- package/dist/components/log-view.model.d.ts.map +1 -0
- package/dist/components/log-view.model.js +56 -0
- package/dist/components/log-view.row.d.ts +31 -0
- package/dist/components/log-view.row.d.ts.map +1 -0
- package/dist/components/log-view.row.js +127 -0
- package/dist/components/menu.parts.d.ts +26 -0
- package/dist/components/menu.parts.d.ts.map +1 -0
- package/dist/components/menu.parts.js +59 -0
- package/dist/components/menu.selectable.d.ts +24 -0
- package/dist/components/menu.selectable.d.ts.map +1 -0
- package/dist/components/menu.selectable.js +66 -0
- package/dist/components/menu.variants.d.ts +9 -0
- package/dist/components/menu.variants.d.ts.map +1 -0
- package/dist/components/menu.variants.js +16 -0
- package/dist/components/nav-tree.d.ts +22 -0
- package/dist/components/nav-tree.d.ts.map +1 -0
- package/dist/components/nav-tree.js +95 -0
- package/dist/components/nav-tree.variants.d.ts +13 -0
- package/dist/components/nav-tree.variants.d.ts.map +1 -0
- package/dist/components/nav-tree.variants.js +9 -0
- package/dist/components/page-header.d.ts +34 -0
- package/dist/components/page-header.d.ts.map +1 -0
- package/dist/components/page-header.js +115 -0
- package/dist/components/pagination.d.ts +13 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +114 -0
- package/dist/components/popover.d.ts +18 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +64 -0
- package/dist/components/priority-glyph.d.ts +11 -0
- package/dist/components/priority-glyph.d.ts.map +1 -0
- package/dist/components/priority-glyph.js +75 -0
- package/dist/components/progress.d.ts +30 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +87 -0
- package/dist/components/progress.meter.d.ts +36 -0
- package/dist/components/progress.meter.d.ts.map +1 -0
- package/dist/components/progress.meter.js +64 -0
- package/dist/components/progress.segments.d.ts +28 -0
- package/dist/components/progress.segments.d.ts.map +1 -0
- package/dist/components/progress.segments.js +59 -0
- package/dist/components/property-date.d.ts +11 -0
- package/dist/components/property-date.d.ts.map +1 -0
- package/dist/components/property-date.format.d.ts +3 -0
- package/dist/components/property-date.format.d.ts.map +1 -0
- package/dist/components/property-date.format.js +7 -0
- package/dist/components/property-date.js +142 -0
- package/dist/components/property-select.d.ts +28 -0
- package/dist/components/property-select.d.ts.map +1 -0
- package/dist/components/property-select.js +68 -0
- package/dist/components/prose.d.ts +6 -0
- package/dist/components/prose.d.ts.map +1 -0
- package/dist/components/prose.js +13 -0
- package/dist/components/radio-group.d.ts +23 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +116 -0
- package/dist/components/relative-time.d.ts +12 -0
- package/dist/components/relative-time.d.ts.map +1 -0
- package/dist/components/relative-time.js +30 -0
- package/dist/components/resizable-split-prepaint.d.ts +12 -0
- package/dist/components/resizable-split-prepaint.d.ts.map +1 -0
- package/dist/components/resizable-split-prepaint.js +5 -0
- package/dist/components/resizable-split.context.d.ts +11 -0
- package/dist/components/resizable-split.context.d.ts.map +1 -0
- package/dist/components/resizable-split.context.js +9 -0
- package/dist/components/resizable-split.d.ts +30 -0
- package/dist/components/resizable-split.d.ts.map +1 -0
- package/dist/components/resizable-split.js +85 -0
- package/dist/components/resizable.d.ts +21 -0
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +90 -0
- package/dist/components/resizable.model.d.ts +18 -0
- package/dist/components/resizable.model.d.ts.map +1 -0
- package/dist/components/resizable.model.js +11 -0
- package/dist/components/resizable.parts.d.ts +20 -0
- package/dist/components/resizable.parts.d.ts.map +1 -0
- package/dist/components/resizable.parts.js +36 -0
- package/dist/components/resizable.variants.d.ts +16 -0
- package/dist/components/resizable.variants.d.ts.map +1 -0
- package/dist/components/resizable.variants.js +41 -0
- package/dist/components/row.variants.d.ts +10 -0
- package/dist/components/row.variants.d.ts.map +1 -0
- package/dist/components/row.variants.js +36 -0
- package/dist/components/secret-input.d.ts +20 -0
- package/dist/components/secret-input.d.ts.map +1 -0
- package/dist/components/secret-input.js +94 -0
- package/dist/components/section-index.d.ts +23 -0
- package/dist/components/section-index.d.ts.map +1 -0
- package/dist/components/section-index.js +51 -0
- package/dist/components/section.d.ts +19 -0
- package/dist/components/section.d.ts.map +1 -0
- package/dist/components/section.js +42 -0
- package/dist/components/select.d.ts +28 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +120 -0
- package/dist/components/select.keys.d.ts +6 -0
- package/dist/components/select.keys.d.ts.map +1 -0
- package/dist/components/select.keys.js +20 -0
- package/dist/components/select.list.d.ts +26 -0
- package/dist/components/select.list.d.ts.map +1 -0
- package/dist/components/select.list.js +50 -0
- package/dist/components/select.parts.d.ts +53 -0
- package/dist/components/select.parts.d.ts.map +1 -0
- package/dist/components/select.parts.js +95 -0
- package/dist/components/select.variants.d.ts +13 -0
- package/dist/components/select.variants.d.ts.map +1 -0
- package/dist/components/select.variants.js +54 -0
- package/dist/components/sheet.d.ts +27 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.docked.d.ts +8 -0
- package/dist/components/sheet.docked.d.ts.map +1 -0
- package/dist/components/sheet.docked.js +106 -0
- package/dist/components/sheet.js +61 -0
- package/dist/components/sheet.narrow.d.ts +3 -0
- package/dist/components/sheet.narrow.d.ts.map +1 -0
- package/dist/components/sheet.narrow.js +9 -0
- package/dist/components/sidebar.d.ts +14 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +48 -0
- package/dist/components/skeleton.d.ts +10 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +21 -0
- package/dist/components/sparkline.d.ts +26 -0
- package/dist/components/sparkline.d.ts.map +1 -0
- package/dist/components/sparkline.js +83 -0
- package/dist/components/spinner.d.ts +10 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +38 -0
- package/dist/components/stat-card.d.ts +9 -0
- package/dist/components/stat-card.d.ts.map +1 -0
- package/dist/components/stat-card.header.d.ts +19 -0
- package/dist/components/stat-card.header.d.ts.map +1 -0
- package/dist/components/stat-card.header.js +43 -0
- package/dist/components/stat-card.js +84 -0
- package/dist/components/stat-card.parts.d.ts +10 -0
- package/dist/components/stat-card.parts.d.ts.map +1 -0
- package/dist/components/stat-card.parts.js +35 -0
- package/dist/components/stat-card.state.d.ts +9 -0
- package/dist/components/stat-card.state.d.ts.map +1 -0
- package/dist/components/stat-card.state.js +51 -0
- package/dist/components/stat-card.types.d.ts +28 -0
- package/dist/components/stat-card.types.d.ts.map +1 -0
- package/dist/components/stat-card.types.js +0 -0
- package/dist/components/status-bar.d.ts +32 -0
- package/dist/components/status-bar.d.ts.map +1 -0
- package/dist/components/status-bar.js +114 -0
- package/dist/components/status-bar.variants.d.ts +12 -0
- package/dist/components/status-bar.variants.d.ts.map +1 -0
- package/dist/components/status-bar.variants.js +63 -0
- package/dist/components/status-glyph.d.ts +15 -0
- package/dist/components/status-glyph.d.ts.map +1 -0
- package/dist/components/status-glyph.js +118 -0
- package/dist/components/status-glyph.status.d.ts +11 -0
- package/dist/components/status-glyph.status.d.ts.map +1 -0
- package/dist/components/status-glyph.status.js +33 -0
- package/dist/components/step-list.d.ts +28 -0
- package/dist/components/step-list.d.ts.map +1 -0
- package/dist/components/step-list.js +70 -0
- package/dist/components/step-list.parts.d.ts +34 -0
- package/dist/components/step-list.parts.d.ts.map +1 -0
- package/dist/components/step-list.parts.js +74 -0
- package/dist/components/switch.d.ts +22 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +93 -0
- package/dist/components/table.d.ts +19 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +73 -0
- package/dist/components/tabs.context.d.ts +19 -0
- package/dist/components/tabs.context.d.ts.map +1 -0
- package/dist/components/tabs.context.js +15 -0
- package/dist/components/tabs.d.ts +23 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +61 -0
- package/dist/components/tabs.trigger.d.ts +12 -0
- package/dist/components/tabs.trigger.d.ts.map +1 -0
- package/dist/components/tabs.trigger.js +69 -0
- package/dist/components/tabs.variants.d.ts +10 -0
- package/dist/components/tabs.variants.d.ts.map +1 -0
- package/dist/components/tabs.variants.js +33 -0
- package/dist/components/toast.d.ts +21 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +125 -0
- package/dist/components/toggle-group.d.ts +36 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +68 -0
- package/dist/components/toggle-group.variants.d.ts +13 -0
- package/dist/components/toggle-group.variants.d.ts.map +1 -0
- package/dist/components/toggle-group.variants.js +71 -0
- package/dist/components/tooltip.d.ts +10 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +49 -0
- package/dist/components/tree-select.d.ts +26 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree-select.js +102 -0
- package/dist/components/tree-select.model.d.ts +30 -0
- package/dist/components/tree-select.model.d.ts.map +1 -0
- package/dist/components/tree-select.model.js +33 -0
- package/dist/components/tree-select.rows.d.ts +18 -0
- package/dist/components/tree-select.rows.d.ts.map +1 -0
- package/dist/components/tree-select.rows.js +39 -0
- package/dist/components/truncate.d.ts +9 -0
- package/dist/components/truncate.d.ts.map +1 -0
- package/dist/components/truncate.js +31 -0
- package/dist/components/use-split-state.d.ts +17 -0
- package/dist/components/use-split-state.d.ts.map +1 -0
- package/dist/components/use-split-state.js +51 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96 -0
- package/dist/lib/aria.d.ts +4 -0
- package/dist/lib/aria.d.ts.map +1 -0
- package/dist/lib/aria.js +4 -0
- package/dist/lib/copy-text.d.ts +3 -0
- package/dist/lib/copy-text.d.ts.map +1 -0
- package/dist/lib/copy-text.js +20 -0
- package/dist/lib/cron.d.ts +13 -0
- package/dist/lib/cron.d.ts.map +1 -0
- package/dist/lib/cron.js +131 -0
- package/dist/lib/cron.next.d.ts +9 -0
- package/dist/lib/cron.next.d.ts.map +1 -0
- package/dist/lib/cron.next.js +49 -0
- package/dist/lib/cron.text.d.ts +3 -0
- package/dist/lib/cron.text.d.ts.map +1 -0
- package/dist/lib/cron.text.js +61 -0
- package/dist/lib/drag-reorder.d.ts +33 -0
- package/dist/lib/drag-reorder.d.ts.map +1 -0
- package/dist/lib/drag-reorder.js +61 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/list-controls-storage.d.ts +7 -0
- package/dist/lib/list-controls-storage.d.ts.map +1 -0
- package/dist/lib/list-controls-storage.js +25 -0
- package/dist/lib/list-controls.d.ts +49 -0
- package/dist/lib/list-controls.d.ts.map +1 -0
- package/dist/lib/list-controls.js +44 -0
- package/dist/lib/list-navigation.d.ts +3 -0
- package/dist/lib/list-navigation.d.ts.map +1 -0
- package/dist/lib/list-navigation.js +7 -0
- package/dist/lib/overlay-layer.d.ts +32 -0
- package/dist/lib/overlay-layer.d.ts.map +1 -0
- package/dist/lib/overlay-layer.js +37 -0
- package/dist/lib/panel-sizes.d.ts +18 -0
- package/dist/lib/panel-sizes.d.ts.map +1 -0
- package/dist/lib/panel-sizes.js +25 -0
- package/dist/lib/relative-range.d.ts +23 -0
- package/dist/lib/relative-range.d.ts.map +1 -0
- package/dist/lib/relative-range.js +130 -0
- package/dist/lib/relative-time-format.d.ts +6 -0
- package/dist/lib/relative-time-format.d.ts.map +1 -0
- package/dist/lib/relative-time-format.js +21 -0
- package/dist/lib/split-px.d.ts +23 -0
- package/dist/lib/split-px.d.ts.map +1 -0
- package/dist/lib/split-px.js +30 -0
- package/dist/lib/table-sort.d.ts +11 -0
- package/dist/lib/table-sort.d.ts.map +1 -0
- package/dist/lib/table-sort.js +17 -0
- package/dist/lib/usage-level.d.ts +13 -0
- package/dist/lib/usage-level.d.ts.map +1 -0
- package/dist/lib/usage-level.js +12 -0
- package/dist/lib/use-anchor-position.d.ts +22 -0
- package/dist/lib/use-anchor-position.d.ts.map +1 -0
- package/dist/lib/use-anchor-position.js +41 -0
- package/dist/lib/use-announce.d.ts +6 -0
- package/dist/lib/use-announce.d.ts.map +1 -0
- package/dist/lib/use-announce.js +20 -0
- package/dist/lib/use-cell-stack.d.ts +8 -0
- package/dist/lib/use-cell-stack.d.ts.map +1 -0
- package/dist/lib/use-cell-stack.js +23 -0
- package/dist/lib/use-controlled.d.ts +8 -0
- package/dist/lib/use-controlled.d.ts.map +1 -0
- package/dist/lib/use-controlled.js +22 -0
- package/dist/lib/use-drag-reorder.d.ts +28 -0
- package/dist/lib/use-drag-reorder.d.ts.map +1 -0
- package/dist/lib/use-drag-reorder.js +100 -0
- package/dist/lib/use-flip.d.ts +8 -0
- package/dist/lib/use-flip.d.ts.map +1 -0
- package/dist/lib/use-flip.js +28 -0
- package/dist/lib/use-focus-origin.d.ts +9 -0
- package/dist/lib/use-focus-origin.d.ts.map +1 -0
- package/dist/lib/use-focus-origin.js +15 -0
- package/dist/lib/use-focus-restore.d.ts +7 -0
- package/dist/lib/use-focus-restore.d.ts.map +1 -0
- package/dist/lib/use-focus-restore.js +15 -0
- package/dist/lib/use-focus-trap.d.ts +5 -0
- package/dist/lib/use-focus-trap.d.ts.map +1 -0
- package/dist/lib/use-focus-trap.js +32 -0
- package/dist/lib/use-keep-focus.d.ts +4 -0
- package/dist/lib/use-keep-focus.d.ts.map +1 -0
- package/dist/lib/use-keep-focus.js +20 -0
- package/dist/lib/use-list-controls.d.ts +28 -0
- package/dist/lib/use-list-controls.d.ts.map +1 -0
- package/dist/lib/use-list-controls.js +72 -0
- package/dist/lib/use-mounted.d.ts +3 -0
- package/dist/lib/use-mounted.d.ts.map +1 -0
- package/dist/lib/use-mounted.js +8 -0
- package/dist/lib/use-persisted-state.d.ts +21 -0
- package/dist/lib/use-persisted-state.d.ts.map +1 -0
- package/dist/lib/use-persisted-state.js +52 -0
- package/dist/lib/use-roving-focus.d.ts +14 -0
- package/dist/lib/use-roving-focus.d.ts.map +1 -0
- package/dist/lib/use-roving-focus.js +36 -0
- package/dist/lib/use-scroll-lock.d.ts +6 -0
- package/dist/lib/use-scroll-lock.d.ts.map +1 -0
- package/dist/lib/use-scroll-lock.js +23 -0
- package/dist/lib/use-scroll-spy.d.ts +12 -0
- package/dist/lib/use-scroll-spy.d.ts.map +1 -0
- package/dist/lib/use-scroll-spy.js +34 -0
- package/dist/lib/utils.d.ts +12 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +9 -0
- package/package.json +457 -4
- package/src/styles/base.css +98 -0
- package/src/styles/primitives.css +143 -0
- package/src/styles/theme.css +10 -0
- package/src/styles/tokens.css +344 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TruncateProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
text: string;
|
|
4
|
+
/** `end` cuts the tail with an ellipsis; `middle` keeps the last path segment whole. */
|
|
5
|
+
position?: 'end' | 'middle';
|
|
6
|
+
}
|
|
7
|
+
/** One-line text that never wraps; the full text is in the native tooltip. */
|
|
8
|
+
export declare const Truncate: React.ForwardRefExoticComponent<TruncateProps & React.RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
//# sourceMappingURL=truncate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"truncate.d.ts","sourceRoot":"","sources":["../../src/components/truncate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B;AAED,8EAA8E;AAC9E,eAAO,MAAM,QAAQ,uFA8BpB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
// src/components/truncate.tsx
|
|
5
|
+
var i = t.forwardRef(({ text: t, position: i = "end", className: a, ...o }, s) => {
|
|
6
|
+
if (i === "end") return /* @__PURE__ */ n("span", {
|
|
7
|
+
ref: s,
|
|
8
|
+
className: e("block min-w-0 truncate", a),
|
|
9
|
+
title: t,
|
|
10
|
+
"data-slot": "truncate",
|
|
11
|
+
...o,
|
|
12
|
+
children: t
|
|
13
|
+
});
|
|
14
|
+
let c = t.replace(/\/$/, "").lastIndexOf("/"), l = c > 0 ? t.slice(0, c + 1) : "", u = c > 0 ? t.slice(c + 1) : t;
|
|
15
|
+
return /* @__PURE__ */ r("span", {
|
|
16
|
+
ref: s,
|
|
17
|
+
className: e("flex min-w-0 cursor-default", a),
|
|
18
|
+
title: t,
|
|
19
|
+
"data-slot": "truncate",
|
|
20
|
+
...o,
|
|
21
|
+
children: [l && /* @__PURE__ */ n("span", {
|
|
22
|
+
className: "min-w-0 truncate",
|
|
23
|
+
children: l
|
|
24
|
+
}), /* @__PURE__ */ n("span", {
|
|
25
|
+
className: "max-w-full shrink-0 truncate",
|
|
26
|
+
children: u
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
i.displayName = "Truncate";
|
|
31
|
+
export { i as Truncate };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import { ResizableSplitApi } from './resizable-split.context.js';
|
|
3
|
+
interface SplitStateOptions {
|
|
4
|
+
storageKey: string;
|
|
5
|
+
init: number;
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
collapsible: boolean;
|
|
9
|
+
apiRef?: Ref<ResizableSplitApi>;
|
|
10
|
+
}
|
|
11
|
+
/** Stored size and collapsed flag, mirrored onto `<html>` CSS variables the grid reads. */
|
|
12
|
+
export declare const useSplitState: ({ storageKey, init, min, max, collapsible, apiRef, }: SplitStateOptions) => {
|
|
13
|
+
api: ResizableSplitApi;
|
|
14
|
+
set: (px: number) => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=use-split-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-split-state.d.ts","sourceRoot":"","sources":["../../src/components/use-split-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAUf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAOnE,UAAU,iBAAiB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACjC;AAED,2FAA2F;AAC3F,eAAO,MAAM,aAAa,GAAI,sDAO3B,iBAAiB,KAAG;IAAE,GAAG,EAAE,iBAAiB,CAAC;IAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAwDzE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { clampPx as e, collapsedStorageKey as t, readStoredFlag as n, readStoredPx as r, resizableSplitCollapsedVar as i, resizableSplitVar as a, writeStored as o } from "../lib/split-px.js";
|
|
3
|
+
import { useCallback as s, useImperativeHandle as c, useLayoutEffect as l, useMemo as u, useState as d } from "react";
|
|
4
|
+
// src/components/use-split-state.ts
|
|
5
|
+
var f = (e, t) => {
|
|
6
|
+
t === null ? document.documentElement.style.removeProperty(e) : document.documentElement.style.setProperty(e, t);
|
|
7
|
+
}, p = ({ storageKey: p, init: m, min: h, max: g, collapsible: _, apiRef: v }) => {
|
|
8
|
+
let y = a(p), b = i(p), x = t(p), [S, C] = d(() => e(m, h, g)), [w, T] = d(!1);
|
|
9
|
+
l(() => {
|
|
10
|
+
let t = r(p);
|
|
11
|
+
if (t !== null) {
|
|
12
|
+
let n = e(t, h, g);
|
|
13
|
+
C(n), f(y, `${String(n)}px`);
|
|
14
|
+
}
|
|
15
|
+
_ && n(x) && (T(!0), f(b, "0px"));
|
|
16
|
+
}, [
|
|
17
|
+
p,
|
|
18
|
+
y,
|
|
19
|
+
b,
|
|
20
|
+
x,
|
|
21
|
+
_,
|
|
22
|
+
h,
|
|
23
|
+
g
|
|
24
|
+
]);
|
|
25
|
+
let E = s((e) => {
|
|
26
|
+
_ && (T(e), f(b, e ? "0px" : null), o(x, e ? "1" : "0"));
|
|
27
|
+
}, [
|
|
28
|
+
_,
|
|
29
|
+
b,
|
|
30
|
+
x
|
|
31
|
+
]), D = _ && w, O = (t) => {
|
|
32
|
+
let n = e(t, h, g);
|
|
33
|
+
D && E(!1), C(n), f(y, `${String(n)}px`), o(p, String(n));
|
|
34
|
+
}, k = u(() => ({
|
|
35
|
+
collapsed: D,
|
|
36
|
+
width: S,
|
|
37
|
+
toggle: () => E(!w),
|
|
38
|
+
collapse: () => E(!0),
|
|
39
|
+
expand: () => E(!1)
|
|
40
|
+
}), [
|
|
41
|
+
D,
|
|
42
|
+
w,
|
|
43
|
+
S,
|
|
44
|
+
E
|
|
45
|
+
]);
|
|
46
|
+
return c(v, () => k, [k]), {
|
|
47
|
+
api: k,
|
|
48
|
+
set: O
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export { p as useSplitState };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { cn as e } from "./lib/utils.js";
|
|
2
|
+
import { Avatar as t } from "./components/avatar.js";
|
|
3
|
+
import { Badge as n } from "./components/badge.js";
|
|
4
|
+
import { buttonVariants as r } from "./components/button.variants.js";
|
|
5
|
+
import { Button as i } from "./components/button.js";
|
|
6
|
+
import { Chip as a } from "./components/chip.js";
|
|
7
|
+
import { CopyButton as o } from "./components/copy-button.js";
|
|
8
|
+
import { IconButton as s } from "./components/icon-button.js";
|
|
9
|
+
import { Kbd as c } from "./components/kbd.js";
|
|
10
|
+
import { PRIORITY_LABEL as l, PriorityGlyph as u } from "./components/priority-glyph.js";
|
|
11
|
+
import { Prose as d } from "./components/prose.js";
|
|
12
|
+
import { Skeleton as f } from "./components/skeleton.js";
|
|
13
|
+
import { Spinner as p } from "./components/spinner.js";
|
|
14
|
+
import { StatusGlyph as m } from "./components/status-glyph.js";
|
|
15
|
+
import { announce as h, useAnnounce as g } from "./lib/use-announce.js";
|
|
16
|
+
import { activeSection as _, useScrollSpy as v } from "./lib/use-scroll-spy.js";
|
|
17
|
+
import { Checkbox as y } from "./components/checkbox.js";
|
|
18
|
+
import { parseRelativeRange as b, resolveDateRange as x } from "./lib/relative-range.js";
|
|
19
|
+
import { Disclosure as S } from "./components/disclosure.js";
|
|
20
|
+
import { Input as C, Textarea as w } from "./components/input.js";
|
|
21
|
+
import { Popover as T } from "./components/popover.js";
|
|
22
|
+
import { DatePicker as E } from "./components/date-picker.js";
|
|
23
|
+
import { FormField as D } from "./components/form-field.js";
|
|
24
|
+
import { InlineEdit as O } from "./components/inline-edit.js";
|
|
25
|
+
import { Label as k } from "./components/label.js";
|
|
26
|
+
import { RadioGroup as A, RadioGroupItem as j } from "./components/radio-group.js";
|
|
27
|
+
import { SecretInput as M } from "./components/secret-input.js";
|
|
28
|
+
import { Section as N, SectionLabel as P } from "./components/section.js";
|
|
29
|
+
import { Select as F } from "./components/select.js";
|
|
30
|
+
import { Switch as I } from "./components/switch.js";
|
|
31
|
+
import { ToggleButton as L, ToggleGroup as R } from "./components/toggle-group.js";
|
|
32
|
+
import { Truncate as z } from "./components/truncate.js";
|
|
33
|
+
import { NavRow as B, NavTree as V } from "./components/nav-tree.js";
|
|
34
|
+
import { TreeSelect as H } from "./components/tree-select.js";
|
|
35
|
+
import { describeCron as U } from "./lib/cron.js";
|
|
36
|
+
import { Breadcrumb as W, BreadcrumbItem as G, BreadcrumbLink as K, BreadcrumbList as q, BreadcrumbPage as J, BreadcrumbSeparator as Y } from "./components/breadcrumb.js";
|
|
37
|
+
import { MetaItem as X, PageHeader as Z } from "./components/page-header.js";
|
|
38
|
+
import { Pagination as Q } from "./components/pagination.js";
|
|
39
|
+
import { SectionIndex as $ } from "./components/section-index.js";
|
|
40
|
+
import { Sidebar as ee, SidebarContent as te, SidebarFooter as ne, SidebarGroup as re, SidebarGroupLabel as ie, SidebarHeader as ae } from "./components/sidebar.js";
|
|
41
|
+
import { TabsTrigger as oe } from "./components/tabs.trigger.js";
|
|
42
|
+
import { Tabs as se, TabsContent as ce, TabsList as le } from "./components/tabs.js";
|
|
43
|
+
import { DataTree as ue } from "./components/data-tree.js";
|
|
44
|
+
import { EMPTY_LIST_CONTROLS as de, activeFilterCount as fe, applyListControls as pe } from "./lib/list-controls.js";
|
|
45
|
+
import { GroupHeader as me } from "./components/group-header.js";
|
|
46
|
+
import { Table as he, TableBody as ge, TableCaption as _e, TableCell as ve, TableFooter as ye, TableHead as be, TableHeader as xe, TableRow as Se } from "./components/table.js";
|
|
47
|
+
import { DropdownMenuCheckboxItem as Ce, DropdownMenuItem as we, DropdownMenuLabel as Te, DropdownMenuRadioGroup as Ee, DropdownMenuRadioItem as De, DropdownMenuSeparator as Oe } from "./components/dropdown-menu.items.js";
|
|
48
|
+
import { DropdownMenu as ke } from "./components/dropdown-menu.js";
|
|
49
|
+
import { useListControls as Ae } from "./lib/use-list-controls.js";
|
|
50
|
+
import { EmptyState as je } from "./components/empty-state.js";
|
|
51
|
+
import { formatRelativeTime as Me } from "./lib/relative-time-format.js";
|
|
52
|
+
import { RelativeTime as Ne } from "./components/relative-time.js";
|
|
53
|
+
import { CardMeta as Pe } from "./components/card-state.js";
|
|
54
|
+
import { CardAction as Fe, CardDescription as Ie, CardHeader as Le, CardTitle as Re } from "./components/card.parts.js";
|
|
55
|
+
import { Card as ze, CardContent as Be, CardFooter as Ve } from "./components/card.js";
|
|
56
|
+
import { ToolbarSearch as He } from "./components/list-toolbar.search.js";
|
|
57
|
+
import { FilterMenu as Ue } from "./components/list-toolbar.filter.js";
|
|
58
|
+
import { DisplayMenu as We } from "./components/list-toolbar.menus.js";
|
|
59
|
+
import { ActiveFilters as Ge, ViewSwitch as Ke } from "./components/list-toolbar.parts.js";
|
|
60
|
+
import { ListToolbar as qe, ListToolbarEnd as Je, ToolbarToggle as Ye } from "./components/list-toolbar.js";
|
|
61
|
+
import { DataView as Xe } from "./components/data-view.js";
|
|
62
|
+
import { ListRow as Ze } from "./components/entity-list.row.js";
|
|
63
|
+
import { List as Qe } from "./components/entity-list.js";
|
|
64
|
+
import { LogView as $e } from "./components/log-view.js";
|
|
65
|
+
import { AccordionTrigger as et } from "./components/accordion.trigger.js";
|
|
66
|
+
import { Accordion as tt, AccordionContent as nt, AccordionItem as rt } from "./components/accordion.js";
|
|
67
|
+
import { CheckItem as it, CheckList as at } from "./components/check-list.js";
|
|
68
|
+
import { CodeBlock as ot, InlineCode as st } from "./components/code-block.js";
|
|
69
|
+
import { Collapsible as ct, CollapsibleContent as lt, CollapsibleTrigger as ut } from "./components/collapsible.js";
|
|
70
|
+
import { Alert as dt } from "./components/alert.js";
|
|
71
|
+
import { DescriptionDetail as ft, DescriptionGroup as pt, DescriptionList as mt, DescriptionTerm as ht } from "./components/description-list.js";
|
|
72
|
+
import { ContentBlocks as gt } from "./components/content-blocks.js";
|
|
73
|
+
import { Property as _t, PropertyText as vt, PropertyValue as yt } from "./components/description-list.property.js";
|
|
74
|
+
import { formatPropertyDate as bt } from "./components/property-date.format.js";
|
|
75
|
+
import { PropertyDate as xt } from "./components/property-date.js";
|
|
76
|
+
import { PropertyMultiSelect as St, PropertySelect as Ct } from "./components/property-select.js";
|
|
77
|
+
import { Progress as wt } from "./components/progress.js";
|
|
78
|
+
import { MiniBars as Tt, Sparkline as Et } from "./components/sparkline.js";
|
|
79
|
+
import { StatCard as Dt } from "./components/stat-card.js";
|
|
80
|
+
import { StatusBar as Ot } from "./components/status-bar.js";
|
|
81
|
+
import { Step as kt, StepList as At } from "./components/step-list.js";
|
|
82
|
+
import { CommandEmpty as jt, CommandGroup as Mt, CommandItem as Nt, CommandSeparator as Pt } from "./components/command.parts.js";
|
|
83
|
+
import { Command as Ft } from "./components/command.js";
|
|
84
|
+
import { Dialog as It, DialogFooter as Lt } from "./components/dialog.js";
|
|
85
|
+
import { resizableSplitCollapsedVar as Rt, resizableSplitPrepaint as zt, resizableSplitVar as Bt } from "./lib/split-px.js";
|
|
86
|
+
import { ResizableHandle as Vt, ResizablePanel as Ht } from "./components/resizable.parts.js";
|
|
87
|
+
import { ResizablePanelGroup as Ut } from "./components/resizable.js";
|
|
88
|
+
import { useResizableSplit as Wt } from "./components/resizable-split.context.js";
|
|
89
|
+
import { ResizableSplit as Gt } from "./components/resizable-split.js";
|
|
90
|
+
import { ResizableSplitPrepaint as Kt } from "./components/resizable-split-prepaint.js";
|
|
91
|
+
import { Sheet as qt } from "./components/sheet.js";
|
|
92
|
+
import { Tooltip as Jt } from "./components/tooltip.js";
|
|
93
|
+
import { ActionBar as Yt } from "./components/action-bar.js";
|
|
94
|
+
import { DirtyBar as Xt } from "./components/dirty-bar.js";
|
|
95
|
+
import { ToastProvider as Zt, useToast as Qt } from "./components/toast.js";
|
|
96
|
+
export { tt as Accordion, nt as AccordionContent, rt as AccordionItem, et as AccordionTrigger, Yt as ActionBar, Ge as ActiveFilters, dt as Alert, t as Avatar, n as Badge, W as Breadcrumb, G as BreadcrumbItem, K as BreadcrumbLink, q as BreadcrumbList, J as BreadcrumbPage, Y as BreadcrumbSeparator, i as Button, ze as Card, Fe as CardAction, Be as CardContent, Ie as CardDescription, Ve as CardFooter, Le as CardHeader, Pe as CardMeta, Re as CardTitle, it as CheckItem, at as CheckList, y as Checkbox, a as Chip, ot as CodeBlock, ct as Collapsible, lt as CollapsibleContent, ut as CollapsibleTrigger, Ft as Command, jt as CommandEmpty, Mt as CommandGroup, Nt as CommandItem, Pt as CommandSeparator, gt as ContentBlocks, o as CopyButton, ue as DataTree, Xe as DataView, E as DatePicker, ft as DescriptionDetail, pt as DescriptionGroup, mt as DescriptionList, ht as DescriptionTerm, It as Dialog, Lt as DialogFooter, Xt as DirtyBar, S as Disclosure, We as DisplayMenu, ke as DropdownMenu, Ce as DropdownMenuCheckboxItem, we as DropdownMenuItem, Te as DropdownMenuLabel, Ee as DropdownMenuRadioGroup, De as DropdownMenuRadioItem, Oe as DropdownMenuSeparator, de as EMPTY_LIST_CONTROLS, je as EmptyState, Ue as FilterMenu, D as FormField, me as GroupHeader, s as IconButton, st as InlineCode, O as InlineEdit, C as Input, c as Kbd, k as Label, Qe as List, Ze as ListRow, qe as ListToolbar, Je as ListToolbarEnd, $e as LogView, X as MetaItem, Tt as MiniBars, B as NavRow, V as NavTree, l as PRIORITY_LABEL, Z as PageHeader, Q as Pagination, T as Popover, u as PriorityGlyph, wt as Progress, _t as Property, xt as PropertyDate, St as PropertyMultiSelect, Ct as PropertySelect, vt as PropertyText, yt as PropertyValue, d as Prose, A as RadioGroup, j as RadioGroupItem, Ne as RelativeTime, Vt as ResizableHandle, Ht as ResizablePanel, Ut as ResizablePanelGroup, Gt as ResizableSplit, Kt as ResizableSplitPrepaint, M as SecretInput, N as Section, $ as SectionIndex, P as SectionLabel, F as Select, qt as Sheet, ee as Sidebar, te as SidebarContent, ne as SidebarFooter, re as SidebarGroup, ie as SidebarGroupLabel, ae as SidebarHeader, f as Skeleton, Et as Sparkline, p as Spinner, Dt as StatCard, Ot as StatusBar, m as StatusGlyph, kt as Step, At as StepList, I as Switch, he as Table, ge as TableBody, _e as TableCaption, ve as TableCell, ye as TableFooter, be as TableHead, xe as TableHeader, Se as TableRow, se as Tabs, ce as TabsContent, le as TabsList, oe as TabsTrigger, w as Textarea, Zt as ToastProvider, L as ToggleButton, R as ToggleGroup, He as ToolbarSearch, Ye as ToolbarToggle, Jt as Tooltip, H as TreeSelect, z as Truncate, Ke as ViewSwitch, fe as activeFilterCount, _ as activeSection, h as announce, pe as applyListControls, r as buttonVariants, e as cn, U as describeCron, bt as formatPropertyDate, Me as formatRelativeTime, b as parseRelativeRange, Rt as resizableSplitCollapsedVar, zt as resizableSplitPrepaint, Bt as resizableSplitVar, x as resolveDateRange, g as useAnnounce, Ae as useListControls, Wt as useResizableSplit, v as useScrollSpy, Qt as useToast };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aria.d.ts","sourceRoot":"","sources":["../../src/lib/aria.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExF,kGAAkG;AAClG,eAAO,MAAM,eAAe,GAAI,SAAS,SAAS,EAAE,IAAI,MAAM,GAAG,SAAS,KAAG,SAKhE,CAAC"}
|
package/dist/lib/aria.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-text.d.ts","sourceRoot":"","sources":["../../src/lib/copy-text.ts"],"names":[],"mappings":"AAoBA,8EAA8E;AAC9E,eAAO,MAAM,QAAQ,GAAU,MAAM,MAAM,KAAG,OAAO,CAAC,OAAO,CAO5D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/lib/copy-text.ts
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
if (typeof document > "u") return !1;
|
|
4
|
+
let t = document.createElement("textarea");
|
|
5
|
+
t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.opacity = "0", t.style.pointerEvents = "none", document.body.appendChild(t);
|
|
6
|
+
try {
|
|
7
|
+
return t.select(), document.execCommand("copy");
|
|
8
|
+
} catch {
|
|
9
|
+
return !1;
|
|
10
|
+
} finally {
|
|
11
|
+
document.body.removeChild(t);
|
|
12
|
+
}
|
|
13
|
+
}, t = async (t) => {
|
|
14
|
+
try {
|
|
15
|
+
return await navigator.clipboard.writeText(t), !0;
|
|
16
|
+
} catch {
|
|
17
|
+
return e(t);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export { t as copyText };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CronDescription {
|
|
2
|
+
text: string;
|
|
3
|
+
next: Date[];
|
|
4
|
+
error?: string;
|
|
5
|
+
}
|
|
6
|
+
interface CronOptions {
|
|
7
|
+
timeZone?: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
from?: Date;
|
|
10
|
+
}
|
|
11
|
+
export declare const describeCron: (expr: string, options?: CronOptions) => CronDescription;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=cron.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../src/lib/cron.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAgFD,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,UAAS,WAAgB,KAAG,eActE,CAAC"}
|
package/dist/lib/cron.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { nextRuns as e, zoneParts as t } from "./cron.next.js";
|
|
2
|
+
import { describe as n } from "./cron.text.js";
|
|
3
|
+
// src/lib/cron.ts
|
|
4
|
+
var r = [
|
|
5
|
+
"jan",
|
|
6
|
+
"feb",
|
|
7
|
+
"mar",
|
|
8
|
+
"apr",
|
|
9
|
+
"may",
|
|
10
|
+
"jun",
|
|
11
|
+
"jul",
|
|
12
|
+
"aug",
|
|
13
|
+
"sep",
|
|
14
|
+
"oct",
|
|
15
|
+
"nov",
|
|
16
|
+
"dec"
|
|
17
|
+
], i = [
|
|
18
|
+
"sun",
|
|
19
|
+
"mon",
|
|
20
|
+
"tue",
|
|
21
|
+
"wed",
|
|
22
|
+
"thu",
|
|
23
|
+
"fri",
|
|
24
|
+
"sat"
|
|
25
|
+
], a = [
|
|
26
|
+
31,
|
|
27
|
+
29,
|
|
28
|
+
31,
|
|
29
|
+
30,
|
|
30
|
+
31,
|
|
31
|
+
30,
|
|
32
|
+
31,
|
|
33
|
+
31,
|
|
34
|
+
30,
|
|
35
|
+
31,
|
|
36
|
+
30,
|
|
37
|
+
31
|
|
38
|
+
], o = [
|
|
39
|
+
{
|
|
40
|
+
name: "minute",
|
|
41
|
+
lo: 0,
|
|
42
|
+
hi: 59
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "hour",
|
|
46
|
+
lo: 0,
|
|
47
|
+
hi: 23
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "day of month",
|
|
51
|
+
lo: 1,
|
|
52
|
+
hi: 31
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "month",
|
|
56
|
+
lo: 1,
|
|
57
|
+
hi: 12,
|
|
58
|
+
names: r,
|
|
59
|
+
offset: 1
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "weekday",
|
|
63
|
+
lo: 0,
|
|
64
|
+
hi: 7,
|
|
65
|
+
names: i,
|
|
66
|
+
offset: 0
|
|
67
|
+
}
|
|
68
|
+
], s = {
|
|
69
|
+
"@yearly": "0 0 1 1 *",
|
|
70
|
+
"@annually": "0 0 1 1 *",
|
|
71
|
+
"@monthly": "0 0 1 * *",
|
|
72
|
+
"@weekly": "0 0 * * 0",
|
|
73
|
+
"@daily": "0 0 * * *",
|
|
74
|
+
"@midnight": "0 0 * * *",
|
|
75
|
+
"@hourly": "0 * * * *"
|
|
76
|
+
}, c = /^(\*|[a-z0-9]+(?:-[a-z0-9]+)?)(?:\/(\d+))?$/i, l = (e, t) => {
|
|
77
|
+
if (/^\d+$/.test(e)) return Number(e);
|
|
78
|
+
let n = t.names?.indexOf(e.toLowerCase()) ?? -1;
|
|
79
|
+
return n < 0 ? NaN : n + (t.offset ?? 0);
|
|
80
|
+
}, u = (e, t, n) => {
|
|
81
|
+
if (e === "*") return [n.lo, n.hi];
|
|
82
|
+
let [r, i] = e.split("-"), a = l(r, n);
|
|
83
|
+
return [a, i === void 0 ? t ? n.hi : a : l(i, n)];
|
|
84
|
+
}, d = (e, t) => {
|
|
85
|
+
let n = /* @__PURE__ */ new Set();
|
|
86
|
+
for (let r of e.split(",")) {
|
|
87
|
+
let e = c.exec(r);
|
|
88
|
+
if (!e) return null;
|
|
89
|
+
let i = e[2] === void 0 ? 1 : Number(e[2]), [a, o] = u(e[1], e[2] !== void 0, t);
|
|
90
|
+
if (Number.isNaN(a) || Number.isNaN(o) || a < t.lo || o > t.hi || a > o || i < 1) return null;
|
|
91
|
+
for (let e = a; e <= o; e += i) n.add(t.name === "weekday" && e === 7 ? 0 : e);
|
|
92
|
+
}
|
|
93
|
+
return n;
|
|
94
|
+
}, f = ({ sets: e, star: t }) => {
|
|
95
|
+
if (t[2] || !t[4]) return !1;
|
|
96
|
+
let n = Math.min(...e[2]);
|
|
97
|
+
return ![...e[3]].some((e) => a[e - 1] >= n);
|
|
98
|
+
}, p = (e) => {
|
|
99
|
+
let t = e.trim(), n = (s[t.toLowerCase()] ?? t).split(/\s+/);
|
|
100
|
+
if (n.length !== 5 || !n[0]) return "Use five fields: minute hour day-of-month month weekday";
|
|
101
|
+
let r = [];
|
|
102
|
+
for (let [e, t] of o.entries()) {
|
|
103
|
+
let i = d(n[e], t);
|
|
104
|
+
if (!i) return `Invalid ${t.name} field "${n[e]}"`;
|
|
105
|
+
r.push(i);
|
|
106
|
+
}
|
|
107
|
+
let i = {
|
|
108
|
+
raw: n,
|
|
109
|
+
sets: r,
|
|
110
|
+
star: n.map((e) => e.startsWith("*"))
|
|
111
|
+
};
|
|
112
|
+
return f(i) ? "The day of month never occurs in the chosen months" : i;
|
|
113
|
+
}, m = (e) => ({
|
|
114
|
+
text: "",
|
|
115
|
+
next: [],
|
|
116
|
+
error: e
|
|
117
|
+
}), h = (r, i = {}) => {
|
|
118
|
+
let { timeZone: a, count: o = 3, from: s = /* @__PURE__ */ new Date() } = i;
|
|
119
|
+
if (a) try {
|
|
120
|
+
t(0, a);
|
|
121
|
+
} catch {
|
|
122
|
+
return m(`Unknown time zone "${a}"`);
|
|
123
|
+
}
|
|
124
|
+
if (Number.isNaN(s.getTime())) return m("Invalid start date");
|
|
125
|
+
let c = p(String(r ?? ""));
|
|
126
|
+
return typeof c == "string" ? m(c) : {
|
|
127
|
+
text: a ? `${n(c)} (${a})` : n(c),
|
|
128
|
+
next: e(c, a, s.getTime(), Math.max(0, o))
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export { h as describeCron };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Wall-clock maths in a time zone, and the next fire times of a parsed cron. */
|
|
2
|
+
export interface ParsedCron {
|
|
3
|
+
raw: string[];
|
|
4
|
+
sets: Set<number>[];
|
|
5
|
+
star: boolean[];
|
|
6
|
+
}
|
|
7
|
+
export declare const zoneParts: (time: number, zone: string | undefined) => Record<string, number>;
|
|
8
|
+
export declare const nextRuns: (cron: ParsedCron, zone: string | undefined, from: number, count: number) => Date[];
|
|
9
|
+
//# sourceMappingURL=cron.next.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.next.d.ts","sourceRoot":"","sources":["../../src/lib/cron.next.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;IACpB,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AAOD,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,MAAM,MAAM,GAAG,SAAS,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAsBvF,CAAC;AAwCF,eAAO,MAAM,QAAQ,GACnB,MAAM,UAAU,EAChB,MAAM,MAAM,GAAG,SAAS,EACxB,MAAM,MAAM,EACZ,OAAO,MAAM,KACZ,IAAI,EAuBN,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// src/lib/cron.next.ts
|
|
2
|
+
var e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
3
|
+
let r = n ?? "", i = e.get(r);
|
|
4
|
+
i || (i = new Intl.DateTimeFormat("en-US", {
|
|
5
|
+
timeZone: n,
|
|
6
|
+
hourCycle: "h23",
|
|
7
|
+
year: "numeric",
|
|
8
|
+
month: "numeric",
|
|
9
|
+
day: "numeric",
|
|
10
|
+
hour: "numeric",
|
|
11
|
+
minute: "numeric",
|
|
12
|
+
second: "numeric"
|
|
13
|
+
}), e.set(r, i));
|
|
14
|
+
let a = {};
|
|
15
|
+
for (let e of i.formatToParts(new Date(t))) e.type !== "literal" && (a[e.type] = Number(e.value));
|
|
16
|
+
return a.hour %= 24, a;
|
|
17
|
+
}, n = (e, n) => {
|
|
18
|
+
let r = t(e, n);
|
|
19
|
+
return Date.UTC(r.year, r.month - 1, r.day, r.hour, r.minute, r.second) - Math.floor(e / 1e3) * 1e3;
|
|
20
|
+
}, r = (e) => Date.UTC(e.year, e.month - 1, e.day, e.hour, e.minute), i = (e, i, a, o, s, c) => {
|
|
21
|
+
let l = Date.UTC(e, i, a, o, s), u = l - n(l - n(l, c), c);
|
|
22
|
+
if (r(t(u, c)) === l) return u;
|
|
23
|
+
let d = l - n(l, c);
|
|
24
|
+
for (r(t(d, c)) < l && (d += 36e5); r(t(d - 6e4, c)) >= l;) d -= 6e4;
|
|
25
|
+
return d;
|
|
26
|
+
}, a = ({ sets: e, star: t }, n, r, i) => {
|
|
27
|
+
if (!e[3].has(r)) return !1;
|
|
28
|
+
let a = e[2].has(n), o = e[4].has(i);
|
|
29
|
+
return t[2] && t[4] ? !0 : t[2] ? o : t[4] ? a : a || o;
|
|
30
|
+
}, o = (e, n, r, o) => {
|
|
31
|
+
let s = [], c = t(r, n), l = [...e.sets[1]].sort((e, t) => e - t), u = [...e.sets[0]].sort((e, t) => e - t), d = r;
|
|
32
|
+
for (let t = 0; t < 3660 && s.length < o; t++) {
|
|
33
|
+
let r = new Date(Date.UTC(c.year, c.month - 1, c.day + t)), [f, p, m] = [
|
|
34
|
+
r.getUTCFullYear(),
|
|
35
|
+
r.getUTCMonth(),
|
|
36
|
+
r.getUTCDate()
|
|
37
|
+
];
|
|
38
|
+
if (a(e, m, p + 1, r.getUTCDay())) {
|
|
39
|
+
for (let e of l) if (!(t === 0 && e < c.hour)) for (let r of u) {
|
|
40
|
+
if (s.length >= o) return s;
|
|
41
|
+
if (t === 0 && e === c.hour && r < c.minute) continue;
|
|
42
|
+
let a = i(f, p, m, e, r, n);
|
|
43
|
+
a <= d || (d = a, s.push(new Date(a)));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return s;
|
|
48
|
+
};
|
|
49
|
+
export { o as nextRuns, t as zoneParts };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cron.text.d.ts","sourceRoot":"","sources":["../../src/lib/cron.text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA8F9C,eAAO,MAAM,QAAQ,GAAI,MAAM,UAAU,KAAG,MAY3C,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// src/lib/cron.text.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"Monday",
|
|
4
|
+
"Tuesday",
|
|
5
|
+
"Wednesday",
|
|
6
|
+
"Thursday",
|
|
7
|
+
"Friday",
|
|
8
|
+
"Saturday",
|
|
9
|
+
"Sunday"
|
|
10
|
+
], t = [
|
|
11
|
+
"January",
|
|
12
|
+
"February",
|
|
13
|
+
"March",
|
|
14
|
+
"April",
|
|
15
|
+
"May",
|
|
16
|
+
"June",
|
|
17
|
+
"July",
|
|
18
|
+
"August",
|
|
19
|
+
"September",
|
|
20
|
+
"October",
|
|
21
|
+
"November",
|
|
22
|
+
"December"
|
|
23
|
+
], n = (e) => String(e).padStart(2, "0"), r = (e) => /^\d+$/.test(e), i = (e) => [...e].sort((e, t) => e - t), a = (e) => e.length < 2 ? e.join("") : `${e.slice(0, -1).join(", ")} and ${e.at(-1)}`, o = (e) => e.length >= 3 && e.every((t, n) => n === 0 || t === e[n - 1] + 1), s = (e, t) => {
|
|
24
|
+
let n = /^\*\/(\d+)$/.exec(e);
|
|
25
|
+
return n && t % Number(n[1]) === 0 ? Number(n[1]) : null;
|
|
26
|
+
}, c = (e, t) => o(e) ? `${t[e[0]]} to ${t[e[e.length - 1]]}` : a(e.map((e) => t[e])), l = (t) => c([...t].map((e) => (e + 6) % 7).sort((e, t) => e - t), e), u = ([e, t]) => {
|
|
27
|
+
let n = s(e, 60), i = s(t, 24);
|
|
28
|
+
if (e === "*" && t === "*") return "Every minute";
|
|
29
|
+
if (n !== null && t === "*") return n === 1 ? "Every minute" : `Every ${n} minutes`;
|
|
30
|
+
if (!r(e)) return null;
|
|
31
|
+
let a = Number(e) === 0 ? "" : ` at minute ${Number(e)}`;
|
|
32
|
+
return t === "*" ? `Every hour${a}` : i === null ? null : `Every ${i === 1 ? "hour" : `${i} hours`}${a}`;
|
|
33
|
+
}, d = (e, t) => {
|
|
34
|
+
let [r, s] = [i(e), i(t)], [c, l] = [r.length === 60, s.length === 24];
|
|
35
|
+
if (c && l) return "Every minute";
|
|
36
|
+
if (r.length * s.length <= 4) return `At ${a(s.flatMap((e) => r.map((t) => `${n(e)}:${n(t)}`)))}`;
|
|
37
|
+
if (l) return `At minute ${a(r.map(String))} of every hour`;
|
|
38
|
+
let u = o(s), d = `${n(s[0])}:00 to ${n(s[s.length - 1])}:`;
|
|
39
|
+
if (c) return u ? `Every minute from ${d}59` : `Every minute during ${a(s.map((e) => `${n(e)}:xx`))}`;
|
|
40
|
+
if (u && r.length === 1 && r[0] === 0) return `Every hour from ${d}00`;
|
|
41
|
+
let f = u ? `${s[0]} to ${s[s.length - 1]}` : a(s.map(String));
|
|
42
|
+
return `At minute ${a(r.map(String))} past hours ${f}`;
|
|
43
|
+
}, f = ({ raw: [, , e, , t], sets: n, star: r }) => {
|
|
44
|
+
let o = i(n[2]), s = [e !== "*" && `${o.length === 1 ? "day" : "days"} ${a(o.map(String))} of the month`, t !== "*" && l(n[4])].filter(Boolean);
|
|
45
|
+
return s.length ? `on ${s.join(r[2] || r[4] ? " and " : " or ")}` : "";
|
|
46
|
+
}, p = (e) => {
|
|
47
|
+
let n = e.raw[3] === "*" ? "" : `in ${c(i(e.sets[3]).map((e) => e - 1), t)}`;
|
|
48
|
+
return [
|
|
49
|
+
d(e.sets[0], e.sets[1]),
|
|
50
|
+
f(e),
|
|
51
|
+
n
|
|
52
|
+
].filter(Boolean).join(" ");
|
|
53
|
+
}, m = (e) => {
|
|
54
|
+
let { raw: t, sets: i } = e, [a, o, s, c, d] = t, f = r(a) && r(o) ? `${n(Number(o))}:${n(Number(a))}` : null;
|
|
55
|
+
if (s === "*" && c === "*" && d === "*") {
|
|
56
|
+
let e = u(t);
|
|
57
|
+
if (e) return e;
|
|
58
|
+
}
|
|
59
|
+
return f && c === "*" && s === "*" ? i[4].size === 7 ? `Every day at ${f}` : `At ${f} on ${l(i[4])}` : p(e);
|
|
60
|
+
};
|
|
61
|
+
export { m as describe };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Pure geometry and keyboard rules behind `useDragReorder`. */
|
|
2
|
+
export interface DragGroup {
|
|
3
|
+
key: string;
|
|
4
|
+
/** Swimlane key when groups repeat per row. */
|
|
5
|
+
row?: string;
|
|
6
|
+
ids: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface DragMove {
|
|
9
|
+
id: string;
|
|
10
|
+
toGroup: string;
|
|
11
|
+
/** Index in the target group once the moved item is taken out of its old place. */
|
|
12
|
+
toIndex: number;
|
|
13
|
+
toRow?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DropTarget extends Omit<DragMove, 'id'> {
|
|
16
|
+
/** Insertion line, in px relative to the root. */
|
|
17
|
+
line: {
|
|
18
|
+
left: number;
|
|
19
|
+
top: number;
|
|
20
|
+
width: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** The group under the pointer and the insertion index by item midpoints. */
|
|
24
|
+
export declare const dropAt: (root: HTMLElement, groups: DragGroup[], id: string, x: number, y: number) => DropTarget | null;
|
|
25
|
+
/** Alt + arrows: Up and Down inside the group, Left and Right to the next group in the row. */
|
|
26
|
+
export declare const keyMove: (groups: DragGroup[], id: string, key: string) => {
|
|
27
|
+
move: DragMove;
|
|
28
|
+
total: number;
|
|
29
|
+
} | null;
|
|
30
|
+
export declare const sameTarget: (a: DropTarget | null, b: DropTarget | null) => boolean;
|
|
31
|
+
/** A fixed copy of the card under the pointer; ids are stripped so the document keeps them unique. */
|
|
32
|
+
export declare const makeGhost: (source: HTMLElement, box: DOMRect) => HTMLElement;
|
|
33
|
+
//# sourceMappingURL=drag-reorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag-reorder.d.ts","sourceRoot":"","sources":["../../src/lib/drag-reorder.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,EAAE,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;IACtD,kDAAkD;IAClD,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACpD;AAYD,6EAA6E;AAC7E,eAAO,MAAM,MAAM,GACjB,MAAM,WAAW,EACjB,QAAQ,SAAS,EAAE,EACnB,IAAI,MAAM,EACV,GAAG,MAAM,EACT,GAAG,MAAM,KACR,UAAU,GAAG,IAuBf,CAAC;AAEF,+FAA+F;AAC/F,eAAO,MAAM,OAAO,GAClB,QAAQ,SAAS,EAAE,EACnB,IAAI,MAAM,EACV,KAAK,MAAM,KACV;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,IAiBtC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,GAAG,UAAU,GAAG,IAAI,EAAE,GAAG,UAAU,GAAG,IAAI,KAAG,OAQxC,CAAC;AAEjC,sGAAsG;AACtG,eAAO,MAAM,SAAS,GAAI,QAAQ,WAAW,EAAE,KAAK,OAAO,KAAG,WAoB7D,CAAC"}
|