@spinjs/components 0.1.0-preview.1 → 0.2.0-alpha.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/README.md +15 -5
- package/dist/angle-slider/angle-slider.events.d.ts +2 -3
- package/dist/angle-slider/angle-slider.machine.d.ts +4 -5
- package/dist/angle-slider/angle-slider.machine.js +2 -2
- package/dist/angle-slider/angle-slider.presentation.d.ts +11 -12
- package/dist/angle-slider/angle-slider.presentation.js +2 -2
- package/dist/angle-slider/angle-slider.state.d.ts +1 -2
- package/dist/angle-slider/angle-slider.state.js +1 -1
- package/dist/angle-slider/angle-slider.transitions.d.ts +2 -3
- package/dist/angle-slider/examples/basic.html +2 -2
- package/dist/angle-slider/examples/basic.html.js +5 -0
- package/dist/angle-slider/examples/knob.html +1 -1
- package/dist/angle-slider/examples/knob.html.js +5 -0
- package/dist/angle-slider/examples/labeled.html +11 -11
- package/dist/angle-slider/examples/labeled.html.js +5 -0
- package/dist/angle-slider/examples/marks.html +2 -2
- package/dist/angle-slider/examples/marks.html.js +5 -0
- package/dist/async-list/async-list.events.d.ts +2 -3
- package/dist/async-list/async-list.machine.d.ts +2 -3
- package/dist/async-list/async-list.machine.js +1 -1
- package/dist/async-list/async-list.presentation.d.ts +13 -14
- package/dist/async-list/async-list.presentation.js +2 -2
- package/dist/async-list/async-list.state.d.ts +1 -2
- package/dist/async-list/async-list.state.js +1 -1
- package/dist/async-list/async-list.transitions.d.ts +3 -4
- package/dist/async-list/examples/basic.html +7 -7
- package/dist/async-list/examples/basic.html.js +5 -0
- package/dist/avatar/avatar.events.d.ts +2 -3
- package/dist/avatar/avatar.machine.d.ts +12 -4
- package/dist/avatar/avatar.machine.js +1 -1
- package/dist/avatar/avatar.presentation.d.ts +5 -6
- package/dist/avatar/avatar.presentation.js +1 -1
- package/dist/avatar/avatar.state.d.ts +1 -2
- package/dist/avatar/avatar.state.js +1 -1
- package/dist/avatar/avatar.transitions.d.ts +2 -3
- package/dist/avatar/examples/badge.html +2 -2
- package/dist/avatar/examples/badge.html.js +5 -0
- package/dist/avatar/examples/badgeminimal.html +1 -1
- package/dist/avatar/examples/badgeminimal.html.js +5 -0
- package/dist/avatar/examples/basic.html +1 -1
- package/dist/avatar/examples/basic.html.js +5 -0
- package/dist/avatar/examples/count.html +5 -5
- package/dist/avatar/examples/count.html.js +5 -0
- package/dist/avatar/examples/fallback.html +1 -1
- package/dist/avatar/examples/fallback.html.js +5 -0
- package/dist/avatar/examples/group.html +4 -4
- package/dist/avatar/examples/group.html.js +5 -0
- package/dist/avatar/examples/icon.html +2 -2
- package/dist/avatar/examples/icon.html.js +5 -0
- package/dist/avatar/examples/multiples.html +4 -4
- package/dist/avatar/examples/multiples.html.js +5 -0
- package/dist/avatar/examples/pills.html +12 -12
- package/dist/avatar/examples/pills.html.js +5 -0
- package/dist/avatar/examples/pillsolid.html +4 -4
- package/dist/avatar/examples/pillsolid.html.js +5 -0
- package/dist/avatar/examples/rounded.html +1 -1
- package/dist/avatar/examples/rounded.html.js +5 -0
- package/dist/avatar/examples/status.html +2 -2
- package/dist/avatar/examples/status.html.js +5 -0
- package/dist/avatar/examples/statusminimal.html +1 -1
- package/dist/avatar/examples/statusminimal.html.js +5 -0
- package/dist/avatar/examples/trusted.html +6 -6
- package/dist/avatar/examples/trusted.html.js +5 -0
- package/dist/avatar/examples/verification.html +3 -3
- package/dist/avatar/examples/verification.html.js +5 -0
- package/dist/carousel/carousel.events.d.ts +2 -3
- package/dist/carousel/carousel.machine.d.ts +3 -4
- package/dist/carousel/carousel.machine.js +1 -1
- package/dist/carousel/carousel.presentation.d.ts +14 -15
- package/dist/carousel/carousel.presentation.js +2 -2
- package/dist/carousel/carousel.state.d.ts +1 -2
- package/dist/carousel/carousel.state.js +1 -1
- package/dist/carousel/carousel.transitions.d.ts +2 -3
- package/dist/carousel/examples/autoplay.html +8 -8
- package/dist/carousel/examples/autoplay.html.js +5 -0
- package/dist/carousel/examples/basic.html +7 -7
- package/dist/carousel/examples/basic.html.js +5 -0
- package/dist/carousel/examples/cards.html +8 -8
- package/dist/carousel/examples/cards.html.js +5 -0
- package/dist/carousel/examples/hero.html +6 -6
- package/dist/carousel/examples/hero.html.js +5 -0
- package/dist/carousel/examples/infinite.html +7 -7
- package/dist/carousel/examples/infinite.html.js +5 -0
- package/dist/carousel/examples/minimal.html +5 -5
- package/dist/carousel/examples/minimal.html.js +5 -0
- package/dist/carousel/examples/testimonials.html +10 -10
- package/dist/carousel/examples/testimonials.html.js +5 -0
- package/dist/carousel/examples/thumbnails.html +8 -8
- package/dist/carousel/examples/thumbnails.html.js +5 -0
- package/dist/carousel/examples/vertical.html +8 -8
- package/dist/carousel/examples/vertical.html.js +5 -0
- package/dist/cascade-select/cascade.events.d.ts +2 -3
- package/dist/cascade-select/cascade.machine.d.ts +3 -4
- package/dist/cascade-select/cascade.machine.js +1 -1
- package/dist/cascade-select/cascade.presentation.d.ts +8 -9
- package/dist/cascade-select/cascade.presentation.js +12 -12
- package/dist/cascade-select/cascade.state.d.ts +1 -2
- package/dist/cascade-select/cascade.state.js +1 -1
- package/dist/cascade-select/cascade.transitions.d.ts +2 -3
- package/dist/cascade-select/examples/basic.html +13 -11
- package/dist/cascade-select/examples/basic.html.js +5 -0
- package/dist/color-picker/color-picker.events.d.ts +3 -4
- package/dist/color-picker/color-picker.machine.d.ts +3 -3
- package/dist/color-picker/color-picker.machine.js +1 -1
- package/dist/color-picker/color-picker.presentation.d.ts +20 -21
- package/dist/color-picker/color-picker.presentation.js +4 -5
- package/dist/color-picker/color-picker.state.d.ts +2 -3
- package/dist/color-picker/color-picker.state.js +2 -2
- package/dist/color-picker/color-picker.transitions.d.ts +3 -4
- package/dist/color-picker/color.d.ts +39 -0
- package/dist/color-picker/color.js +401 -0
- package/dist/color-picker/examples/basic.html +14 -14
- package/dist/color-picker/examples/basic.html.js +5 -0
- package/dist/color-picker/examples/hue-wheel.html +9 -9
- package/dist/color-picker/examples/hue-wheel.html.js +5 -0
- package/dist/color-picker/examples/inline.html +8 -8
- package/dist/color-picker/examples/inline.html.js +5 -0
- package/dist/color-picker/examples/with-presets.html +10 -10
- package/dist/color-picker/examples/with-presets.html.js +5 -0
- package/dist/combobox/combobox.events.d.ts +2 -3
- package/dist/combobox/combobox.machine.d.ts +3 -4
- package/dist/combobox/combobox.machine.js +1 -1
- package/dist/combobox/combobox.presentation.d.ts +8 -9
- package/dist/combobox/combobox.presentation.js +3 -3
- package/dist/combobox/combobox.state.d.ts +1 -2
- package/dist/combobox/combobox.state.js +1 -1
- package/dist/combobox/combobox.transitions.d.ts +3 -4
- package/dist/combobox/examples/basic.html +7 -7
- package/dist/combobox/examples/basic.html.js +5 -0
- package/dist/combobox/examples/directory.html +7 -7
- package/dist/combobox/examples/directory.html.js +5 -0
- package/dist/combobox/examples/grouping.html +7 -7
- package/dist/combobox/examples/grouping.html.js +5 -0
- package/dist/combobox/examples/multiple.html +8 -8
- package/dist/combobox/examples/multiple.html.js +5 -0
- package/dist/compiler/emit.d.ts +6 -0
- package/dist/compiler/emit.js +217 -0
- package/dist/compiler/transform.d.ts +52 -0
- package/dist/compiler/transform.js +169 -0
- package/dist/controller.d.ts +2 -3
- package/dist/controller.js +1 -1
- package/dist/date-input/date-input.events.d.ts +2 -3
- package/dist/date-input/date-input.machine.d.ts +3 -3
- package/dist/date-input/date-input.machine.js +1 -1
- package/dist/date-input/date-input.presentation.d.ts +6 -7
- package/dist/date-input/date-input.presentation.js +1 -1
- package/dist/date-input/date-input.state.d.ts +1 -2
- package/dist/date-input/date-input.state.js +1 -1
- package/dist/date-input/date-input.transitions.d.ts +3 -4
- package/dist/date-input/examples/basic.html +3 -3
- package/dist/date-input/examples/basic.html.js +5 -0
- package/dist/date-picker/date-picker.events.d.ts +2 -3
- package/dist/date-picker/date-picker.machine.d.ts +2 -3
- package/dist/date-picker/date-picker.machine.js +1 -1
- package/dist/date-picker/date-picker.presentation.d.ts +14 -15
- package/dist/date-picker/date-picker.presentation.js +2 -2
- package/dist/date-picker/date-picker.state.d.ts +1 -2
- package/dist/date-picker/date-picker.state.js +1 -1
- package/dist/date-picker/date-picker.transitions.d.ts +3 -4
- package/dist/date-picker/examples/appointment.html +7 -7
- package/dist/date-picker/examples/appointment.html.js +5 -0
- package/dist/date-picker/examples/basic.html.js +5 -0
- package/dist/date-picker/examples/multiple.html.js +5 -0
- package/dist/date-picker/examples/pricing.html.js +5 -0
- package/dist/date-picker/examples/range.html.js +5 -0
- package/dist/date-picker/examples/unavailable.html.js +5 -0
- package/dist/editable/editable.events.d.ts +2 -3
- package/dist/editable/editable.machine.d.ts +3 -4
- package/dist/editable/editable.machine.js +1 -1
- package/dist/editable/editable.presentation.d.ts +6 -7
- package/dist/editable/editable.presentation.js +1 -1
- package/dist/editable/editable.state.d.ts +1 -2
- package/dist/editable/editable.state.js +1 -1
- package/dist/editable/editable.transitions.d.ts +3 -4
- package/dist/editable/examples/basic.html +7 -7
- package/dist/editable/examples/basic.html.js +5 -0
- package/dist/editable/examples/doubleclick.html +6 -6
- package/dist/editable/examples/doubleclick.html.js +5 -0
- package/dist/editable/examples/inline-edit.html +4 -4
- package/dist/editable/examples/inline-edit.html.js +5 -0
- package/dist/editable/examples/profile-field.html +7 -7
- package/dist/editable/examples/profile-field.html.js +5 -0
- package/dist/editable/examples/resize.html +6 -6
- package/dist/editable/examples/resize.html.js +5 -0
- package/dist/editable/examples/task-item.html +7 -7
- package/dist/editable/examples/task-item.html.js +5 -0
- package/dist/editable/examples/title-editor.html +3 -3
- package/dist/editable/examples/title-editor.html.js +5 -0
- package/dist/editable/examples/with-controls.html +4 -4
- package/dist/editable/examples/with-controls.html.js +5 -0
- package/dist/examples.d.ts +22 -0
- package/dist/examples.js +501 -0
- package/dist/file-upload/examples/avatar.html +8 -8
- package/dist/file-upload/examples/avatar.html.js +5 -0
- package/dist/file-upload/examples/basic.html +8 -8
- package/dist/file-upload/examples/basic.html.js +5 -0
- package/dist/file-upload/examples/directory.html +8 -8
- package/dist/file-upload/examples/directory.html.js +5 -0
- package/dist/file-upload/examples/dragdrop.html +8 -8
- package/dist/file-upload/examples/dragdrop.html.js +5 -0
- package/dist/file-upload/examples/files.html +9 -9
- package/dist/file-upload/examples/files.html.js +5 -0
- package/dist/file-upload/examples/images.html +8 -8
- package/dist/file-upload/examples/images.html.js +5 -0
- package/dist/file-upload/examples/paste.html +8 -8
- package/dist/file-upload/examples/paste.html.js +5 -0
- package/dist/file-upload/examples/table.html +7 -7
- package/dist/file-upload/examples/table.html.js +5 -0
- package/dist/file-upload/file-upload.events.d.ts +2 -3
- package/dist/file-upload/file-upload.machine.d.ts +5 -3
- package/dist/file-upload/file-upload.machine.js +1 -1
- package/dist/file-upload/file-upload.presentation.d.ts +10 -11
- package/dist/file-upload/file-upload.presentation.js +1 -1
- package/dist/file-upload/file-upload.state.d.ts +1 -2
- package/dist/file-upload/file-upload.state.js +1 -1
- package/dist/file-upload/file-upload.transitions.d.ts +3 -4
- package/dist/floating-panel/examples/basic.html +22 -23
- package/dist/floating-panel/examples/basic.html.js +5 -0
- package/dist/floating-panel/examples/calculator.html +41 -41
- package/dist/floating-panel/examples/calculator.html.js +5 -0
- package/dist/floating-panel/examples/chat.html +29 -29
- package/dist/floating-panel/examples/chat.html.js +5 -0
- package/dist/floating-panel/examples/media-player.html +27 -27
- package/dist/floating-panel/examples/media-player.html.js +5 -0
- package/dist/floating-panel/examples/notes.html +36 -36
- package/dist/floating-panel/examples/notes.html.js +5 -0
- package/dist/floating-panel/examples/settings.html +34 -34
- package/dist/floating-panel/examples/settings.html.js +5 -0
- package/dist/floating-panel/examples/task.html +40 -40
- package/dist/floating-panel/examples/task.html.js +5 -0
- package/dist/floating-panel/examples/video-call.html +25 -25
- package/dist/floating-panel/examples/video-call.html.js +5 -0
- package/dist/floating-panel/floating-panel.events.d.ts +2 -3
- package/dist/floating-panel/floating-panel.machine.d.ts +2 -3
- package/dist/floating-panel/floating-panel.machine.js +1 -1
- package/dist/floating-panel/floating-panel.presentation.d.ts +11 -13
- package/dist/floating-panel/floating-panel.presentation.js +3 -6
- package/dist/floating-panel/floating-panel.state.d.ts +1 -2
- package/dist/floating-panel/floating-panel.state.js +1 -1
- package/dist/floating-panel/floating-panel.transitions.d.ts +3 -4
- package/dist/hover-card/examples/basic.html +5 -5
- package/dist/hover-card/examples/basic.html.js +5 -0
- package/dist/hover-card/examples/controlled.html +9 -10
- package/dist/hover-card/examples/controlled.html.js +5 -0
- package/dist/hover-card/examples/custom-positioning.html +8 -8
- package/dist/hover-card/examples/custom-positioning.html.js +5 -0
- package/dist/hover-card/examples/link.html +2 -2
- package/dist/hover-card/examples/link.html.js +5 -0
- package/dist/hover-card/examples/product.html +9 -9
- package/dist/hover-card/examples/product.html.js +5 -0
- package/dist/hover-card/examples/user.html +11 -11
- package/dist/hover-card/examples/user.html.js +5 -0
- package/dist/hover-card/examples/with-arrow.html +9 -9
- package/dist/hover-card/examples/with-arrow.html.js +5 -0
- package/dist/hover-card/hover-card.controller-def.d.ts +2 -4
- package/dist/hover-card/hover-card.controller-def.js +1 -1
- package/dist/image-cropper/crop-geometry.d.ts +1 -2
- package/dist/image-cropper/crop-geometry.js +1 -1
- package/dist/image-cropper/examples/basic.html +3 -3
- package/dist/image-cropper/examples/basic.html.js +5 -0
- package/dist/image-cropper/examples/circle.html +3 -3
- package/dist/image-cropper/examples/circle.html.js +5 -0
- package/dist/image-cropper/image-cropper.events.d.ts +2 -3
- package/dist/image-cropper/image-cropper.machine.d.ts +3 -4
- package/dist/image-cropper/image-cropper.machine.js +2 -2
- package/dist/image-cropper/image-cropper.presentation.d.ts +7 -8
- package/dist/image-cropper/image-cropper.presentation.js +2 -2
- package/dist/image-cropper/image-cropper.state.d.ts +1 -2
- package/dist/image-cropper/image-cropper.state.js +1 -1
- package/dist/image-cropper/image-cropper.transitions.d.ts +3 -4
- package/dist/index.d.ts +28 -13
- package/dist/index.js +21 -14
- package/dist/listbox/examples/basic.html +9 -9
- package/dist/listbox/examples/basic.html.js +5 -0
- package/dist/listbox/examples/controlled.html +9 -9
- package/dist/listbox/examples/controlled.html.js +5 -0
- package/dist/listbox/examples/countries.html +9 -9
- package/dist/listbox/examples/countries.html.js +5 -0
- package/dist/listbox/examples/grouped.html +9 -9
- package/dist/listbox/examples/grouped.html.js +5 -0
- package/dist/listbox/examples/icons.html +10 -10
- package/dist/listbox/examples/icons.html.js +5 -0
- package/dist/listbox/examples/multiple.html +9 -9
- package/dist/listbox/examples/multiple.html.js +5 -0
- package/dist/listbox/examples/priority.html +9 -9
- package/dist/listbox/examples/priority.html.js +5 -0
- package/dist/listbox/examples/settings.html +9 -9
- package/dist/listbox/examples/settings.html.js +5 -0
- package/dist/listbox/listbox.events.d.ts +2 -3
- package/dist/listbox/listbox.machine.d.ts +2 -3
- package/dist/listbox/listbox.machine.js +1 -1
- package/dist/listbox/listbox.presentation.d.ts +6 -5
- package/dist/listbox/listbox.presentation.js +1 -1
- package/dist/listbox/listbox.state.d.ts +1 -2
- package/dist/listbox/listbox.state.js +1 -1
- package/dist/listbox/listbox.transitions.d.ts +3 -4
- package/dist/menu/examples/basic.html +15 -13
- package/dist/menu/examples/basic.html.js +5 -0
- package/dist/menu/examples/context.html +14 -12
- package/dist/menu/examples/context.html.js +5 -0
- package/dist/menu/examples/groups.html +15 -13
- package/dist/menu/examples/groups.html.js +5 -0
- package/dist/menu/examples/icons.html +17 -15
- package/dist/menu/examples/icons.html.js +5 -0
- package/dist/menu/examples/nested.html +15 -13
- package/dist/menu/examples/nested.html.js +5 -0
- package/dist/menu/examples/user.html +21 -19
- package/dist/menu/examples/user.html.js +5 -0
- package/dist/menu/menu.events.d.ts +2 -3
- package/dist/menu/menu.machine.d.ts +2 -3
- package/dist/menu/menu.machine.js +1 -1
- package/dist/menu/menu.presentation.d.ts +6 -8
- package/dist/menu/menu.presentation.js +4 -5
- package/dist/menu/menu.state.d.ts +1 -2
- package/dist/menu/menu.state.js +1 -1
- package/dist/mode-picker/examples/basic.html +1 -1
- package/dist/mode-picker/examples/basic.html.js +5 -0
- package/dist/mode-picker/examples/minimal.html +1 -1
- package/dist/mode-picker/examples/minimal.html.js +5 -0
- package/dist/mode-picker/examples/pill.html +1 -1
- package/dist/mode-picker/examples/pill.html.js +5 -0
- package/dist/mode-picker/mode-picker.events.d.ts +2 -3
- package/dist/mode-picker/mode-picker.machine.d.ts +3 -3
- package/dist/mode-picker/mode-picker.machine.js +1 -1
- package/dist/mode-picker/mode-picker.presentation.d.ts +7 -8
- package/dist/mode-picker/mode-picker.presentation.js +2 -2
- package/dist/mode-picker/mode-picker.state.d.ts +1 -2
- package/dist/mode-picker/mode-picker.transitions.d.ts +3 -4
- package/dist/navigation-menu/examples/basic.html +6 -6
- package/dist/navigation-menu/examples/basic.html.js +5 -0
- package/dist/navigation-menu/examples/grouped.html +14 -12
- package/dist/navigation-menu/examples/grouped.html.js +5 -0
- package/dist/navigation-menu/examples/minimal.html +7 -5
- package/dist/navigation-menu/examples/minimal.html.js +5 -0
- package/dist/navigation-menu/navigation-menu.events.d.ts +2 -3
- package/dist/navigation-menu/navigation-menu.machine.d.ts +3 -3
- package/dist/navigation-menu/navigation-menu.machine.js +1 -1
- package/dist/navigation-menu/navigation-menu.presentation.d.ts +6 -7
- package/dist/navigation-menu/navigation-menu.presentation.js +2 -2
- package/dist/navigation-menu/navigation-menu.state.d.ts +1 -2
- package/dist/navigation-menu/navigation-menu.state.js +1 -1
- package/dist/navigation-menu/navigation-menu.transitions.d.ts +3 -4
- package/dist/number-input/examples/basic.html +10 -10
- package/dist/number-input/examples/basic.html.js +5 -0
- package/dist/number-input/examples/currency.html +6 -6
- package/dist/number-input/examples/currency.html.js +5 -0
- package/dist/number-input/examples/decimal.html +4 -4
- package/dist/number-input/examples/decimal.html.js +5 -0
- package/dist/number-input/examples/limits.html +6 -6
- package/dist/number-input/examples/limits.html.js +5 -0
- package/dist/number-input/examples/percentage.html +6 -6
- package/dist/number-input/examples/percentage.html.js +5 -0
- package/dist/number-input/examples/quantity.html +6 -6
- package/dist/number-input/examples/quantity.html.js +5 -0
- package/dist/number-input/examples/scrubber.html +11 -11
- package/dist/number-input/examples/scrubber.html.js +5 -0
- package/dist/number-input/examples/wheel.html +7 -7
- package/dist/number-input/examples/wheel.html.js +5 -0
- package/dist/number-input/number-input.events.d.ts +2 -3
- package/dist/number-input/number-input.machine.d.ts +4 -4
- package/dist/number-input/number-input.machine.js +1 -1
- package/dist/number-input/number-input.presentation.d.ts +7 -8
- package/dist/number-input/number-input.presentation.js +4 -4
- package/dist/number-input/number-input.state.d.ts +1 -2
- package/dist/number-input/number-input.state.js +1 -1
- package/dist/number-input/number-input.transitions.d.ts +3 -4
- package/dist/pagination/examples/basic.html +2 -2
- package/dist/pagination/examples/basic.html.js +5 -0
- package/dist/pagination/examples/dropdown.html +2 -2
- package/dist/pagination/examples/dropdown.html.js +5 -0
- package/dist/pagination/examples/info.html +3 -3
- package/dist/pagination/examples/info.html.js +5 -0
- package/dist/pagination/examples/jump.html +2 -2
- package/dist/pagination/examples/jump.html.js +5 -0
- package/dist/pagination/examples/numbered.html +2 -2
- package/dist/pagination/examples/numbered.html.js +5 -0
- package/dist/pagination/examples/pagesize.html +4 -4
- package/dist/pagination/examples/pagesize.html.js +5 -0
- package/dist/pagination/pagination.events.d.ts +2 -3
- package/dist/pagination/pagination.machine.d.ts +4 -4
- package/dist/pagination/pagination.machine.js +1 -1
- package/dist/pagination/pagination.presentation.d.ts +4 -5
- package/dist/pagination/pagination.presentation.js +1 -1
- package/dist/pagination/pagination.state.d.ts +1 -2
- package/dist/pagination/pagination.state.js +1 -1
- package/dist/pagination/pagination.transitions.d.ts +2 -3
- package/dist/pin-input/examples/basic.html +2 -2
- package/dist/pin-input/examples/basic.html.js +5 -0
- package/dist/pin-input/examples/field.html +4 -4
- package/dist/pin-input/examples/field.html.js +5 -0
- package/dist/pin-input/examples/masked.html +3 -3
- package/dist/pin-input/examples/masked.html.js +5 -0
- package/dist/pin-input/examples/placeholder.html +3 -3
- package/dist/pin-input/examples/placeholder.html.js +5 -0
- package/dist/pin-input/examples/twofactor.html +4 -4
- package/dist/pin-input/examples/twofactor.html.js +5 -0
- package/dist/pin-input/examples/verification.html +6 -6
- package/dist/pin-input/examples/verification.html.js +5 -0
- package/dist/pin-input/pin-input.events.d.ts +2 -3
- package/dist/pin-input/pin-input.machine.d.ts +3 -3
- package/dist/pin-input/pin-input.machine.js +1 -1
- package/dist/pin-input/pin-input.presentation.d.ts +4 -5
- package/dist/pin-input/pin-input.presentation.js +2 -2
- package/dist/pin-input/pin-input.state.d.ts +1 -2
- package/dist/pin-input/pin-input.state.js +1 -1
- package/dist/pin-input/pin-input.transitions.d.ts +1 -2
- package/dist/popover/examples/basic.html +4 -4
- package/dist/popover/examples/basic.html.js +5 -0
- package/dist/popover/examples/feedback.html +5 -5
- package/dist/popover/examples/feedback.html.js +5 -0
- package/dist/popover/examples/notifications.html +5 -5
- package/dist/popover/examples/notifications.html.js +5 -0
- package/dist/popover/examples/settings.html +8 -8
- package/dist/popover/examples/settings.html.js +5 -0
- package/dist/popover/examples/share.html +5 -5
- package/dist/popover/examples/share.html.js +5 -0
- package/dist/popover/examples/user.html +10 -10
- package/dist/popover/examples/user.html.js +5 -0
- package/dist/popover/popover.controller-def.d.ts +2 -4
- package/dist/popover/popover.controller-def.js +1 -1
- package/dist/rating-group/examples/basic.html +9 -9
- package/dist/rating-group/examples/basic.html.js +5 -0
- package/dist/rating-group/examples/movie.html +11 -11
- package/dist/rating-group/examples/movie.html.js +5 -0
- package/dist/rating-group/examples/product-review.html +13 -13
- package/dist/rating-group/examples/product-review.html.js +5 -0
- package/dist/rating-group/examples/service-evaluation.html +5 -5
- package/dist/rating-group/examples/service-evaluation.html.js +5 -0
- package/dist/rating-group/rating-group.events.d.ts +2 -3
- package/dist/rating-group/rating-group.machine.d.ts +2 -3
- package/dist/rating-group/rating-group.machine.js +1 -1
- package/dist/rating-group/rating-group.presentation.d.ts +6 -7
- package/dist/rating-group/rating-group.presentation.js +2 -2
- package/dist/rating-group/rating-group.state.d.ts +1 -2
- package/dist/rating-group/rating-group.state.js +1 -1
- package/dist/rating-group/rating-group.transitions.d.ts +3 -4
- package/dist/react/react.d.ts +2 -3
- package/dist/runtime/actions/action.d.ts +64 -0
- package/dist/runtime/actions/action.js +45 -0
- package/dist/runtime/actions/anchor.d.ts +43 -0
- package/dist/runtime/actions/anchor.js +127 -0
- package/dist/runtime/actions/date-picker-focus.d.ts +19 -0
- package/dist/runtime/actions/date-picker-focus.js +16 -0
- package/dist/runtime/actions/drag.d.ts +66 -0
- package/dist/runtime/actions/drag.js +118 -0
- package/dist/runtime/actions/form-control.d.ts +18 -0
- package/dist/runtime/actions/form-control.js +41 -0
- package/dist/runtime/actions/hover-delay.d.ts +26 -0
- package/dist/runtime/actions/hover-delay.js +61 -0
- package/dist/runtime/actions/index.d.ts +113 -0
- package/dist/runtime/actions/index.js +240 -0
- package/dist/runtime/actions/infinite-scroll.d.ts +22 -0
- package/dist/runtime/actions/infinite-scroll.js +33 -0
- package/dist/runtime/actions/interact-outside.d.ts +43 -0
- package/dist/runtime/actions/interact-outside.js +72 -0
- package/dist/runtime/actions/observe.d.ts +27 -0
- package/dist/runtime/actions/observe.js +25 -0
- package/dist/runtime/actions/scroll-into-view.d.ts +32 -0
- package/dist/runtime/actions/scroll-into-view.js +36 -0
- package/dist/runtime/actions/select-focus.d.ts +17 -0
- package/dist/runtime/actions/select-focus.js +16 -0
- package/dist/runtime/actions/select-options.d.ts +25 -0
- package/dist/runtime/actions/select-options.js +27 -0
- package/dist/runtime/actions/toast-actions.d.ts +65 -0
- package/dist/runtime/actions/toast-actions.js +143 -0
- package/dist/runtime/aria.d.ts +231 -0
- package/dist/runtime/aria.js +193 -0
- package/dist/runtime/component/define.d.ts +242 -0
- package/dist/runtime/component/define.js +12 -0
- package/dist/runtime/component/ids.d.ts +14 -0
- package/dist/runtime/component/ids.js +35 -0
- package/dist/runtime/component/synthesize.d.ts +32 -0
- package/dist/runtime/component/synthesize.js +385 -0
- package/dist/runtime/core/signal.d.ts +57 -0
- package/dist/runtime/core/signal.js +100 -0
- package/dist/runtime/core/style.d.ts +14 -0
- package/dist/runtime/core/style.js +31 -0
- package/dist/runtime/directives/bind.d.ts +38 -0
- package/dist/runtime/directives/bind.js +244 -0
- package/dist/runtime/directives/for.d.ts +12 -0
- package/dist/runtime/directives/for.js +104 -0
- package/dist/runtime/directives/if.d.ts +10 -0
- package/dist/runtime/directives/if.js +45 -0
- package/dist/runtime/directives/load.d.ts +13 -0
- package/dist/runtime/directives/load.js +119 -0
- package/dist/runtime/directives/spread.d.ts +17 -0
- package/dist/runtime/directives/spread.js +121 -0
- package/dist/runtime/directives/tpl.d.ts +11 -0
- package/dist/runtime/directives/tpl.js +39 -0
- package/dist/runtime/directives/use.d.ts +13 -0
- package/dist/runtime/directives/use.js +34 -0
- package/dist/runtime/index.d.ts +101 -0
- package/dist/runtime/index.js +40 -0
- package/dist/runtime/machine/fsm/machine.d.ts +192 -0
- package/dist/runtime/machine/fsm/machine.js +248 -0
- package/dist/runtime/math/index.d.ts +2 -0
- package/dist/runtime/math/index.js +1 -0
- package/dist/runtime/math/numbers.d.ts +58 -0
- package/dist/runtime/math/numbers.js +115 -0
- package/dist/runtime/props.d.ts +61 -0
- package/dist/runtime/props.js +113 -0
- package/dist/runtime/scope/element.d.ts +86 -0
- package/dist/runtime/scope/element.js +226 -0
- package/dist/runtime/scope/table.d.ts +55 -0
- package/dist/runtime/scope/table.js +174 -0
- package/dist/runtime/syntax/braces.d.ts +2 -0
- package/dist/runtime/syntax/braces.js +35 -0
- package/dist/runtime/syntax/classes.d.ts +22 -0
- package/dist/runtime/syntax/classes.js +119 -0
- package/dist/runtime/syntax/display.d.ts +25 -0
- package/dist/runtime/syntax/display.js +344 -0
- package/dist/runtime/syntax/expand-groups.d.ts +12 -0
- package/dist/runtime/syntax/expand-groups.js +31 -0
- package/dist/runtime/syntax/ir.d.ts +76 -0
- package/dist/runtime/syntax/ir.js +11 -0
- package/dist/runtime/syntax/parse.d.ts +2 -0
- package/dist/runtime/syntax/parse.js +407 -0
- package/dist/runtime/syntax/script-block.d.ts +43 -0
- package/dist/runtime/syntax/script-block.js +190 -0
- package/dist/runtime/testing.d.ts +11 -0
- package/dist/runtime/testing.js +1 -0
- package/dist/select/examples/basic.html +9 -9
- package/dist/select/examples/basic.html.js +5 -0
- package/dist/select/examples/category.html +10 -10
- package/dist/select/examples/category.html.js +5 -0
- package/dist/select/examples/country.html +10 -10
- package/dist/select/examples/country.html.js +5 -0
- package/dist/select/examples/language.html.js +5 -0
- package/dist/select/examples/multiple.html.js +5 -0
- package/dist/select/examples/profile.html +10 -10
- package/dist/select/examples/profile.html.js +5 -0
- package/dist/select/examples/theme.html.js +5 -0
- package/dist/select/examples/with-overlapping-label.html +8 -8
- package/dist/select/examples/with-overlapping-label.html.js +5 -0
- package/dist/select/select.events.d.ts +2 -3
- package/dist/select/select.machine.d.ts +2 -3
- package/dist/select/select.machine.js +1 -1
- package/dist/select/select.presentation.d.ts +16 -20
- package/dist/select/select.presentation.js +6 -6
- package/dist/select/select.shared.d.ts +1 -2
- package/dist/select/select.state.d.ts +1 -2
- package/dist/select/select.state.js +1 -1
- package/dist/select/select.transitions.d.ts +2 -3
- package/dist/shared/keyboard.d.ts +1 -2
- package/dist/signature-pad/examples/basic.html +3 -3
- package/dist/signature-pad/examples/basic.html.js +5 -0
- package/dist/signature-pad/examples/contract.html +7 -7
- package/dist/signature-pad/examples/contract.html.js +5 -0
- package/dist/signature-pad/examples/receipt.html +8 -8
- package/dist/signature-pad/examples/receipt.html.js +5 -0
- package/dist/signature-pad/examples/with-preview.html +6 -6
- package/dist/signature-pad/examples/with-preview.html.js +5 -0
- package/dist/signature-pad/signature-pad.events.d.ts +2 -3
- package/dist/signature-pad/signature-pad.machine.d.ts +4 -4
- package/dist/signature-pad/signature-pad.machine.js +2 -2
- package/dist/signature-pad/signature-pad.presentation.d.ts +10 -11
- package/dist/signature-pad/signature-pad.presentation.js +2 -2
- package/dist/signature-pad/signature-pad.state.d.ts +1 -2
- package/dist/signature-pad/signature-pad.state.js +1 -1
- package/dist/signature-pad/signature-pad.transitions.d.ts +3 -4
- package/dist/slider/examples/basic.html +1 -1
- package/dist/slider/examples/basic.html.js +5 -0
- package/dist/slider/examples/equalizer.html +13 -13
- package/dist/slider/examples/equalizer.html.js +5 -0
- package/dist/slider/examples/fractional.html.js +5 -0
- package/dist/slider/examples/marks.html +2 -2
- package/dist/slider/examples/marks.html.js +5 -0
- package/dist/slider/examples/range.html +1 -1
- package/dist/slider/examples/range.html.js +5 -0
- package/dist/slider/examples/stepped.html.js +5 -0
- package/dist/slider/examples/ticks.html +2 -2
- package/dist/slider/examples/ticks.html.js +5 -0
- package/dist/slider/examples/vertical.html.js +5 -0
- package/dist/slider/slider.events.d.ts +2 -3
- package/dist/slider/slider.machine.d.ts +3 -3
- package/dist/slider/slider.machine.js +2 -2
- package/dist/slider/slider.presentation.d.ts +7 -8
- package/dist/slider/slider.presentation.js +2 -2
- package/dist/slider/slider.state.d.ts +1 -2
- package/dist/slider/slider.state.js +1 -1
- package/dist/slider/slider.transitions.d.ts +3 -4
- package/dist/slider/slider.transitions.js +1 -1
- package/dist/solid/solid.d.ts +2 -3
- package/dist/spin-element.d.ts +1 -2
- package/dist/spin-element.js +1 -1
- package/dist/splitter/examples/basic.html +2 -2
- package/dist/splitter/examples/basic.html.js +5 -0
- package/dist/splitter/examples/nested.html +4 -4
- package/dist/splitter/examples/nested.html.js +5 -0
- package/dist/splitter/examples/threepanels.html +2 -2
- package/dist/splitter/examples/threepanels.html.js +5 -0
- package/dist/splitter/examples/vertical.html +2 -2
- package/dist/splitter/examples/vertical.html.js +5 -0
- package/dist/splitter/splitter.events.d.ts +2 -3
- package/dist/splitter/splitter.machine.d.ts +2 -3
- package/dist/splitter/splitter.machine.js +1 -1
- package/dist/splitter/splitter.presentation.d.ts +5 -6
- package/dist/splitter/splitter.presentation.js +1 -1
- package/dist/splitter/splitter.state.d.ts +1 -2
- package/dist/splitter/splitter.state.js +1 -1
- package/dist/splitter/splitter.transitions.d.ts +2 -3
- package/dist/steps/examples/basic.html +5 -5
- package/dist/steps/examples/basic.html.js +5 -0
- package/dist/steps/examples/checkmarks.html +4 -4
- package/dist/steps/examples/checkmarks.html.js +5 -0
- package/dist/steps/examples/content.html +5 -5
- package/dist/steps/examples/content.html.js +5 -0
- package/dist/steps/examples/descriptions.html +2 -2
- package/dist/steps/examples/descriptions.html.js +5 -0
- package/dist/steps/examples/icons.html +2 -2
- package/dist/steps/examples/icons.html.js +5 -0
- package/dist/steps/examples/lines.html +2 -2
- package/dist/steps/examples/lines.html.js +5 -0
- package/dist/steps/examples/navigation.html +4 -4
- package/dist/steps/examples/navigation.html.js +5 -0
- package/dist/steps/examples/onboarding.html +4 -4
- package/dist/steps/examples/onboarding.html.js +5 -0
- package/dist/steps/examples/progress.html +3 -3
- package/dist/steps/examples/progress.html.js +5 -0
- package/dist/steps/examples/segmented.html +6 -6
- package/dist/steps/examples/segmented.html.js +5 -0
- package/dist/steps/examples/vertical.html +5 -5
- package/dist/steps/examples/vertical.html.js +5 -0
- package/dist/steps/examples/verticallabels.html +2 -2
- package/dist/steps/examples/verticallabels.html.js +5 -0
- package/dist/steps/examples/verticalnavigation.html +2 -2
- package/dist/steps/examples/verticalnavigation.html.js +5 -0
- package/dist/steps/steps.events.d.ts +2 -3
- package/dist/steps/steps.machine.d.ts +3 -3
- package/dist/steps/steps.machine.js +1 -1
- package/dist/steps/steps.presentation.d.ts +4 -5
- package/dist/steps/steps.presentation.js +1 -1
- package/dist/steps/steps.state.d.ts +1 -2
- package/dist/steps/steps.state.js +1 -1
- package/dist/steps/steps.transitions.d.ts +3 -4
- package/dist/tabs/examples/basic.html +2 -2
- package/dist/tabs/examples/basic.html.js +5 -0
- package/dist/tabs/examples/dashboard.html +42 -42
- package/dist/tabs/examples/dashboard.html.js +5 -0
- package/dist/tabs/examples/ghost.html +2 -2
- package/dist/tabs/examples/ghost.html.js +5 -0
- package/dist/tabs/examples/icon-above.html +6 -6
- package/dist/tabs/examples/icon-above.html.js +5 -0
- package/dist/tabs/examples/icon-only.html +3 -3
- package/dist/tabs/examples/icon-only.html.js +5 -0
- package/dist/tabs/examples/outline-with-icons.html +6 -6
- package/dist/tabs/examples/outline-with-icons.html.js +5 -0
- package/dist/tabs/examples/outline.html +3 -3
- package/dist/tabs/examples/outline.html.js +5 -0
- package/dist/tabs/examples/pills.html +2 -2
- package/dist/tabs/examples/pills.html.js +5 -0
- package/dist/tabs/examples/project.html +33 -33
- package/dist/tabs/examples/project.html.js +5 -0
- package/dist/tabs/examples/settings.html +35 -35
- package/dist/tabs/examples/settings.html.js +5 -0
- package/dist/tabs/examples/stack-with-icons.html +7 -7
- package/dist/tabs/examples/stack-with-icons.html.js +5 -0
- package/dist/tabs/examples/stack.html +3 -3
- package/dist/tabs/examples/stack.html.js +5 -0
- package/dist/tabs/examples/underline.html +3 -3
- package/dist/tabs/examples/underline.html.js +5 -0
- package/dist/tabs/examples/vertical-ghost.html +3 -3
- package/dist/tabs/examples/vertical-ghost.html.js +5 -0
- package/dist/tabs/examples/vertical-icons.html +5 -5
- package/dist/tabs/examples/vertical-icons.html.js +5 -0
- package/dist/tabs/examples/vertical-underline.html +4 -4
- package/dist/tabs/examples/vertical-underline.html.js +5 -0
- package/dist/tabs/examples/vertical-with-icons.html +6 -6
- package/dist/tabs/examples/vertical-with-icons.html.js +5 -0
- package/dist/tabs/examples/vertical.html +2 -2
- package/dist/tabs/examples/vertical.html.js +5 -0
- package/dist/tabs/examples/with-badges.html +3 -3
- package/dist/tabs/examples/with-badges.html.js +5 -0
- package/dist/tabs/examples/with-icons.html +4 -4
- package/dist/tabs/examples/with-icons.html.js +5 -0
- package/dist/tabs/tabs.events.d.ts +2 -3
- package/dist/tabs/tabs.machine.d.ts +3 -3
- package/dist/tabs/tabs.machine.js +1 -1
- package/dist/tabs/tabs.presentation.d.ts +6 -7
- package/dist/tabs/tabs.presentation.js +1 -1
- package/dist/tabs/tabs.state.d.ts +1 -2
- package/dist/tabs/tabs.state.js +1 -1
- package/dist/tabs/tabs.transitions.d.ts +3 -4
- package/dist/tags-input/examples/basic.html +9 -9
- package/dist/tags-input/examples/basic.html.js +5 -0
- package/dist/tags-input/examples/with-combobox.html +14 -14
- package/dist/tags-input/examples/with-combobox.html.js +5 -0
- package/dist/tags-input/tags.events.d.ts +2 -3
- package/dist/tags-input/tags.machine.d.ts +6 -4
- package/dist/tags-input/tags.machine.js +2 -2
- package/dist/tags-input/tags.presentation.d.ts +6 -7
- package/dist/tags-input/tags.presentation.js +1 -1
- package/dist/tags-input/tags.state.d.ts +1 -2
- package/dist/tags-input/tags.state.js +2 -2
- package/dist/tags-input/tags.transitions.d.ts +2 -3
- package/dist/theme-picker/examples/basic.html +6 -6
- package/dist/theme-picker/examples/basic.html.js +5 -0
- package/dist/theme-picker/examples/cards.html +4 -4
- package/dist/theme-picker/examples/cards.html.js +5 -0
- package/dist/theme-picker/examples/compact.html +3 -3
- package/dist/theme-picker/examples/compact.html.js +5 -0
- package/dist/theme-picker/examples/swatches.html +2 -2
- package/dist/theme-picker/examples/swatches.html.js +5 -0
- package/dist/theme-picker/theme-picker.events.d.ts +2 -3
- package/dist/theme-picker/theme-picker.machine.d.ts +3 -3
- package/dist/theme-picker/theme-picker.machine.js +1 -1
- package/dist/theme-picker/theme-picker.presentation.d.ts +9 -10
- package/dist/theme-picker/theme-picker.presentation.js +2 -2
- package/dist/theme-picker/theme-picker.state.d.ts +1 -2
- package/dist/theme-picker/theme-picker.transitions.d.ts +3 -4
- package/dist/timer/examples/basic.html +1 -1
- package/dist/timer/examples/basic.html.js +5 -0
- package/dist/timer/examples/card.html +4 -4
- package/dist/timer/examples/card.html.js +5 -0
- package/dist/timer/examples/compact.html +5 -5
- package/dist/timer/examples/compact.html.js +5 -0
- package/dist/timer/examples/countdown.html +3 -3
- package/dist/timer/examples/countdown.html.js +5 -0
- package/dist/timer/examples/labels.html +3 -3
- package/dist/timer/examples/labels.html.js +5 -0
- package/dist/timer/examples/large.html +2 -2
- package/dist/timer/examples/large.html.js +5 -0
- package/dist/timer/examples/minimal.html +1 -1
- package/dist/timer/examples/minimal.html.js +5 -0
- package/dist/timer/examples/pomodoro.html +3 -3
- package/dist/timer/examples/pomodoro.html.js +5 -0
- package/dist/timer/examples/workout.html +4 -4
- package/dist/timer/examples/workout.html.js +5 -0
- package/dist/timer/timer.events.d.ts +2 -3
- package/dist/timer/timer.machine.d.ts +2 -3
- package/dist/timer/timer.machine.js +1 -1
- package/dist/timer/timer.presentation.d.ts +7 -8
- package/dist/timer/timer.presentation.js +1 -1
- package/dist/timer/timer.state.d.ts +1 -2
- package/dist/timer/timer.state.js +1 -1
- package/dist/timer/timer.transitions.d.ts +2 -3
- package/dist/toast/examples/action.html +3 -3
- package/dist/toast/examples/action.html.js +5 -0
- package/dist/toast/examples/basic.html +3 -3
- package/dist/toast/examples/basic.html.js +5 -0
- package/dist/toast/examples/bottomcenter.html +3 -3
- package/dist/toast/examples/bottomcenter.html.js +5 -0
- package/dist/toast/examples/bottomleft.html +3 -3
- package/dist/toast/examples/bottomleft.html.js +5 -0
- package/dist/toast/examples/bottomright.html +3 -3
- package/dist/toast/examples/bottomright.html.js +5 -0
- package/dist/toast/examples/duration.html +3 -3
- package/dist/toast/examples/duration.html.js +5 -0
- package/dist/toast/examples/promise.html +6 -6
- package/dist/toast/examples/promise.html.js +5 -0
- package/dist/toast/examples/topcenter.html +3 -3
- package/dist/toast/examples/topcenter.html.js +5 -0
- package/dist/toast/examples/topleft.html +3 -3
- package/dist/toast/examples/topleft.html.js +5 -0
- package/dist/toast/examples/topright.html +3 -3
- package/dist/toast/examples/topright.html.js +5 -0
- package/dist/toast/examples/types.html +3 -3
- package/dist/toast/examples/types.html.js +5 -0
- package/dist/toast/examples/updatable.html.js +5 -0
- package/dist/toast/toast.events.d.ts +2 -3
- package/dist/toast/toast.machine.d.ts +4 -4
- package/dist/toast/toast.machine.js +1 -1
- package/dist/toast/toast.presentation.d.ts +5 -6
- package/dist/toast/toast.presentation.js +1 -1
- package/dist/toast/toast.state.d.ts +1 -2
- package/dist/toast/toast.state.js +3 -3
- package/dist/toast/toast.transitions.d.ts +3 -4
- package/dist/toc/examples/basic.html +31 -0
- package/dist/toc/examples/basic.html.js +5 -0
- package/dist/toc/toc.events.d.ts +19 -0
- package/dist/toc/toc.events.js +1 -0
- package/dist/toc/toc.machine.d.ts +5 -0
- package/dist/toc/toc.machine.js +59 -0
- package/dist/toc/toc.presentation.d.ts +127 -0
- package/dist/toc/toc.presentation.js +117 -0
- package/dist/toc/toc.state.d.ts +41 -0
- package/dist/toc/toc.state.js +64 -0
- package/dist/toc/toc.transitions.d.ts +8 -0
- package/dist/toc/toc.transitions.js +27 -0
- package/dist/toggle-group/examples/basic.html +2 -2
- package/dist/toggle-group/examples/basic.html.js +5 -0
- package/dist/toggle-group/examples/ghost.html +1 -1
- package/dist/toggle-group/examples/ghost.html.js +5 -0
- package/dist/toggle-group/examples/icons.html +3 -3
- package/dist/toggle-group/examples/icons.html.js +5 -0
- package/dist/toggle-group/examples/multiple.html.js +5 -0
- package/dist/toggle-group/examples/outline.html +2 -2
- package/dist/toggle-group/examples/outline.html.js +5 -0
- package/dist/toggle-group/examples/toolbar.html +3 -3
- package/dist/toggle-group/examples/toolbar.html.js +5 -0
- package/dist/toggle-group/toggle-group.events.d.ts +2 -3
- package/dist/toggle-group/toggle-group.machine.d.ts +3 -3
- package/dist/toggle-group/toggle-group.machine.js +1 -1
- package/dist/toggle-group/toggle-group.presentation.d.ts +6 -7
- package/dist/toggle-group/toggle-group.presentation.js +2 -2
- package/dist/toggle-group/toggle-group.state.d.ts +1 -2
- package/dist/toggle-group/toggle-group.state.js +1 -1
- package/dist/toggle-group/toggle-group.transitions.d.ts +3 -4
- package/dist/tooltip/examples/basic.html.js +5 -0
- package/dist/tooltip/examples/metrics.html +9 -9
- package/dist/tooltip/examples/metrics.html.js +5 -0
- package/dist/tooltip/examples/positioning.html +4 -4
- package/dist/tooltip/examples/positioning.html.js +5 -0
- package/dist/tooltip/examples/status.html +10 -10
- package/dist/tooltip/examples/status.html.js +5 -0
- package/dist/tooltip/examples/video.html +6 -6
- package/dist/tooltip/examples/video.html.js +5 -0
- package/dist/tooltip/examples/with-arrow.html +1 -1
- package/dist/tooltip/examples/with-arrow.html.js +5 -0
- package/dist/tooltip/tooltip.controller-def.d.ts +3 -5
- package/dist/tooltip/tooltip.controller-def.js +1 -1
- package/dist/tour/examples/basic.html +5 -5
- package/dist/tour/examples/basic.html.js +5 -0
- package/dist/tour/tour.events.d.ts +2 -3
- package/dist/tour/tour.machine.d.ts +7 -3
- package/dist/tour/tour.machine.js +1 -1
- package/dist/tour/tour.presentation.d.ts +6 -7
- package/dist/tour/tour.presentation.js +1 -1
- package/dist/tour/tour.state.d.ts +1 -2
- package/dist/tour/tour.state.js +1 -1
- package/dist/tour/tour.transitions.d.ts +3 -4
- package/dist/tree-view/examples/basic.html +10 -10
- package/dist/tree-view/examples/basic.html.js +5 -0
- package/dist/tree-view/examples/loading.html +11 -11
- package/dist/tree-view/examples/loading.html.js +5 -0
- package/dist/tree-view/tree-view.events.d.ts +2 -3
- package/dist/tree-view/tree-view.machine.d.ts +2 -3
- package/dist/tree-view/tree-view.machine.js +1 -1
- package/dist/tree-view/tree-view.presentation.d.ts +9 -10
- package/dist/tree-view/tree-view.presentation.js +2 -2
- package/dist/tree-view/tree-view.state.d.ts +1 -2
- package/dist/tree-view/tree-view.state.js +1 -1
- package/dist/tree-view/tree-view.transitions.d.ts +3 -4
- package/package.json +43 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isInteractive as isInteractive$1, isPressed } from "./toggle-group.state.js";
|
|
2
1
|
import { toggleGroup as toggleGroup$1 } from "./toggle-group.machine.js";
|
|
3
|
-
import {
|
|
2
|
+
import { isInteractive as isInteractive$1, isPressed } from "./toggle-group.state.js";
|
|
3
|
+
import { ariaPressed, defineComponent, focuser, isComposing, optionRow } from "@spinjs/components/runtime";
|
|
4
4
|
// src/toggle-group/toggle-group.presentation.ts
|
|
5
5
|
/** The view reflex: a roving move hands DOM focus to the focused item. */
|
|
6
6
|
const focusItem = (scopeId, value) => {
|
|
@@ -41,5 +41,4 @@ export interface ToggleGroupArgs {
|
|
|
41
41
|
export declare const parseValues: (raw: unknown) => string[] | null;
|
|
42
42
|
export declare function initial(args: ToggleGroupArgs, authored: (name: string) => boolean): ToggleGroupContext;
|
|
43
43
|
export declare function isInteractive(ctx: ToggleGroupContext): boolean;
|
|
44
|
-
export declare function isPressed(ctx: ToggleGroupContext, value: string): boolean;
|
|
45
|
-
//# sourceMappingURL=toggle-group.state.d.ts.map
|
|
44
|
+
export declare function isPressed(ctx: ToggleGroupContext, value: string): boolean;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ToggleGroupContext } from "./toggle-group.state.js";
|
|
2
1
|
import { ToggleGroupEvents } from "./toggle-group.events.js";
|
|
3
|
-
import {
|
|
2
|
+
import { ToggleGroupContext } from "./toggle-group.state.js";
|
|
3
|
+
import { AssignFor } from "@spinjs/components/fsm";
|
|
4
4
|
type ToggleGroupAssign<K extends keyof ToggleGroupEvents = keyof ToggleGroupEvents> = AssignFor<ToggleGroupContext, ToggleGroupEvents, K>;
|
|
5
5
|
export declare const clearClickFocus: () => Partial<ToggleGroupContext>;
|
|
6
6
|
export declare const setTabbingBackward: () => Partial<ToggleGroupContext>;
|
|
7
7
|
export declare const setFocusedId: ToggleGroupAssign<"TOGGLE.FOCUS">;
|
|
8
8
|
export declare const setValue: ToggleGroupAssign<"VALUE.SET">;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=toggle-group.transitions.d.ts.map
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tooltip/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { tooltip } from \"../tooltip.controller-def.ts\";\n\nconst ctl = tooltip();\n<\/script>\n\n<button {...ctl.getTriggerProps()}\n class=\"secondary s-sm\">Hover me</button>\n\n<tooltip {...ctl.getContentProps()}\n class=\"fixed m-0 max-w-[16rem]\">\n A plain hint on a short clock.\n</tooltip>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -6,25 +6,25 @@ const ctl = tooltip();
|
|
|
6
6
|
|
|
7
7
|
<button {...ctl.getTriggerProps()}
|
|
8
8
|
class="secondary s-sm inline-flex items-center gap-2">
|
|
9
|
-
<span class="i-lucide-bar-chart-3
|
|
9
|
+
<span class="i-lucide-bar-chart-3 type-code" aria-hidden="true"></span>
|
|
10
10
|
Analytics
|
|
11
11
|
</button>
|
|
12
12
|
|
|
13
13
|
<tooltip {...ctl.getContentProps()}
|
|
14
14
|
class="fixed m-0 max-w-[16rem]">
|
|
15
|
-
<div class="
|
|
16
|
-
<div class="
|
|
15
|
+
<div class="flex flex-col gap-1">
|
|
16
|
+
<div class="type-caption-emphasized text-muted">Today</div>
|
|
17
17
|
<div class="flex items-center justify-between gap-4">
|
|
18
|
-
<span class="
|
|
19
|
-
<span class="
|
|
18
|
+
<span class="type-caption">Sales</span>
|
|
19
|
+
<span class="type-caption-emphasized">$2.8k</span>
|
|
20
20
|
</div>
|
|
21
21
|
<div class="flex items-center justify-between gap-4">
|
|
22
|
-
<span class="
|
|
23
|
-
<span class="
|
|
22
|
+
<span class="type-caption">Revenue</span>
|
|
23
|
+
<span class="type-caption-emphasized">$4.3k</span>
|
|
24
24
|
</div>
|
|
25
25
|
<div class="flex items-center justify-between gap-4">
|
|
26
|
-
<span class="
|
|
27
|
-
<span class="
|
|
26
|
+
<span class="type-caption">Costs</span>
|
|
27
|
+
<span class="type-caption-emphasized">$1.6k</span>
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
</tooltip>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tooltip/examples/metrics.html
|
|
2
|
+
var metrics_default = "<script lang=\"ts\">\nimport { tooltip } from \"../tooltip.controller-def.ts\";\n\nconst ctl = tooltip();\n<\/script>\n\n<button {...ctl.getTriggerProps()}\n class=\"secondary s-sm inline-flex items-center gap-2\">\n <span class=\"i-lucide-bar-chart-3 type-code\" aria-hidden=\"true\"></span>\n Analytics\n</button>\n\n<tooltip {...ctl.getContentProps()}\n class=\"fixed m-0 max-w-[16rem]\">\n <div class=\"flex flex-col gap-1\">\n <div class=\"type-caption-emphasized text-muted\">Today</div>\n <div class=\"flex items-center justify-between gap-4\">\n <span class=\"type-caption\">Sales</span>\n <span class=\"type-caption-emphasized\">$2.8k</span>\n </div>\n <div class=\"flex items-center justify-between gap-4\">\n <span class=\"type-caption\">Revenue</span>\n <span class=\"type-caption-emphasized\">$4.3k</span>\n </div>\n <div class=\"flex items-center justify-between gap-4\">\n <span class=\"type-caption\">Costs</span>\n <span class=\"type-caption-emphasized\">$1.6k</span>\n </div>\n </div>\n</tooltip>\n";
|
|
3
|
+
export { metrics_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=metrics.html.js.map
|
|
@@ -4,9 +4,9 @@ import { tooltip } from "../tooltip.controller-def.js";
|
|
|
4
4
|
const ctl = tooltip();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<div class="w-full
|
|
8
|
-
<div class="
|
|
9
|
-
<strong
|
|
7
|
+
<div class="w-full flex flex-col gap-8 p-6">
|
|
8
|
+
<div class="flex flex-col gap-2">
|
|
9
|
+
<strong>Select Position</strong>
|
|
10
10
|
<div class="flex flex-wrap gap-2" data-positions>
|
|
11
11
|
<button class="secondary s-sm" data-placement-choice="top">Top</button>
|
|
12
12
|
<button class="secondary s-sm" data-placement-choice="bottom">Bottom</button>
|
|
@@ -16,7 +16,7 @@ const ctl = tooltip();
|
|
|
16
16
|
</div>
|
|
17
17
|
<div class="flex items-center justify-center py-12">
|
|
18
18
|
<span {...ctl.getTriggerProps()}
|
|
19
|
-
class="bare cursor-pointer rounded-md border
|
|
19
|
+
class="bare cursor-pointer rounded-md border bg-surface-raised px-3 py-1 type-body transition-colors hover:bg-surface">Hover for bottom placement</span>
|
|
20
20
|
|
|
21
21
|
<tooltip {...ctl.getContentProps()}
|
|
22
22
|
class="fixed m-0 max-w-[16rem]">
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tooltip/examples/positioning.html
|
|
2
|
+
var positioning_default = "<script lang=\"ts\">\nimport { tooltip } from \"../tooltip.controller-def.ts\";\n\nconst ctl = tooltip();\n<\/script>\n\n<div class=\"w-full flex flex-col gap-8 p-6\">\n <div class=\"flex flex-col gap-2\">\n <strong>Select Position</strong>\n <div class=\"flex flex-wrap gap-2\" data-positions>\n <button class=\"secondary s-sm\" data-placement-choice=\"top\">Top</button>\n <button class=\"secondary s-sm\" data-placement-choice=\"bottom\">Bottom</button>\n <button class=\"secondary s-sm\" data-placement-choice=\"left\">Left</button>\n <button class=\"secondary s-sm\" data-placement-choice=\"right\">Right</button>\n </div>\n </div>\n <div class=\"flex items-center justify-center py-12\">\n <span {...ctl.getTriggerProps()}\n class=\"bare cursor-pointer rounded-md border bg-surface-raised px-3 py-1 type-body transition-colors hover:bg-surface\">Hover for bottom placement</span>\n\n <tooltip {...ctl.getContentProps()}\n class=\"fixed m-0 max-w-[16rem]\">\n bottom\n </tooltip>\n </div>\n</div>\n";
|
|
3
|
+
export { positioning_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=positioning.html.js.map
|
|
@@ -6,28 +6,28 @@ const ctl = tooltip();
|
|
|
6
6
|
|
|
7
7
|
<button {...ctl.getTriggerProps()}
|
|
8
8
|
class="secondary s-sm inline-flex items-center gap-2">
|
|
9
|
-
<span class="i-lucide-activity
|
|
9
|
+
<span class="i-lucide-activity type-code" aria-hidden="true"></span>
|
|
10
10
|
System Status
|
|
11
11
|
</button>
|
|
12
12
|
|
|
13
13
|
<tooltip {...ctl.getContentProps()}
|
|
14
14
|
class="fixed m-0 max-w-[16rem]">
|
|
15
|
-
<div class="
|
|
15
|
+
<div class="flex flex-col gap-1">
|
|
16
16
|
<div>
|
|
17
|
-
<div class="
|
|
18
|
-
<div class="
|
|
17
|
+
<div class="type-caption text-muted">Status</div>
|
|
18
|
+
<div class="type-caption-emphasized">Operational</div>
|
|
19
19
|
</div>
|
|
20
20
|
<div>
|
|
21
|
-
<div class="
|
|
22
|
-
<div class="
|
|
21
|
+
<div class="type-caption text-muted">Uptime</div>
|
|
22
|
+
<div class="type-caption-emphasized">99.9%</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div>
|
|
25
|
-
<div class="
|
|
26
|
-
<div class="
|
|
25
|
+
<div class="type-caption text-muted">Deploy</div>
|
|
26
|
+
<div class="type-caption-emphasized">2h ago</div>
|
|
27
27
|
</div>
|
|
28
28
|
<div>
|
|
29
|
-
<div class="
|
|
30
|
-
<div class="
|
|
29
|
+
<div class="type-caption text-muted">Response</div>
|
|
30
|
+
<div class="type-caption-emphasized">145ms</div>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</tooltip>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tooltip/examples/status.html
|
|
2
|
+
var status_default = "<script lang=\"ts\">\nimport { tooltip } from \"../tooltip.controller-def.ts\";\n\nconst ctl = tooltip();\n<\/script>\n\n<button {...ctl.getTriggerProps()}\n class=\"secondary s-sm inline-flex items-center gap-2\">\n <span class=\"i-lucide-activity type-code\" aria-hidden=\"true\"></span>\n System Status\n</button>\n\n<tooltip {...ctl.getContentProps()}\n class=\"fixed m-0 max-w-[16rem]\">\n <div class=\"flex flex-col gap-1\">\n <div>\n <div class=\"type-caption text-muted\">Status</div>\n <div class=\"type-caption-emphasized\">Operational</div>\n </div>\n <div>\n <div class=\"type-caption text-muted\">Uptime</div>\n <div class=\"type-caption-emphasized\">99.9%</div>\n </div>\n <div>\n <div class=\"type-caption text-muted\">Deploy</div>\n <div class=\"type-caption-emphasized\">2h ago</div>\n </div>\n <div>\n <div class=\"type-caption text-muted\">Response</div>\n <div class=\"type-caption-emphasized\">145ms</div>\n </div>\n </div>\n</tooltip>\n";
|
|
3
|
+
export { status_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=status.html.js.map
|
|
@@ -5,17 +5,17 @@ const ctl = tooltip();
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<button {...ctl.getTriggerProps()}
|
|
8
|
-
class="bare relative grid h-36 w-64 place-items-center overflow-hidden rounded-lg border
|
|
9
|
-
<span class="i-lucide-play icon-lg
|
|
8
|
+
class="bare relative grid h-36 w-64 place-items-center overflow-hidden rounded-lg border bg-surface-sunken">
|
|
9
|
+
<span class="i-lucide-play icon-lg" aria-hidden="true"></span>
|
|
10
10
|
</button>
|
|
11
11
|
|
|
12
12
|
<tooltip {...ctl.getContentProps()}
|
|
13
13
|
class="fixed m-0 max-w-[16rem]">
|
|
14
|
-
<div class="
|
|
15
|
-
<p
|
|
14
|
+
<div class="flex flex-col gap-1">
|
|
15
|
+
<p>Product Demo</p>
|
|
16
16
|
<p
|
|
17
|
-
class="text-
|
|
18
|
-
<div class="flex items-center gap-2
|
|
17
|
+
class="text-muted">Learn platform features in this walkthrough.</p>
|
|
18
|
+
<div class="flex items-center gap-2 type-caption text-muted">
|
|
19
19
|
<span>4:32</span><span>•</span><span>720p</span><span>•</span><span>2.1M</span>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tooltip/examples/video.html
|
|
2
|
+
var video_default = "<script lang=\"ts\">\nimport { tooltip } from \"../tooltip.controller-def.ts\";\n\nconst ctl = tooltip();\n<\/script>\n\n<button {...ctl.getTriggerProps()}\n class=\"bare relative grid h-36 w-64 place-items-center overflow-hidden rounded-lg border bg-surface-sunken\">\n <span class=\"i-lucide-play icon-lg\" aria-hidden=\"true\"></span>\n</button>\n\n<tooltip {...ctl.getContentProps()}\n class=\"fixed m-0 max-w-[16rem]\">\n <div class=\"flex flex-col gap-1\">\n <p>Product Demo</p>\n <p\n class=\"text-muted\">Learn platform features in this walkthrough.</p>\n <div class=\"flex items-center gap-2 type-caption text-muted\">\n <span>4:32</span><span>•</span><span>720p</span><span>•</span><span>2.1M</span>\n </div>\n </div>\n</tooltip>\n";
|
|
3
|
+
export { video_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=video.html.js.map
|
|
@@ -9,6 +9,6 @@ const ctl = tooltip();
|
|
|
9
9
|
|
|
10
10
|
<tooltip {...ctl.getContentProps()}
|
|
11
11
|
class="fixed m-0 max-w-[16rem]">
|
|
12
|
-
<span aria-hidden="true" class="absolute -top-1 left-1/2 h-2 w-2 rotate-45 border-b-0 border-r-0 border-l border-t
|
|
12
|
+
<span aria-hidden="true" class="absolute -top-1 left-1/2 h-2 w-2 rotate-45 border-b-0 border-r-0 border-l border-t bg-surface-raised"></span>
|
|
13
13
|
A hint with a pointing arrow.
|
|
14
14
|
</tooltip>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tooltip/examples/with-arrow.html
|
|
2
|
+
var with_arrow_default = "<script lang=\"ts\">\nimport { tooltip } from \"../tooltip.controller-def.ts\";\n\nconst ctl = tooltip();\n<\/script>\n\n<button {...ctl.getTriggerProps()}\n class=\"secondary s-sm\">Hover me</button>\n\n<tooltip {...ctl.getContentProps()}\n class=\"fixed m-0 max-w-[16rem]\">\n <span aria-hidden=\"true\" class=\"absolute -top-1 left-1/2 h-2 w-2 rotate-45 border-b-0 border-r-0 border-l border-t bg-surface-raised\"></span>\n A hint with a pointing arrow.\n</tooltip>\n";
|
|
3
|
+
export { with_arrow_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=with-arrow.html.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AnchorPlacement } from "@spinjs/runtime/actions";
|
|
1
|
+
import { AnchorPlacement } from "@spinjs/components/actions";
|
|
3
2
|
/**
|
|
4
3
|
* Tooltip on the platform: the browser owns open/closed, the top layer,
|
|
5
4
|
* light-dismiss, and Escape. There is no machine here — `attach` wires the
|
|
@@ -36,7 +35,6 @@ export interface TooltipApi {
|
|
|
36
35
|
setPlacement(next: AnchorPlacement): void;
|
|
37
36
|
}
|
|
38
37
|
export declare function attachTooltip(el: Element): TooltipApi;
|
|
39
|
-
export declare const tooltip: ControllerDef & {
|
|
38
|
+
export declare const tooltip: import("@spinjs/components/runtime").ControllerDef & {
|
|
40
39
|
attach(el: Element): TooltipApi;
|
|
41
|
-
} & (() => TooltipApi);
|
|
42
|
-
//# sourceMappingURL=tooltip.controller-def.d.ts.map
|
|
40
|
+
} & (() => TooltipApi);
|
|
@@ -29,17 +29,17 @@ const machine = tour({
|
|
|
29
29
|
{...machine.getSpotlightProps()}></div>
|
|
30
30
|
|
|
31
31
|
<div
|
|
32
|
-
class={["fixed z-modal w-[min(20rem,90vw)] rounded-lg border
|
|
32
|
+
class={["fixed z-modal w-[min(20rem,90vw)] rounded-lg border bg-surface-raised p-3 shadow-lg transition-opacity duration-fast ease-decelerate", { "pointer-events-none invisible opacity-0": !machine.active }]}
|
|
33
33
|
{...machine.getPositionerProps()}>
|
|
34
34
|
<div class="flex flex-col gap-2" {...machine.getContentProps()}>
|
|
35
35
|
<template for={machine.getTextRows()} as={row} key={row.key}>
|
|
36
36
|
<div class="flex items-center justify-between gap-2">
|
|
37
|
-
<span class="
|
|
37
|
+
<span class="type-label"
|
|
38
38
|
{...machine.getTitleProps()}>{row.title}</span>
|
|
39
|
-
<span class="
|
|
39
|
+
<span class="type-caption text-muted tabular-nums"
|
|
40
40
|
{...machine.getProgressTextProps()}>{row.progress}</span>
|
|
41
41
|
</div>
|
|
42
|
-
<p class="text-
|
|
42
|
+
<p class="text-muted"
|
|
43
43
|
{...machine.getDescriptionProps()}>{row.description}</p>
|
|
44
44
|
</template>
|
|
45
45
|
<div class="flex items-center justify-between gap-2">
|
|
@@ -58,7 +58,7 @@ const machine = tour({
|
|
|
58
58
|
<button
|
|
59
59
|
class="ghost icon s-sm"
|
|
60
60
|
{...machine.getDismissTriggerProps()}>
|
|
61
|
-
<span class="i-lucide-x
|
|
61
|
+
<span class="i-lucide-x type-caption" aria-hidden="true"></span>
|
|
62
62
|
</button>
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tour/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { tour } from \"../tour.presentation.ts\";\n\nconst machine = tour({\n label: \"Tour\",\n steps:\n '[{\"id\":\"welcome\",\"target\":\"#tour-basic-target\",\"title\":\"Welcome\",\"description\":\"This button starts nothing, but the spotlight finds it.\"},{\"id\":\"confirm\",\"target\":\"#tour-basic-confirm\",\"title\":\"Confirm\",\"description\":\"The spotlight follows to the next target.\"},{\"id\":\"done\",\"title\":\"Done\",\"description\":\"No target — the card stands alone.\"}]',\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-[20rem] flex-col items-center gap-4\">\n <button id=\"tour-basic-target\"\n class=\"secondary s-sm\">Feature button</button>\n <button id=\"tour-basic-confirm\"\n class=\"secondary s-sm\">Confirm button</button>\n <button\n class=\"s-sm\"\n {...machine.getStartTriggerProps()}>Start tour</button>\n</div>\n<div class=\"contents\" {...machine.getRootProps()}>\n <div\n show={machine.active}\n class=\"pointer-events-none fixed inset-0 z-modal bg-surface-sunken opacity-70 transition-opacity duration-fast ease-decelerate\"\n {...machine.getBackdropProps()}></div>\n\n <div\n show={machine.active}\n class=\"pointer-events-none fixed z-modal rounded-lg ring-2 ring-primary transition-all duration-fast ease-decelerate\"\n {...machine.getSpotlightProps()}></div>\n\n <div\n class={[\"fixed z-modal w-[min(20rem,90vw)] rounded-lg border bg-surface-raised p-3 shadow-lg transition-opacity duration-fast ease-decelerate\", { \"pointer-events-none invisible opacity-0\": !machine.active }]}\n {...machine.getPositionerProps()}>\n <div class=\"flex flex-col gap-2\" {...machine.getContentProps()}>\n <template for={machine.getTextRows()} as={row} key={row.key}>\n <div class=\"flex items-center justify-between gap-2\">\n <span class=\"type-label\"\n {...machine.getTitleProps()}>{row.title}</span>\n <span class=\"type-caption text-muted tabular-nums\"\n {...machine.getProgressTextProps()}>{row.progress}</span>\n </div>\n <p class=\"text-muted\"\n {...machine.getDescriptionProps()}>{row.description}</p>\n </template>\n <div class=\"flex items-center justify-between gap-2\">\n <div class=\"flex items-center gap-1\">\n <button\n class=\"ghost s-sm\"\n {...machine.getPrevTriggerProps()}>Back</button>\n <button\n class=\"s-sm\"\n {...machine.getNextTriggerProps()}>Next</button>\n </div>\n <div class=\"flex items-center gap-1\">\n <button\n class=\"ghost s-sm\"\n {...machine.getSkipTriggerProps()}>Skip</button>\n <button\n class=\"ghost icon s-sm\"\n {...machine.getDismissTriggerProps()}>\n <span class=\"i-lucide-x type-caption\" aria-hidden=\"true\"></span>\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventUnion } from "@spinjs/
|
|
1
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
2
2
|
export interface TourEvents {
|
|
3
3
|
"START": {};
|
|
4
4
|
"STEP.SET": {
|
|
@@ -28,5 +28,4 @@ export type TourStepChange = {
|
|
|
28
28
|
export type TourDismissChange = {
|
|
29
29
|
readonly reason: "complete" | "dismiss" | "skip" | "not-found";
|
|
30
30
|
readonly step: number;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=tour.events.d.ts.map
|
|
31
|
+
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tour machine: the inactive and running modes, and the three phases a
|
|
3
|
+
* running step passes through — a step resolves its target, scrolls it
|
|
4
|
+
* into view, then shows its spotlight.
|
|
5
|
+
*/
|
|
1
6
|
import { TourArgs, TourContext, TourState } from "./tour.state.js";
|
|
2
7
|
import { TourEvents } from "./tour.events.js";
|
|
3
|
-
import { Machine } from "@spinjs/
|
|
4
|
-
export declare function tour(args?: TourArgs, authored?: (name: string) => boolean): Machine<TourContext, TourEvents, TourState>;
|
|
5
|
-
//# sourceMappingURL=tour.machine.d.ts.map
|
|
8
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
9
|
+
export declare function tour(args?: TourArgs, authored?: (name: string) => boolean): Machine<TourContext, TourEvents, TourState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initial } from "./tour.state.js";
|
|
2
2
|
import { bail, hasNext, hasPrev, hasSteps, nextStep, prevStep, setSpotlight, setStep, startTour, validStep } from "./tour.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/tour/tour.machine.ts
|
|
5
5
|
/**
|
|
6
6
|
* Tour machine: the inactive and running modes, and the three phases a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TourArgs, TourContext, TourState, TourStepRecord } from "./tour.state.js";
|
|
2
2
|
import { TourDismissChange, TourEvents, TourStepChange } from "./tour.events.js";
|
|
3
|
-
import { ApiOf, ViewFor } from "@spinjs/runtime";
|
|
3
|
+
import { ApiOf, ViewFor } from "@spinjs/components/runtime";
|
|
4
4
|
/**
|
|
5
5
|
* Tour definition: the DOM contract as data. The machine owns the modes
|
|
6
6
|
* (inactive/resolving/scrolling/active) and the step index; this file maps
|
|
@@ -9,10 +9,10 @@ import { ApiOf, ViewFor } from "@spinjs/runtime";
|
|
|
9
9
|
type ScopeLike = ViewFor<TourContext, TourEvents, TourState>;
|
|
10
10
|
export declare const def: {
|
|
11
11
|
name: string;
|
|
12
|
-
machine: (args: TourArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<TourContext, TourEvents, TourState>;
|
|
12
|
+
machine: (args: TourArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<TourContext, TourEvents, TourState>;
|
|
13
13
|
start: "inactive";
|
|
14
14
|
settled: ({ event, after, props, send }: {
|
|
15
|
-
readonly event: import("@spinjs/runtime").AnyEvent;
|
|
15
|
+
readonly event: import("@spinjs/components/runtime").AnyEvent;
|
|
16
16
|
readonly before: {
|
|
17
17
|
readonly context: TourContext;
|
|
18
18
|
readonly state: TourState;
|
|
@@ -26,7 +26,7 @@ export declare const def: {
|
|
|
26
26
|
readonly id: (part: string, slot?: unknown) => string;
|
|
27
27
|
readonly focus: (part: string, slot?: unknown) => void;
|
|
28
28
|
readonly measure: (part: string, slot?: unknown) => DOMRect | null;
|
|
29
|
-
readonly send: (event: import("@spinjs/runtime").AnyEvent) => void;
|
|
29
|
+
readonly send: (event: import("@spinjs/components/runtime").AnyEvent) => void;
|
|
30
30
|
}) => void;
|
|
31
31
|
parts: {
|
|
32
32
|
root: {
|
|
@@ -255,6 +255,5 @@ export declare const def: {
|
|
|
255
255
|
};
|
|
256
256
|
};
|
|
257
257
|
export type TourApi = ApiOf<typeof def>;
|
|
258
|
-
export declare const tour: import("@spinjs/runtime").DefinedComponent<TourApi, TourArgs>;
|
|
259
|
-
export type { TourArgs, TourDismissChange, TourState, TourStepChange, TourStepRecord };
|
|
260
|
-
//# sourceMappingURL=tour.presentation.d.ts.map
|
|
258
|
+
export declare const tour: import("@spinjs/components/runtime").DefinedComponent<TourApi, TourArgs>;
|
|
259
|
+
export type { TourArgs, TourDismissChange, TourState, TourStepChange, TourStepRecord };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tour as tour$1 } from "./tour.machine.js";
|
|
2
|
-
import { ariaHidden, defineComponent } from "@spinjs/runtime";
|
|
2
|
+
import { ariaHidden, defineComponent } from "@spinjs/components/runtime";
|
|
3
3
|
// src/tour/tour.presentation.ts
|
|
4
4
|
const runningState = (state) => state === "resolving" || state === "scrolling" || state === "active";
|
|
5
5
|
/** The lookup's budget: two seconds, then the target counts as missing. */
|
|
@@ -39,5 +39,4 @@ export declare function stepsOf(raw: unknown): TourStepRecord[];
|
|
|
39
39
|
/** The machine's context from its arguments. */
|
|
40
40
|
export declare function initial(args: TourArgs, authored?: (name: string) => boolean): Pick<TourContext, "steps" | "step" | "previousStep" | "spotlight" | "disabled" | "spotlightPadding" | "label">;
|
|
41
41
|
export declare function stepOf(raw: unknown, count: number): number;
|
|
42
|
-
export declare const bailStep: (ctx: TourContext) => Partial<TourContext>;
|
|
43
|
-
//# sourceMappingURL=tour.state.d.ts.map
|
|
42
|
+
export declare const bailStep: (ctx: TourContext) => Partial<TourContext>;
|
package/dist/tour/tour.state.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TourContext } from "./tour.state.js";
|
|
2
1
|
import { TourEvents } from "./tour.events.js";
|
|
3
|
-
import {
|
|
2
|
+
import { TourContext } from "./tour.state.js";
|
|
3
|
+
import { AssignFor, GuardFor } from "@spinjs/components/fsm";
|
|
4
4
|
type TourAssign<K extends keyof TourEvents = keyof TourEvents> = AssignFor<TourContext, TourEvents, K>;
|
|
5
5
|
export declare const setSpotlight: TourAssign<"SPOTLIGHT.SET">;
|
|
6
6
|
export declare const setStep: TourAssign<"STEP.SET">;
|
|
@@ -12,5 +12,4 @@ export declare const hasSteps: GuardFor<TourContext, TourEvents>;
|
|
|
12
12
|
export declare const validStep: GuardFor<TourContext, TourEvents>;
|
|
13
13
|
export declare const hasNext: GuardFor<TourContext, TourEvents>;
|
|
14
14
|
export declare const hasPrev: GuardFor<TourContext, TourEvents>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=tour.transitions.d.ts.map
|
|
15
|
+
export {};
|
|
@@ -3,42 +3,42 @@ import { treeView } from "../tree-view.presentation.js";
|
|
|
3
3
|
|
|
4
4
|
const machine = treeView({
|
|
5
5
|
nodes:
|
|
6
|
-
'[{"value": "packages", "label": "packages", "children": [{"value": "packages/components", "label": "components", "children": [{"value": "packages/combobox", "label": "combobox"}, {"value": "packages/select", "label": "select"}]}, {"value": "packages/
|
|
6
|
+
'[{"value": "packages", "label": "packages", "children": [{"value": "packages/components", "label": "components", "children": [{"value": "packages/combobox", "label": "combobox"}, {"value": "packages/select", "label": "select"}]}, {"value": "packages/theme", "label": "theme"}]}, {"value": "packages/preset", "label": "preset"}, {"value": "readme", "label": "README.md"}]',
|
|
7
7
|
expandedValue: ["packages", "packages/components"],
|
|
8
8
|
});
|
|
9
9
|
</script>
|
|
10
10
|
<div class="mx-auto w-full max-w-sm" {...machine.getRootProps()}>
|
|
11
|
-
<span class="mb-4 block
|
|
11
|
+
<span class="mb-4 block type-caption-emphasized"
|
|
12
12
|
{...machine.getLabelProps()}>Project Files</span>
|
|
13
13
|
<div
|
|
14
|
-
class="
|
|
14
|
+
class="flex flex-col gap-1 rounded-lg border bg-surface-raised p-3"
|
|
15
15
|
{...machine.getTreeProps()}>
|
|
16
16
|
<template for={machine.getVisibleRows()} as={row} key={row.node.value}>
|
|
17
17
|
<div class="relative" {...machine.getItemProps(row)}>
|
|
18
18
|
<span class="pointer-events-none absolute inset-y-0 w-[1px] bg-border"
|
|
19
19
|
aria-hidden="true" {...machine.getRailProps(row)}></span>
|
|
20
20
|
<button
|
|
21
|
-
class={["bare relative flex min-h-0 items-center gap-2 rounded-lg border-0 px-3 py-2 text-left
|
|
21
|
+
class={["bare relative flex min-h-0 items-center gap-2 rounded-lg border-0 px-3 py-2 text-left transition-colors duration-fast ease-standard hover:bg-surface", { "bg-surface-sunken": machine.getItemState(row).selected, "bg-transparent": !machine.getItemState(row).selected }]}
|
|
22
22
|
{...machine.getBranchControlProps(row)}
|
|
23
23
|
>
|
|
24
24
|
<span
|
|
25
|
-
class={["h-4 w-4 shrink-0 items-center justify-center text-
|
|
25
|
+
class={["h-4 w-4 shrink-0 items-center justify-center text-muted transition-transform duration-fast ease-standard", { "inline-flex": machine.isBranch(row), "hidden": !machine.isBranch(row), "rotate-90": machine.getItemState(row).expanded }]}
|
|
26
26
|
{...machine.getBranchIndicatorProps(row)}>
|
|
27
|
-
<span class="i-lucide-chevron-right
|
|
27
|
+
<span class="i-lucide-chevron-right type-caption"
|
|
28
28
|
aria-hidden="true"></span>
|
|
29
29
|
</span>
|
|
30
30
|
<span
|
|
31
31
|
show={machine.isBranch(row) && !machine.getItemState(row).expanded}
|
|
32
|
-
class="i-lucide-folder shrink-0 text-
|
|
32
|
+
class="i-lucide-folder shrink-0 text-primary"
|
|
33
33
|
aria-hidden="true" {...machine.getItemIconProps(row)}></span>
|
|
34
34
|
<span
|
|
35
35
|
show={machine.isBranch(row) && machine.getItemState(row).expanded}
|
|
36
|
-
class="i-lucide-folder-open shrink-0 text-
|
|
36
|
+
class="i-lucide-folder-open shrink-0 text-primary"
|
|
37
37
|
aria-hidden="true" {...machine.getItemIconProps(row)}></span>
|
|
38
38
|
<span show={!machine.isBranch(row)}
|
|
39
|
-
class="i-lucide-file shrink-0 text-
|
|
39
|
+
class="i-lucide-file shrink-0 text-muted" aria-hidden="true"
|
|
40
40
|
{...machine.getItemIconProps(row)}></span>
|
|
41
|
-
<span class="min-w-0 flex-1 truncate"
|
|
41
|
+
<span class="min-w-0 flex-1 truncate type-body"
|
|
42
42
|
{...machine.getBranchTextProps(row)}>{row.node.label}</span>
|
|
43
43
|
</button>
|
|
44
44
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tree-view/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { treeView } from \"../tree-view.presentation.ts\";\n\nconst machine = treeView({\n nodes:\n '[{\"value\": \"packages\", \"label\": \"packages\", \"children\": [{\"value\": \"packages/components\", \"label\": \"components\", \"children\": [{\"value\": \"packages/combobox\", \"label\": \"combobox\"}, {\"value\": \"packages/select\", \"label\": \"select\"}]}, {\"value\": \"packages/theme\", \"label\": \"theme\"}]}, {\"value\": \"packages/preset\", \"label\": \"preset\"}, {\"value\": \"readme\", \"label\": \"README.md\"}]',\n expandedValue: [\"packages\", \"packages/components\"],\n});\n<\/script>\n<div class=\"mx-auto w-full max-w-sm\" {...machine.getRootProps()}>\n <span class=\"mb-4 block type-caption-emphasized\"\n {...machine.getLabelProps()}>Project Files</span>\n <div\n class=\"flex flex-col gap-1 rounded-lg border bg-surface-raised p-3\"\n {...machine.getTreeProps()}>\n <template for={machine.getVisibleRows()} as={row} key={row.node.value}>\n <div class=\"relative\" {...machine.getItemProps(row)}>\n <span class=\"pointer-events-none absolute inset-y-0 w-[1px] bg-border\"\n aria-hidden=\"true\" {...machine.getRailProps(row)}></span>\n <button\n class={[\"bare relative flex min-h-0 items-center gap-2 rounded-lg border-0 px-3 py-2 text-left transition-colors duration-fast ease-standard hover:bg-surface\", { \"bg-surface-sunken\": machine.getItemState(row).selected, \"bg-transparent\": !machine.getItemState(row).selected }]}\n {...machine.getBranchControlProps(row)}\n >\n <span\n class={[\"h-4 w-4 shrink-0 items-center justify-center text-muted transition-transform duration-fast ease-standard\", { \"inline-flex\": machine.isBranch(row), \"hidden\": !machine.isBranch(row), \"rotate-90\": machine.getItemState(row).expanded }]}\n {...machine.getBranchIndicatorProps(row)}>\n <span class=\"i-lucide-chevron-right type-caption\"\n aria-hidden=\"true\"></span>\n </span>\n <span\n show={machine.isBranch(row) && !machine.getItemState(row).expanded}\n class=\"i-lucide-folder shrink-0 text-primary\"\n aria-hidden=\"true\" {...machine.getItemIconProps(row)}></span>\n <span\n show={machine.isBranch(row) && machine.getItemState(row).expanded}\n class=\"i-lucide-folder-open shrink-0 text-primary\"\n aria-hidden=\"true\" {...machine.getItemIconProps(row)}></span>\n <span show={!machine.isBranch(row)}\n class=\"i-lucide-file shrink-0 text-muted\" aria-hidden=\"true\"\n {...machine.getItemIconProps(row)}></span>\n <span class=\"min-w-0 flex-1 truncate type-body\"\n {...machine.getBranchTextProps(row)}>{row.node.label}</span>\n </button>\n </div>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -16,40 +16,40 @@ const machine = treeView({
|
|
|
16
16
|
tree.loadChildren = async (value) => fetchChildren(value);
|
|
17
17
|
-->
|
|
18
18
|
<div class="mx-auto w-full max-w-sm" {...machine.getRootProps()}>
|
|
19
|
-
<span class="mb-4 block
|
|
19
|
+
<span class="mb-4 block type-caption-emphasized"
|
|
20
20
|
{...machine.getLabelProps()}>Project Files</span>
|
|
21
21
|
<div
|
|
22
|
-
class="
|
|
22
|
+
class="flex flex-col gap-1 rounded-lg border bg-surface-raised p-3"
|
|
23
23
|
{...machine.getTreeProps()}>
|
|
24
24
|
<template for={machine.getVisibleRows()} as={row} key={row.node.value}>
|
|
25
25
|
<div class="relative" {...machine.getItemProps(row)}>
|
|
26
26
|
<span class="pointer-events-none absolute inset-y-0 w-[1px] bg-border"
|
|
27
27
|
aria-hidden="true" {...machine.getRailProps(row)}></span>
|
|
28
28
|
<button
|
|
29
|
-
class={["bare relative flex min-h-0 items-center gap-2 rounded-lg border-0 px-3 py-2 text-left
|
|
29
|
+
class={["bare relative flex min-h-0 items-center gap-2 rounded-lg border-0 px-3 py-2 text-left transition-colors duration-fast ease-standard hover:bg-surface", { "bg-surface-sunken": machine.getItemState(row).selected, "bg-transparent": !machine.getItemState(row).selected }]}
|
|
30
30
|
{...machine.getBranchControlProps(row)}
|
|
31
31
|
>
|
|
32
32
|
<span
|
|
33
|
-
class={["h-4 w-4 shrink-0 items-center justify-center text-
|
|
33
|
+
class={["h-4 w-4 shrink-0 items-center justify-center text-muted transition-transform duration-fast ease-standard", { "inline-flex": machine.isBranch(row), "hidden": !machine.isBranch(row), "rotate-90": machine.getItemState(row).expanded }]}
|
|
34
34
|
{...machine.getBranchIndicatorProps(row)}>
|
|
35
|
-
<span class="i-lucide-chevron-right
|
|
35
|
+
<span class="i-lucide-chevron-right type-caption"
|
|
36
36
|
aria-hidden="true"></span>
|
|
37
37
|
</span>
|
|
38
38
|
<span
|
|
39
39
|
show={machine.isBranch(row) && !machine.getItemState(row).expanded}
|
|
40
|
-
class="i-lucide-folder shrink-0 text-
|
|
40
|
+
class="i-lucide-folder shrink-0 text-primary"
|
|
41
41
|
aria-hidden="true" {...machine.getItemIconProps(row)}></span>
|
|
42
42
|
<span
|
|
43
43
|
show={machine.isBranch(row) && machine.getItemState(row).expanded}
|
|
44
|
-
class="i-lucide-folder-open shrink-0 text-
|
|
44
|
+
class="i-lucide-folder-open shrink-0 text-primary"
|
|
45
45
|
aria-hidden="true" {...machine.getItemIconProps(row)}></span>
|
|
46
46
|
<span show={!machine.isBranch(row)}
|
|
47
|
-
class="i-lucide-file shrink-0 text-
|
|
47
|
+
class="i-lucide-file shrink-0 text-muted" aria-hidden="true"
|
|
48
48
|
{...machine.getItemIconProps(row)}></span>
|
|
49
|
-
<span class="min-w-0 flex-1 truncate"
|
|
49
|
+
<span class="min-w-0 flex-1 truncate type-body"
|
|
50
50
|
{...machine.getBranchTextProps(row)}>{row.node.label}</span>
|
|
51
|
-
<span class="ms-auto shrink-0 text-
|
|
52
|
-
{...machine.getLoadingProps(row)}><span class="i-lucide-loader-circle animate-spin
|
|
51
|
+
<span class="ms-auto shrink-0 text-muted"
|
|
52
|
+
{...machine.getLoadingProps(row)}><span class="i-lucide-loader-circle animate-spin" aria-hidden="true"></span></span>
|
|
53
53
|
</button>
|
|
54
54
|
</div>
|
|
55
55
|
</template>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tree-view/examples/loading.html
|
|
2
|
+
var loading_default = "<script lang=\"ts\">\nimport { treeView } from \"../tree-view.presentation.ts\";\n\nconst machine = treeView({\n nodes:\n '[{\"value\": \"packages\", \"label\": \"packages\"}, {\"value\": \"packages/preset\", \"label\": \"preset\", \"children\": []}, {\"value\": \"readme\", \"label\": \"README.md\", \"children\": []}]',\n expandedValue: [],\n loadChildren: \"\",\n});\n<\/script>\n<!-- Lazy roots declare no children: expanding one calls the host's\n `loadChildren(value)` property (a function returning nodes) and shows\n the loading marker until LOAD_DONE. In this page the loader below is\n wired by the viewer; in your own code set the property yourself:\n\n tree.loadChildren = async (value) => fetchChildren(value);\n-->\n<div class=\"mx-auto w-full max-w-sm\" {...machine.getRootProps()}>\n <span class=\"mb-4 block type-caption-emphasized\"\n {...machine.getLabelProps()}>Project Files</span>\n <div\n class=\"flex flex-col gap-1 rounded-lg border bg-surface-raised p-3\"\n {...machine.getTreeProps()}>\n <template for={machine.getVisibleRows()} as={row} key={row.node.value}>\n <div class=\"relative\" {...machine.getItemProps(row)}>\n <span class=\"pointer-events-none absolute inset-y-0 w-[1px] bg-border\"\n aria-hidden=\"true\" {...machine.getRailProps(row)}></span>\n <button\n class={[\"bare relative flex min-h-0 items-center gap-2 rounded-lg border-0 px-3 py-2 text-left transition-colors duration-fast ease-standard hover:bg-surface\", { \"bg-surface-sunken\": machine.getItemState(row).selected, \"bg-transparent\": !machine.getItemState(row).selected }]}\n {...machine.getBranchControlProps(row)}\n >\n <span\n class={[\"h-4 w-4 shrink-0 items-center justify-center text-muted transition-transform duration-fast ease-standard\", { \"inline-flex\": machine.isBranch(row), \"hidden\": !machine.isBranch(row), \"rotate-90\": machine.getItemState(row).expanded }]}\n {...machine.getBranchIndicatorProps(row)}>\n <span class=\"i-lucide-chevron-right type-caption\"\n aria-hidden=\"true\"></span>\n </span>\n <span\n show={machine.isBranch(row) && !machine.getItemState(row).expanded}\n class=\"i-lucide-folder shrink-0 text-primary\"\n aria-hidden=\"true\" {...machine.getItemIconProps(row)}></span>\n <span\n show={machine.isBranch(row) && machine.getItemState(row).expanded}\n class=\"i-lucide-folder-open shrink-0 text-primary\"\n aria-hidden=\"true\" {...machine.getItemIconProps(row)}></span>\n <span show={!machine.isBranch(row)}\n class=\"i-lucide-file shrink-0 text-muted\" aria-hidden=\"true\"\n {...machine.getItemIconProps(row)}></span>\n <span class=\"min-w-0 flex-1 truncate type-body\"\n {...machine.getBranchTextProps(row)}>{row.node.label}</span>\n <span class=\"ms-auto shrink-0 text-muted\"\n {...machine.getLoadingProps(row)}><span class=\"i-lucide-loader-circle animate-spin\" aria-hidden=\"true\"></span></span>\n </button>\n </div>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { loading_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=loading.html.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeNodeShape } from "./tree-view.state.js";
|
|
2
|
-
import { EventUnion } from "@spinjs/
|
|
2
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
3
3
|
export interface TreeEvents {
|
|
4
4
|
"EXPANDED.SET": {
|
|
5
5
|
value?: string[];
|
|
@@ -63,5 +63,4 @@ export interface TreeEvents {
|
|
|
63
63
|
children?: readonly TreeNodeShape[];
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
export type TreeEvent = EventUnion<TreeEvents>;
|
|
67
|
-
//# sourceMappingURL=tree-view.events.d.ts.map
|
|
66
|
+
export type TreeEvent = EventUnion<TreeEvents>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TreeArgs, TreeContext, TreeState, nodesOf } from "./tree-view.state.js";
|
|
2
2
|
import { TreeEvents } from "./tree-view.events.js";
|
|
3
|
-
import { Machine } from "@spinjs/
|
|
3
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
4
4
|
export declare function treeView(args?: TreeArgs, authored?: (name: string) => boolean): Machine<TreeContext, TreeEvents, TreeState>;
|
|
5
|
-
export { nodesOf };
|
|
6
|
-
//# sourceMappingURL=tree-view.machine.d.ts.map
|
|
5
|
+
export { nodesOf };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initial, nodesOf } from "./tree-view.state.js";
|
|
2
2
|
import { branchCollapse, branchExpand, checkedClear, checkedSet, checkedToggle, expandOnClickGuard, expandedClear, expandedSet, extendSelectionToNode, isMultiToggle, isRangeExtend, loadDone, loadStart, nodeDeselect, nodeFocus, nodeRename, renameCancel, renameSubmit, selectNode, selectedClear, selectedSet, toggleBranch, toggleNodeSelection } from "./tree-view.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/tree-view/tree-view.machine.ts
|
|
5
5
|
function treeView(args = {}, authored = () => true) {
|
|
6
6
|
return createMachine({
|