@streamscloud/kit 0.2.42 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/files/blob-storage-registry.svelte.d.ts +28 -0
- package/dist/core/files/blob-storage-registry.svelte.js +37 -0
- package/dist/core/files/file-validation-rules.d.ts +30 -0
- package/dist/core/files/file-validation-rules.js +95 -0
- package/dist/core/files/file-validation-types.d.ts +18 -0
- package/dist/core/files/file-validator.d.ts +5 -0
- package/dist/core/files/file-validator.js +17 -0
- package/dist/core/files/index.d.ts +8 -0
- package/dist/core/files/index.js +5 -0
- package/dist/core/files/open-file.d.ts +14 -0
- package/dist/core/files/open-file.js +38 -0
- package/dist/core/files/upload-media-store.svelte.d.ts +74 -0
- package/dist/core/files/upload-media-store.svelte.js +118 -0
- package/dist/core/files/upload-types.d.ts +57 -0
- package/dist/core/transitions/durations.d.ts +5 -0
- package/dist/core/transitions/durations.js +6 -0
- package/dist/core/transitions/index.d.ts +1 -0
- package/dist/core/transitions/index.js +1 -0
- package/dist/core/transitions/slide-horizontally.js +2 -1
- package/dist/core/utils/href-validator.d.ts +1 -10
- package/dist/core/utils/href-validator.js +8 -19
- package/dist/core/validation/form-validation-handler/form-validation-handler.svelte.js +2 -0
- package/dist/fonts.d.ts +11 -0
- package/dist/fonts.js +19 -0
- package/dist/styles/_functions.scss +2 -2
- package/dist/styles/_index.scss +1 -2
- package/dist/styles/_primitives.scss +68 -0
- package/dist/styles/_reset.scss +2 -2
- package/dist/styles/_semantic.scss +188 -0
- package/dist/styles/_transitions.scss +1 -14
- package/dist/styles/reset.css +2 -2
- package/dist/ui/_internal/_affordance.scss +58 -0
- package/dist/ui/_internal/input-clear-button/cmp.input-clear-button.svelte +87 -0
- package/dist/ui/_internal/input-clear-button/cmp.input-clear-button.svelte.d.ts +33 -0
- package/dist/ui/_internal/input-clear-button/index.d.ts +1 -0
- package/dist/ui/_internal/input-clear-button/index.js +1 -0
- package/dist/ui/_internal/input-clear-button/input-clear-button-localization.d.ts +3 -0
- package/dist/ui/_internal/input-clear-button/input-clear-button-localization.js +12 -0
- package/dist/ui/_internal/input-emoji-picker/cmp.input-emoji-picker.svelte +74 -0
- package/dist/ui/_internal/input-emoji-picker/cmp.input-emoji-picker.svelte.d.ts +26 -0
- package/dist/ui/{inputs → _internal}/input-emoji-picker/index.d.ts +0 -1
- package/dist/ui/{inputs → _internal}/input-emoji-picker/index.js +0 -1
- package/dist/ui/_internal/input-password-toggle/cmp.input-password-toggle.svelte +93 -0
- package/dist/ui/_internal/input-password-toggle/cmp.input-password-toggle.svelte.d.ts +31 -0
- package/dist/ui/_internal/input-password-toggle/index.d.ts +1 -0
- package/dist/ui/_internal/input-password-toggle/index.js +1 -0
- package/dist/ui/_internal/input-password-toggle/input-password-toggle-localization.d.ts +4 -0
- package/dist/ui/_internal/input-password-toggle/input-password-toggle-localization.js +13 -0
- package/dist/ui/_internal/spinner/cmp.spinner.svelte +41 -0
- package/dist/ui/_internal/spinner/cmp.spinner.svelte.d.ts +37 -0
- package/dist/ui/_internal/spinner/index.d.ts +1 -0
- package/dist/ui/_internal/spinner/index.js +1 -0
- package/dist/ui/avatar/cmp.avatar.svelte +135 -0
- package/dist/ui/avatar/cmp.avatar.svelte.d.ts +34 -0
- package/dist/ui/avatar/index.d.ts +1 -0
- package/dist/ui/avatar/index.js +1 -0
- package/dist/ui/badge/cmp.badge.svelte +69 -60
- package/dist/ui/badge/cmp.badge.svelte.d.ts +16 -13
- package/dist/ui/badge/index.d.ts +1 -1
- package/dist/ui/badge/types.d.ts +1 -1
- package/dist/ui/banner/banner-localization.d.ts +3 -0
- package/dist/ui/banner/banner-localization.js +12 -0
- package/dist/ui/banner/cmp.banner.svelte +147 -0
- package/dist/ui/banner/cmp.banner.svelte.d.ts +44 -0
- package/dist/ui/banner/index.d.ts +1 -0
- package/dist/ui/banner/index.js +1 -0
- package/dist/ui/breadcrumb/breadcrumb-localization.d.ts +3 -0
- package/dist/ui/breadcrumb/breadcrumb-localization.js +12 -0
- package/dist/ui/breadcrumb/cmp.breadcrumb.svelte +78 -0
- package/dist/ui/breadcrumb/cmp.breadcrumb.svelte.d.ts +28 -0
- package/dist/ui/breadcrumb/index.d.ts +2 -0
- package/dist/ui/breadcrumb/index.js +1 -0
- package/dist/ui/breadcrumb/types.d.ts +14 -0
- package/dist/ui/button/cmp.button.svelte +288 -48
- package/dist/ui/button/cmp.button.svelte.d.ts +57 -50
- package/dist/ui/button/index.d.ts +1 -2
- package/dist/ui/button/index.js +0 -1
- package/dist/ui/button/types.d.ts +2 -0
- package/dist/ui/card/cmp.card.svelte +104 -0
- package/dist/ui/card/cmp.card.svelte.d.ts +42 -0
- package/dist/ui/card/index.d.ts +1 -0
- package/dist/ui/card/index.js +1 -0
- package/dist/ui/card-actions/cmp.card-action.svelte +19 -6
- package/dist/ui/card-actions/cmp.card-action.svelte.d.ts +4 -2
- package/dist/ui/card-actions/cmp.card-actions.svelte +19 -20
- package/dist/ui/card-actions/cmp.card-actions.svelte.d.ts +11 -8
- package/dist/ui/card-actions/types.d.ts +2 -3
- package/dist/ui/checkbox/cmp.checkbox.svelte +99 -76
- package/dist/ui/checkbox/cmp.checkbox.svelte.d.ts +21 -18
- package/dist/ui/checkbox/index.d.ts +0 -2
- package/dist/ui/checkbox/index.js +0 -1
- package/dist/ui/chip-group/cmp.chip-group.svelte +170 -0
- package/dist/ui/chip-group/cmp.chip-group.svelte.d.ts +84 -0
- package/dist/ui/chip-group/index.d.ts +2 -0
- package/dist/ui/chip-group/index.js +1 -0
- package/dist/ui/chip-group/types.d.ts +5 -0
- package/dist/ui/color-picker/cmp.color-picker.svelte +68 -36
- package/dist/ui/color-picker/cmp.color-picker.svelte.d.ts +37 -10
- package/dist/ui/color-picker/color-picker-localization.d.ts +1 -0
- package/dist/ui/color-picker/color-picker-localization.js +7 -0
- package/dist/ui/confirmation-dialog/cmp.confirmation-dialog.svelte +16 -13
- package/dist/ui/confirmation-dialog/cmp.confirmation-dialog.svelte.d.ts +8 -0
- package/dist/ui/cropper/image-editor-dialog/cmp.image-editor-dialog.svelte +1 -1
- package/dist/ui/cropper/image-editor-dialog/crop-and-resize.d.ts +36 -0
- package/dist/ui/cropper/image-editor-dialog/crop-and-resize.js +47 -0
- package/dist/ui/cropper/image-editor-dialog/index.d.ts +4 -2
- package/dist/ui/cropper/image-editor-dialog/index.js +3 -2
- package/dist/ui/cropper/img-cropper/cmp.img-cropper-controls.svelte +16 -15
- package/dist/ui/cropper/img-cropper/cmp.img-cropper-toolbar.svelte +9 -12
- package/dist/ui/cropper/img-cropper/cmp.img-cropper-toolbar.svelte.d.ts +1 -1
- package/dist/ui/cropper/img-cropper/cmp.img-cropper.svelte +4 -4
- package/dist/ui/cropper/img-cropper/cmp.img-cropper.svelte.d.ts +1 -1
- package/dist/ui/date-picker/cmp.date-picker-calendar.svelte +294 -0
- package/dist/ui/date-picker/cmp.date-picker-calendar.svelte.d.ts +59 -0
- package/dist/ui/date-picker/cmp.date-picker.svelte +331 -0
- package/dist/ui/date-picker/cmp.date-picker.svelte.d.ts +82 -0
- package/dist/ui/date-picker/date-picker-localization.d.ts +6 -0
- package/dist/ui/date-picker/date-picker-localization.js +33 -0
- package/dist/ui/date-picker/index.d.ts +2 -0
- package/dist/ui/date-picker/index.js +1 -0
- package/dist/ui/date-picker/types.d.ts +1 -0
- package/dist/ui/dialog/cmp.dialog-button.svelte +11 -4
- package/dist/ui/dialog/cmp.dialog-button.svelte.d.ts +14 -3
- package/dist/ui/dialog/cmp.dialog-cancel-button.svelte +10 -3
- package/dist/ui/dialog/cmp.dialog-cancel-button.svelte.d.ts +10 -1
- package/dist/ui/dialog/cmp.dialog-close-button.svelte +38 -8
- package/dist/ui/dialog/cmp.dialog-close-button.svelte.d.ts +8 -2
- package/dist/ui/dialog/cmp.dialog-container.svelte +50 -11
- package/dist/ui/dialog/cmp.dialog-container.svelte.d.ts +11 -0
- package/dist/ui/dialog/cmp.dialog-host.svelte +25 -0
- package/dist/ui/dialog/cmp.dialog-host.svelte.d.ts +15 -0
- package/dist/ui/dialog/cmp.dialog.svelte +31 -22
- package/dist/ui/dialog/cmp.dialog.svelte.d.ts +10 -8
- package/dist/ui/dialog/dialog-controller.d.ts +2 -2
- package/dist/ui/dialog/dialog-data.d.ts +4 -5
- package/dist/ui/dialog/dialog-host-mount.d.ts +6 -0
- package/dist/ui/dialog/dialog-host-mount.js +18 -0
- package/dist/ui/dialog/dialog-localization.d.ts +3 -0
- package/dist/ui/dialog/dialog-localization.js +12 -0
- package/dist/ui/dialog/dialog-store.svelte.d.ts +27 -0
- package/dist/ui/dialog/dialog-store.svelte.js +125 -0
- package/dist/ui/dialog/index.d.ts +3 -2
- package/dist/ui/dialog/index.js +2 -1
- package/dist/ui/dialog/types.svelte.d.ts +1 -1
- package/dist/ui/divider/cmp.divider.svelte +71 -0
- package/dist/ui/divider/cmp.divider.svelte.d.ts +25 -0
- package/dist/ui/divider/index.d.ts +1 -0
- package/dist/ui/divider/index.js +1 -0
- package/dist/ui/drag-and-drop/cmp.drag-source.svelte +30 -0
- package/dist/ui/drag-and-drop/cmp.drag-source.svelte.d.ts +39 -0
- package/dist/ui/drag-and-drop/cmp.drop-zone.svelte +122 -0
- package/dist/ui/drag-and-drop/cmp.drop-zone.svelte.d.ts +72 -0
- package/dist/ui/drag-and-drop/drag-and-drop.svelte.d.ts +15 -0
- package/dist/ui/drag-and-drop/drag-and-drop.svelte.js +13 -0
- package/dist/ui/drag-and-drop/index.d.ts +4 -0
- package/dist/ui/drag-and-drop/index.js +3 -0
- package/dist/ui/drag-and-drop/types.d.ts +9 -0
- package/dist/ui/drawer/cmp.drawer-view.svelte +40 -0
- package/dist/ui/drawer/cmp.drawer-view.svelte.d.ts +9 -0
- package/dist/ui/drawer/cmp.drawer.svelte +29 -0
- package/dist/ui/drawer/cmp.drawer.svelte.d.ts +29 -0
- package/dist/ui/drawer/drawer.d.ts +41 -0
- package/dist/ui/drawer/drawer.js +28 -0
- package/dist/ui/drawer/index.d.ts +3 -0
- package/dist/ui/drawer/index.js +2 -0
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte +21 -1
- package/dist/ui/dynamic-component/cmp.dynamic-component.svelte.d.ts +23 -1
- package/dist/ui/emoji-picker/cmp.emoji-panel.svelte +45 -24
- package/dist/ui/emoji-picker/cmp.emoji-panel.svelte.d.ts +7 -6
- package/dist/ui/emoji-picker/cmp.emoji-picker.svelte +37 -22
- package/dist/ui/emoji-picker/cmp.emoji-picker.svelte.d.ts +16 -5
- package/dist/ui/empty-state/cmp.empty-state.svelte +126 -0
- package/dist/ui/empty-state/cmp.empty-state.svelte.d.ts +39 -0
- package/dist/ui/empty-state/index.d.ts +1 -0
- package/dist/ui/empty-state/index.js +1 -0
- package/dist/ui/empty-state/zero-content.svg +133 -0
- package/dist/ui/file-uploader/cmp.file-row.svelte +145 -0
- package/dist/ui/file-uploader/cmp.file-row.svelte.d.ts +31 -0
- package/dist/ui/file-uploader/cmp.file-upload-progress.svelte +141 -0
- package/dist/ui/file-uploader/cmp.file-upload-progress.svelte.d.ts +25 -0
- package/dist/ui/file-uploader/cmp.file-uploader.svelte +210 -0
- package/dist/ui/file-uploader/cmp.file-uploader.svelte.d.ts +56 -0
- package/dist/ui/file-uploader/file-type-colors.d.ts +3 -0
- package/dist/ui/file-uploader/file-type-colors.js +38 -0
- package/dist/ui/file-uploader/file-uploader-localization.d.ts +4 -0
- package/dist/ui/file-uploader/file-uploader-localization.js +19 -0
- package/dist/ui/file-uploader/index.d.ts +6 -0
- package/dist/ui/file-uploader/index.js +6 -0
- package/dist/ui/file-uploader/to-uploading-file.d.ts +7 -0
- package/dist/ui/file-uploader/to-uploading-file.js +12 -0
- package/dist/ui/form-field/cmp.form-field-validatable.svelte +42 -0
- package/dist/ui/form-field/cmp.form-field-validatable.svelte.d.ts +75 -0
- package/dist/ui/form-field/cmp.form-field.svelte +55 -0
- package/dist/ui/form-field/cmp.form-field.svelte.d.ts +24 -0
- package/dist/ui/form-field/index.d.ts +2 -0
- package/dist/ui/form-field/index.js +2 -0
- package/dist/ui/grid-card/cmp.grid-card-media.svelte +170 -0
- package/dist/ui/grid-card/cmp.grid-card-media.svelte.d.ts +30 -0
- package/dist/ui/grid-card/cmp.grid-card.svelte +111 -0
- package/dist/ui/grid-card/cmp.grid-card.svelte.d.ts +39 -0
- package/dist/ui/grid-card/cmp.video-player.svelte +196 -0
- package/dist/ui/grid-card/cmp.video-player.svelte.d.ts +26 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-actions-field.svelte +25 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-actions-field.svelte.d.ts +21 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-badge-field.svelte +28 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-badge-field.svelte.d.ts +20 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-button.svelte +28 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-button.svelte.d.ts +17 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-field.svelte +61 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-field.svelte.d.ts +23 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-fields.svelte +32 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-fields.svelte.d.ts +17 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-id-field.svelte +39 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-id-field.svelte.d.ts +13 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-progress-field.svelte +69 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-progress-field.svelte.d.ts +30 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-text-field.svelte +36 -0
- package/dist/ui/grid-card/fields/cmp.grid-card-text-field.svelte.d.ts +14 -0
- package/dist/ui/grid-card/fields/index.d.ts +8 -0
- package/dist/ui/grid-card/fields/index.js +8 -0
- package/dist/ui/grid-card/icon-checkbox-checked.svg +5 -0
- package/dist/ui/grid-card/icon-checkbox-unchecked.svg +4 -0
- package/dist/ui/grid-card/index.d.ts +4 -0
- package/dist/ui/grid-card/index.js +3 -0
- package/dist/ui/grid-card/types.d.ts +4 -0
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar-section.svelte +28 -23
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar-section.svelte.d.ts +7 -6
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar.svelte +27 -12
- package/dist/ui/grouped-sidebar/cmp.grouped-sidebar.svelte.d.ts +20 -4
- package/dist/ui/grouped-sidebar/types.svelte.js +3 -3
- package/dist/ui/handle-input/cmp.handle-input.svelte +125 -0
- package/dist/ui/handle-input/cmp.handle-input.svelte.d.ts +38 -0
- package/dist/ui/handle-input/handle-input-localization.d.ts +6 -0
- package/dist/ui/handle-input/handle-input-localization.js +33 -0
- package/dist/ui/handle-input/index.d.ts +2 -0
- package/dist/ui/handle-input/index.js +2 -0
- package/dist/ui/html-block/cmp.html-block.svelte +40 -22
- package/dist/ui/html-block/cmp.html-block.svelte.d.ts +13 -0
- package/dist/ui/icon/cmp.icon-slot.svelte +19 -0
- package/dist/ui/icon/cmp.icon-slot.svelte.d.ts +18 -0
- package/dist/ui/icon/cmp.icon.svelte +58 -34
- package/dist/ui/icon/cmp.icon.svelte.d.ts +19 -9
- package/dist/ui/icon/icon-utils.d.ts +9 -0
- package/dist/ui/icon/icon-utils.js +12 -0
- package/dist/ui/icon/index.d.ts +3 -1
- package/dist/ui/icon/index.js +2 -0
- package/dist/ui/icon/types.d.ts +8 -1
- package/dist/ui/icon-picker/cmp.icon-picker.svelte +137 -0
- package/dist/ui/icon-picker/cmp.icon-picker.svelte.d.ts +34 -0
- package/dist/ui/icon-picker/index.d.ts +2 -0
- package/dist/ui/icon-picker/index.js +1 -0
- package/dist/ui/icon-picker/types.d.ts +16 -0
- package/dist/ui/icon-picker/types.js +1 -0
- package/dist/ui/icon-text/cmp.icon-text.svelte +37 -34
- package/dist/ui/icon-text/cmp.icon-text.svelte.d.ts +18 -19
- package/dist/ui/image/cmp.image-rounded.svelte +10 -14
- package/dist/ui/image/cmp.image-rounded.svelte.d.ts +6 -4
- package/dist/ui/image/cmp.image-stub.svelte +2 -2
- package/dist/ui/image/cmp.image-stub.svelte.d.ts +1 -1
- package/dist/ui/image/cmp.image.svelte +6 -9
- package/dist/ui/image/cmp.image.svelte.d.ts +1 -1
- package/dist/ui/image/image-state.d.ts +1 -5
- package/dist/ui/image/image-state.js +3 -9
- package/dist/ui/image/index.d.ts +2 -1
- package/dist/ui/image/index.js +1 -1
- package/dist/ui/infinite-scroll/cmp.infinite-scroll.svelte +103 -0
- package/dist/ui/infinite-scroll/cmp.infinite-scroll.svelte.d.ts +27 -0
- package/dist/ui/infinite-scroll/index.d.ts +1 -0
- package/dist/ui/infinite-scroll/index.js +1 -0
- package/dist/ui/input/cmp.input.svelte +327 -0
- package/dist/ui/input/cmp.input.svelte.d.ts +38 -0
- package/dist/ui/input/index.d.ts +2 -0
- package/dist/ui/input/index.js +1 -0
- package/dist/ui/input/types.d.ts +77 -0
- package/dist/ui/input/types.js +1 -0
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte +12 -1
- package/dist/ui/line-clamp/cmp.line-clamp-auto.svelte.d.ts +3 -1
- package/dist/ui/line-clamp/cmp.line-clamp.svelte +13 -1
- package/dist/ui/line-clamp/cmp.line-clamp.svelte.d.ts +4 -1
- package/dist/ui/link/cmp.link.svelte +72 -0
- package/dist/ui/link/cmp.link.svelte.d.ts +33 -0
- package/dist/ui/link/index.d.ts +1 -0
- package/dist/ui/link/index.js +1 -0
- package/dist/ui/listing-card/cmp.listing-card.svelte +170 -0
- package/dist/ui/listing-card/cmp.listing-card.svelte.d.ts +41 -0
- package/dist/ui/listing-card/index.d.ts +1 -0
- package/dist/ui/listing-card/index.js +1 -0
- package/dist/ui/logo/cmp.logo.svelte +77 -0
- package/dist/ui/logo/cmp.logo.svelte.d.ts +35 -0
- package/dist/ui/logo/index.d.ts +1 -0
- package/dist/ui/logo/index.js +1 -0
- package/dist/ui/media-playback/playback-manager.svelte.d.ts +3 -0
- package/dist/ui/media-playback/playback-manager.svelte.js +5 -0
- package/dist/ui/media-viewer-dialog/cmp.media-viewer-dialog.svelte +6 -5
- package/dist/ui/media-viewer-dialog/index.d.ts +2 -2
- package/dist/ui/media-viewer-dialog/index.js +3 -3
- package/dist/ui/navigation/cmp.nav-menu-account-row.svelte +146 -0
- package/dist/ui/navigation/cmp.nav-menu-account-row.svelte.d.ts +28 -0
- package/dist/ui/navigation/cmp.nav-menu-divider.svelte +14 -0
- package/dist/ui/navigation/cmp.nav-menu-divider.svelte.d.ts +22 -0
- package/dist/ui/navigation/cmp.nav-menu-group.svelte +17 -0
- package/dist/ui/{form-group/cmp.form-group.svelte.d.ts → navigation/cmp.nav-menu-group.svelte.d.ts} +4 -2
- package/dist/ui/navigation/cmp.nav-menu-header.svelte +17 -0
- package/dist/ui/navigation/cmp.nav-menu-header.svelte.d.ts +10 -0
- package/dist/ui/navigation/cmp.nav-menu-item.svelte +157 -0
- package/dist/ui/navigation/cmp.nav-menu-item.svelte.d.ts +43 -0
- package/dist/ui/navigation/cmp.nav-menu.svelte +96 -0
- package/dist/ui/navigation/cmp.nav-menu.svelte.d.ts +27 -0
- package/dist/ui/navigation/cmp.nav-rail-item.svelte +118 -0
- package/dist/ui/navigation/cmp.nav-rail-item.svelte.d.ts +38 -0
- package/dist/ui/navigation/cmp.nav-rail.svelte +216 -0
- package/dist/ui/navigation/cmp.nav-rail.svelte.d.ts +40 -0
- package/dist/ui/navigation/index.d.ts +8 -0
- package/dist/ui/navigation/index.js +8 -0
- package/dist/ui/navigation/nav-rail-localization.d.ts +4 -0
- package/dist/ui/navigation/nav-rail-localization.js +19 -0
- package/dist/ui/numeral-input/cmp.numeral-input.svelte +331 -0
- package/dist/ui/numeral-input/cmp.numeral-input.svelte.d.ts +97 -0
- package/dist/ui/numeral-input/index.d.ts +1 -0
- package/dist/ui/numeral-input/index.js +1 -0
- package/dist/ui/open-file-button/cmp.open-file-button.svelte +42 -0
- package/dist/ui/open-file-button/cmp.open-file-button.svelte.d.ts +45 -0
- package/dist/ui/open-file-button/index.d.ts +1 -0
- package/dist/ui/open-file-button/index.js +1 -0
- package/dist/ui/option-pill/cmp.option-pill.svelte +140 -0
- package/dist/ui/option-pill/cmp.option-pill.svelte.d.ts +73 -0
- package/dist/ui/option-pill/index.d.ts +2 -0
- package/dist/ui/option-pill/index.js +1 -0
- package/dist/ui/option-pill/types.d.ts +8 -0
- package/dist/ui/option-pill/types.js +1 -0
- package/dist/ui/page-header/cmp.page-header.svelte +75 -0
- package/dist/ui/page-header/cmp.page-header.svelte.d.ts +32 -0
- package/dist/ui/page-header/index.d.ts +1 -0
- package/dist/ui/page-header/index.js +1 -0
- package/dist/ui/page-layout/cmp.page-layout.svelte +171 -0
- package/dist/ui/page-layout/cmp.page-layout.svelte.d.ts +33 -0
- package/dist/ui/page-layout/cmp.page-panel-sidebars.svelte +164 -0
- package/dist/ui/page-layout/cmp.page-panel-sidebars.svelte.d.ts +30 -0
- package/dist/ui/page-layout/cmp.page-panel.svelte +377 -0
- package/dist/ui/page-layout/cmp.page-panel.svelte.d.ts +60 -0
- package/dist/ui/page-layout/cmp.page-panels.svelte +21 -0
- package/dist/ui/{form-group/cmp.form-group-label.svelte.d.ts → page-layout/cmp.page-panels.svelte.d.ts} +4 -2
- package/dist/ui/page-layout/cmp.panel-collapse-button.svelte +63 -0
- package/dist/ui/page-layout/cmp.panel-collapse-button.svelte.d.ts +23 -0
- package/dist/ui/page-layout/cmp.panel-content.svelte +21 -0
- package/dist/ui/{page-toolbar/cmp.toolbar-button-item.svelte.d.ts → page-layout/cmp.panel-content.svelte.d.ts} +2 -5
- package/dist/ui/page-layout/index.d.ts +8 -0
- package/dist/ui/page-layout/index.js +7 -0
- package/dist/ui/page-layout/page-layout-localization.d.ts +5 -0
- package/dist/ui/page-layout/page-layout-localization.js +26 -0
- package/dist/ui/page-layout/panel-state.svelte.d.ts +50 -0
- package/dist/ui/page-layout/panel-state.svelte.js +61 -0
- package/dist/ui/page-layout/types.d.ts +19 -0
- package/dist/ui/page-layout/types.js +1 -0
- package/dist/ui/page-toolbar/cmp.reorderable-toggle-list.svelte +20 -27
- package/dist/ui/page-toolbar/cmp.reorderable-toggle-list.svelte.d.ts +3 -3
- package/dist/ui/page-toolbar/cmp.toolbar-checkbox-item.svelte +3 -5
- package/dist/ui/page-toolbar/cmp.toolbar-panel-button.svelte +42 -0
- package/dist/ui/page-toolbar/cmp.toolbar-panel-button.svelte.d.ts +20 -0
- package/dist/ui/page-toolbar/cmp.toolbar-panel.svelte +17 -18
- package/dist/ui/page-toolbar/cmp.toolbar-panel.svelte.d.ts +2 -2
- package/dist/ui/page-toolbar/cmp.toolbar-popover.svelte +31 -0
- package/dist/ui/page-toolbar/cmp.toolbar-popover.svelte.d.ts +23 -0
- package/dist/ui/page-toolbar/cmp.toolbar-search-input.svelte +21 -16
- package/dist/ui/page-toolbar/cmp.toolbar-search-input.svelte.d.ts +8 -1
- package/dist/ui/page-toolbar/cmp.toolbar-segmented-control.svelte +9 -15
- package/dist/ui/page-toolbar/cmp.toolbar-segmented-control.svelte.d.ts +10 -16
- package/dist/ui/page-toolbar/cmp.toolbar-switch-item.svelte +13 -16
- package/dist/ui/page-toolbar/cmp.toolbar-switch-item.svelte.d.ts +10 -12
- package/dist/ui/page-toolbar/cmp.toolbar-toggle-item.svelte +4 -33
- package/dist/ui/page-toolbar/cmp.toolbar-toggle-item.svelte.d.ts +2 -9
- package/dist/ui/page-toolbar/index.d.ts +2 -2
- package/dist/ui/page-toolbar/index.js +2 -2
- package/dist/ui/pagination/cmp.pagination.svelte +199 -0
- package/dist/ui/pagination/cmp.pagination.svelte.d.ts +35 -0
- package/dist/ui/pagination/index.d.ts +2 -0
- package/dist/ui/pagination/index.js +2 -0
- package/dist/ui/pagination/pagination-localization.d.ts +6 -0
- package/dist/ui/pagination/pagination-localization.js +33 -0
- package/dist/ui/pagination/pagination-state.svelte.d.ts +13 -0
- package/dist/ui/pagination/pagination-state.svelte.js +35 -0
- package/dist/ui/pin-input/cmp.pin-input.svelte +154 -0
- package/dist/ui/pin-input/cmp.pin-input.svelte.d.ts +44 -0
- package/dist/ui/player/buttons/cmp.mobile-player-buttons.svelte +4 -4
- package/dist/ui/player/buttons/cmp.player-buttons.svelte +11 -11
- package/dist/ui/player/buttons/types.d.ts +2 -3
- package/dist/ui/player/carousel/cmp.carousel.svelte +6 -4
- package/dist/ui/player/carousel/cmp.carousel.svelte.d.ts +2 -1
- package/dist/ui/popover/cmp.hover-popover.svelte +64 -0
- package/dist/ui/popover/cmp.hover-popover.svelte.d.ts +52 -0
- package/dist/ui/popover/cmp.popover-item.svelte +89 -0
- package/dist/ui/popover/cmp.popover-item.svelte.d.ts +35 -0
- package/dist/ui/popover/cmp.popover.svelte +369 -0
- package/dist/ui/popover/cmp.popover.svelte.d.ts +70 -0
- package/dist/ui/popover/index.d.ts +10 -0
- package/dist/ui/popover/index.js +4 -0
- package/dist/ui/{dropdown/dropdown-ignore.d.ts → popover/popover-ignore.d.ts} +1 -1
- package/dist/ui/{dropdown/dropdown-ignore.js → popover/popover-ignore.js} +2 -2
- package/dist/ui/progress/cmp.progress.svelte +90 -21
- package/dist/ui/progress/cmp.progress.svelte.d.ts +26 -6
- package/dist/ui/radio/cmp.radio-card.svelte +157 -0
- package/dist/ui/radio/cmp.radio-card.svelte.d.ts +43 -0
- package/dist/ui/radio/cmp.radio.svelte +115 -0
- package/dist/ui/radio/cmp.radio.svelte.d.ts +37 -0
- package/dist/ui/radio/index.d.ts +2 -0
- package/dist/ui/radio/index.js +2 -0
- package/dist/ui/rich-text-input/cmp.rich-text-input.svelte +283 -0
- package/dist/ui/rich-text-input/cmp.rich-text-input.svelte.d.ts +69 -0
- package/dist/ui/rich-text-input/hugerte.declarations.d.ts +10 -0
- package/dist/ui/{inputs/rich-text-input → rich-text-input}/rich-text-input-localization.js +1 -1
- package/dist/ui/rich-text-input/types.js +1 -0
- package/dist/ui/{inputs/rich-text-input → rich-text-input}/validated-link-button.d.ts +1 -1
- package/dist/ui/{inputs/rich-text-input → rich-text-input}/validated-link-button.js +1 -1
- package/dist/ui/seek-bar/cmp.seek-bar.svelte +15 -12
- package/dist/ui/seek-bar/cmp.seek-bar.svelte.d.ts +6 -5
- package/dist/ui/seek-bar/seek-bar-localization.d.ts +3 -0
- package/dist/ui/seek-bar/seek-bar-localization.js +12 -0
- package/dist/ui/segmented-control/cmp.segmented-control.svelte +137 -85
- package/dist/ui/segmented-control/cmp.segmented-control.svelte.d.ts +46 -27
- package/dist/ui/segmented-control/index.d.ts +1 -0
- package/dist/ui/select/_select-trigger.scss +199 -0
- package/dist/ui/select/cmp.multiselect-async.svelte +54 -0
- package/dist/ui/select/cmp.multiselect-async.svelte.d.ts +79 -0
- package/dist/ui/select/cmp.multiselect-tree.svelte +115 -0
- package/dist/ui/select/cmp.multiselect-tree.svelte.d.ts +152 -0
- package/dist/ui/select/cmp.multiselect.svelte +70 -0
- package/dist/ui/select/cmp.multiselect.svelte.d.ts +78 -0
- package/dist/ui/select/cmp.singleselect-async.svelte +343 -0
- package/dist/ui/select/cmp.singleselect-async.svelte.d.ts +105 -0
- package/dist/ui/select/cmp.singleselect.svelte +136 -0
- package/dist/ui/select/cmp.singleselect.svelte.d.ts +96 -0
- package/dist/ui/select/index.d.ts +11 -0
- package/dist/ui/select/index.js +5 -0
- package/dist/ui/select/multiselect-base.svelte +565 -0
- package/dist/ui/select/multiselect-base.svelte.d.ts +81 -0
- package/dist/ui/select/multiselect-localization.d.ts +11 -0
- package/dist/ui/select/multiselect-localization.js +47 -0
- package/dist/ui/select/select-chip.svelte +123 -0
- package/dist/ui/select/select-chip.svelte.d.ts +48 -0
- package/dist/ui/select/select-core.svelte.d.ts +87 -0
- package/dist/ui/select/select-core.svelte.js +380 -0
- package/dist/ui/select/select-internals.d.ts +33 -0
- package/dist/ui/select/select-internals.js +111 -0
- package/dist/ui/select/select-listbox-localization.d.ts +4 -0
- package/dist/ui/select/select-listbox-localization.js +16 -0
- package/dist/ui/select/select-listbox.svelte +366 -0
- package/dist/ui/select/select-listbox.svelte.d.ts +93 -0
- package/dist/ui/select/singleselect-localization.d.ts +4 -0
- package/dist/ui/select/singleselect-localization.js +13 -0
- package/dist/ui/select/types.d.ts +211 -0
- package/dist/ui/select/types.js +1 -0
- package/dist/ui/skeleton/cmp.skeleton.svelte +72 -0
- package/dist/ui/skeleton/cmp.skeleton.svelte.d.ts +25 -0
- package/dist/ui/skeleton/index.d.ts +1 -0
- package/dist/ui/skeleton/index.js +1 -0
- package/dist/ui/slider/cmp.slider.svelte +160 -0
- package/dist/ui/slider/cmp.slider.svelte.d.ts +40 -0
- package/dist/ui/slider/index.d.ts +1 -0
- package/dist/ui/slider/index.js +1 -0
- package/dist/ui/spinner/cmp.spinner.svelte +156 -0
- package/dist/ui/spinner/cmp.spinner.svelte.d.ts +47 -0
- package/dist/ui/spinner/index.d.ts +1 -0
- package/dist/ui/spinner/index.js +1 -0
- package/dist/ui/stack/cmp.stack.svelte +25 -0
- package/dist/ui/stack/cmp.stack.svelte.d.ts +22 -0
- package/dist/ui/stack/index.d.ts +1 -0
- package/dist/ui/stack/index.js +1 -0
- package/dist/ui/stat/cmp.stat.svelte +105 -0
- package/dist/ui/stat/cmp.stat.svelte.d.ts +34 -0
- package/dist/ui/stat/index.d.ts +1 -0
- package/dist/ui/stat/index.js +1 -0
- package/dist/ui/stepper/cmp.stepper.svelte +286 -0
- package/dist/ui/stepper/cmp.stepper.svelte.d.ts +59 -0
- package/dist/ui/stepper/index.d.ts +1 -0
- package/dist/ui/stepper/index.js +1 -0
- package/dist/ui/stepper-dialog/cmp.stepper-dialog.svelte +221 -0
- package/dist/ui/stepper-dialog/cmp.stepper-dialog.svelte.d.ts +17 -0
- package/dist/ui/stepper-dialog/index.d.ts +2 -0
- package/dist/ui/stepper-dialog/index.js +1 -0
- package/dist/ui/stepper-dialog/stepper-dialog-localization.d.ts +6 -0
- package/dist/ui/stepper-dialog/stepper-dialog-localization.js +33 -0
- package/dist/ui/stepper-dialog/stepper-dialog.d.ts +22 -0
- package/dist/ui/stepper-dialog/stepper-dialog.js +26 -0
- package/dist/ui/stepper-dialog/types.d.ts +34 -0
- package/dist/ui/stepper-dialog/types.js +1 -0
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte +68 -9
- package/dist/ui/swipe-indicator/cmp.swipe-indicator.svelte.d.ts +20 -4
- package/dist/ui/table/cmp.table.svelte +115 -59
- package/dist/ui/table/cmp.table.svelte.d.ts +24 -15
- package/dist/ui/table/table-cells/table-actions-cell.svelte +14 -21
- package/dist/ui/table/table-cells/table-actions-cell.svelte.d.ts +5 -5
- package/dist/ui/table/table-cells/table-badge-cell.svelte +2 -2
- package/dist/ui/table/table-cells/table-button-cell.svelte +3 -3
- package/dist/ui/table/table-cells/table-by-cell.svelte +12 -21
- package/dist/ui/table/table-cells/table-checkbox-cell.svelte +3 -0
- package/dist/ui/table/table-cells/table-icon-cell.svelte +6 -29
- package/dist/ui/table/table-cells/table-icon-cell.svelte.d.ts +1 -10
- package/dist/ui/table/table-cells/table-move-row-cell.svelte +3 -3
- package/dist/ui/table/table-cells/table-select-cell.svelte +18 -12
- package/dist/ui/table/table-cells/table-text-cell.svelte +2 -5
- package/dist/ui/table/table-cells/table-text-cell.svelte.d.ts +1 -1
- package/dist/ui/table/table-cells/table-text-input-cell.svelte +11 -25
- package/dist/ui/table/table-columns-manager/cmp.table-columns-manager.svelte +8 -11
- package/dist/ui/table/table-columns-manager/cmp.table-columns-manager.svelte.d.ts +2 -2
- package/dist/ui/table/table-group-actions/cmp.table-group-actions.svelte +14 -14
- package/dist/ui/table/table-group-actions/cmp.table-group-actions.svelte.d.ts +1 -1
- package/dist/ui/table/table-group-actions/types.svelte.d.ts +2 -3
- package/dist/ui/table/table-headers/table-header-sortable.svelte +5 -5
- package/dist/ui/table/table-headers/table-header.svelte +3 -3
- package/dist/ui/table/table-model.svelte.d.ts +2 -1
- package/dist/ui/table/table-model.svelte.js +4 -1
- package/dist/ui/table/types.d.ts +24 -13
- package/dist/ui/tabs/cmp.tabs.svelte +154 -0
- package/dist/ui/tabs/cmp.tabs.svelte.d.ts +70 -0
- package/dist/ui/tabs/index.d.ts +2 -0
- package/dist/ui/tabs/index.js +1 -0
- package/dist/ui/textarea/cmp.textarea.svelte +254 -0
- package/dist/ui/textarea/cmp.textarea.svelte.d.ts +80 -0
- package/dist/ui/textarea/index.d.ts +1 -0
- package/dist/ui/textarea/index.js +1 -0
- package/dist/ui/time-ago/cmp.time-ago.svelte +6 -3
- package/dist/ui/time-ago/cmp.time-ago.svelte.d.ts +5 -2
- package/dist/ui/toast/cmp.toast-item.svelte +191 -0
- package/dist/ui/{form-group/cmp.form-group-note.svelte.d.ts → toast/cmp.toast-item.svelte.d.ts} +5 -2
- package/dist/ui/toast/cmp.toaster.svelte +112 -0
- package/dist/ui/toast/cmp.toaster.svelte.d.ts +29 -0
- package/dist/ui/toast/index.d.ts +3 -0
- package/dist/ui/toast/index.js +2 -0
- package/dist/ui/toast/toast-localization.d.ts +3 -0
- package/dist/ui/toast/toast-localization.js +12 -0
- package/dist/ui/toast/toast-store.svelte.d.ts +17 -0
- package/dist/ui/toast/toast-store.svelte.js +65 -0
- package/dist/ui/toast/toaster-host.svelte.d.ts +6 -0
- package/dist/ui/toast/toaster-host.svelte.js +18 -0
- package/dist/ui/toast/toastr.d.ts +17 -0
- package/dist/ui/toast/toastr.js +30 -0
- package/dist/ui/toast/types.d.ts +27 -0
- package/dist/ui/toast/types.js +1 -0
- package/dist/ui/toggle/cmp.toggle.svelte +169 -77
- package/dist/ui/toggle/cmp.toggle.svelte.d.ts +33 -11
- package/dist/ui/tooltip/cmp.tooltip.svelte +125 -155
- package/dist/ui/tooltip/cmp.tooltip.svelte.d.ts +23 -19
- package/dist/ui/tooltip/index.d.ts +0 -1
- package/dist/ui/tree/cmp.tree-node-view.svelte +342 -0
- package/dist/ui/tree/cmp.tree-node-view.svelte.d.ts +12 -0
- package/dist/ui/tree/cmp.tree.svelte +65 -0
- package/dist/ui/tree/cmp.tree.svelte.d.ts +32 -0
- package/dist/ui/tree/index.d.ts +4 -0
- package/dist/ui/tree/index.js +2 -0
- package/dist/ui/tree/tree-navigation.svelte.d.ts +14 -0
- package/dist/ui/tree/tree-navigation.svelte.js +99 -0
- package/dist/ui/tree/tree-node-action.d.ts +8 -0
- package/dist/ui/tree/tree-node-action.js +1 -0
- package/dist/ui/tree/tree-node-drag-config.svelte.d.ts +16 -0
- package/dist/ui/tree/tree-node-drag-config.svelte.js +4 -0
- package/dist/ui/tree/tree-node.svelte.d.ts +81 -0
- package/dist/ui/tree/tree-node.svelte.js +232 -0
- package/dist/ui/typography/cmp.heading.svelte +77 -0
- package/dist/ui/typography/cmp.heading.svelte.d.ts +29 -0
- package/dist/ui/typography/cmp.text.svelte +68 -0
- package/dist/ui/typography/cmp.text.svelte.d.ts +32 -0
- package/dist/ui/typography/index.d.ts +2 -0
- package/dist/ui/typography/index.js +2 -0
- package/dist/ui/usage/cmp.usage-row.svelte +85 -0
- package/dist/ui/usage/cmp.usage-row.svelte.d.ts +29 -0
- package/dist/ui/usage/cmp.usage.svelte +50 -0
- package/dist/ui/usage/cmp.usage.svelte.d.ts +23 -0
- package/dist/ui/usage/index.d.ts +2 -0
- package/dist/ui/usage/index.js +2 -0
- package/dist/ui/validatable/cmp.field-error.svelte +36 -0
- package/dist/ui/validatable/cmp.field-error.svelte.d.ts +17 -0
- package/dist/ui/validatable/cmp.validatable.svelte +86 -50
- package/dist/ui/validatable/cmp.validatable.svelte.d.ts +72 -28
- package/dist/ui/validatable/cmp.validation-error.svelte +8 -45
- package/dist/ui/validatable/cmp.validation-error.svelte.d.ts +3 -8
- package/dist/ui/validatable/index.d.ts +1 -0
- package/dist/ui/video/cmp.video.svelte +7 -7
- package/dist/ui/visual-select/cmp.visual-select.svelte +154 -0
- package/dist/ui/visual-select/cmp.visual-select.svelte.d.ts +78 -0
- package/dist/ui/visual-select/index.d.ts +1 -0
- package/dist/ui/visual-select/index.js +1 -0
- package/dist/ui/website-input/cmp.website-input.svelte +78 -0
- package/dist/ui/website-input/cmp.website-input.svelte.d.ts +25 -0
- package/dist/ui/website-input/index.d.ts +1 -0
- package/dist/ui/website-input/index.js +1 -0
- package/dist/ui/website-input/website-input-localization.d.ts +3 -0
- package/dist/ui/website-input/website-input-localization.js +12 -0
- package/package.json +240 -89
- package/dist/core/toastr/index.d.ts +0 -3
- package/dist/core/toastr/index.js +0 -2
- package/dist/core/toastr/toaster-host.svelte.d.ts +0 -7
- package/dist/core/toastr/toaster-host.svelte.js +0 -41
- package/dist/core/toastr/toastr.scss +0 -66
- package/dist/core/toastr/toastr.svelte.d.ts +0 -8
- package/dist/core/toastr/toastr.svelte.js +0 -30
- package/dist/core/toastr/types.d.ts +0 -16
- package/dist/styles/_colors.scss +0 -126
- package/dist/styles/_form-group.scss +0 -37
- package/dist/styles/_input.scss +0 -100
- package/dist/styles/_row.scss +0 -81
- package/dist/styles/_theme.scss +0 -68
- package/dist/ui/button/cmp.options-button.svelte +0 -214
- package/dist/ui/button/cmp.options-button.svelte.d.ts +0 -38
- package/dist/ui/button/resources/button-base.svelte +0 -81
- package/dist/ui/button/resources/button-base.svelte.d.ts +0 -13
- package/dist/ui/button/resources/button-theme.svelte +0 -335
- package/dist/ui/button/resources/button-theme.svelte.d.ts +0 -10
- package/dist/ui/button/resources/types.d.ts +0 -2
- package/dist/ui/checkbox/cmp.three-state-checkbox.svelte +0 -117
- package/dist/ui/checkbox/cmp.three-state-checkbox.svelte.d.ts +0 -37
- package/dist/ui/checkbox/types.d.ts +0 -1
- package/dist/ui/datetime-picker/cmp.datetime-picker.svelte +0 -292
- package/dist/ui/datetime-picker/cmp.datetime-picker.svelte.d.ts +0 -37
- package/dist/ui/datetime-picker/datetime-picker-localization.d.ts +0 -5
- package/dist/ui/datetime-picker/datetime-picker-localization.js +0 -26
- package/dist/ui/datetime-picker/flatpickr-theme.d.ts +0 -1
- package/dist/ui/datetime-picker/flatpickr-theme.js +0 -13
- package/dist/ui/datetime-picker/index.d.ts +0 -2
- package/dist/ui/datetime-picker/index.js +0 -1
- package/dist/ui/datetime-picker/types.d.ts +0 -16
- package/dist/ui/dialog/dialog-mount.d.ts +0 -3
- package/dist/ui/dialog/dialog-mount.js +0 -19
- package/dist/ui/dialog/dialogs.svelte.d.ts +0 -16
- package/dist/ui/dialog/dialogs.svelte.js +0 -86
- package/dist/ui/dropdown/cmp.dropdown-item.svelte +0 -93
- package/dist/ui/dropdown/cmp.dropdown-item.svelte.d.ts +0 -32
- package/dist/ui/dropdown/cmp.dropdown.svelte +0 -289
- package/dist/ui/dropdown/cmp.dropdown.svelte.d.ts +0 -48
- package/dist/ui/dropdown/index.d.ts +0 -4
- package/dist/ui/dropdown/index.js +0 -3
- package/dist/ui/form-group/cmp.form-group-label.svelte +0 -25
- package/dist/ui/form-group/cmp.form-group-note.svelte +0 -16
- package/dist/ui/form-group/cmp.form-group.svelte +0 -16
- package/dist/ui/form-group/index.d.ts +0 -3
- package/dist/ui/form-group/index.js +0 -3
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte +0 -101
- package/dist/ui/infinite-scrolling/cmp.infinite-scrolling.svelte.d.ts +0 -25
- package/dist/ui/infinite-scrolling/index.d.ts +0 -1
- package/dist/ui/infinite-scrolling/index.js +0 -1
- package/dist/ui/inputs/index.d.ts +0 -6
- package/dist/ui/inputs/index.js +0 -5
- package/dist/ui/inputs/input/cmp.input-validatable.svelte +0 -57
- package/dist/ui/inputs/input/cmp.input-validatable.svelte.d.ts +0 -57
- package/dist/ui/inputs/input/cmp.input.svelte +0 -241
- package/dist/ui/inputs/input/cmp.input.svelte.d.ts +0 -61
- package/dist/ui/inputs/input/index.d.ts +0 -2
- package/dist/ui/inputs/input/index.js +0 -2
- package/dist/ui/inputs/input-emoji-picker/cmp.input-emoji-picker.svelte +0 -44
- package/dist/ui/inputs/input-emoji-picker/cmp.input-emoji-picker.svelte.d.ts +0 -9
- package/dist/ui/inputs/input-emoji-picker/input-emoji-picker-container.d.ts +0 -2
- package/dist/ui/inputs/input-emoji-picker/input-emoji-picker-container.js +0 -16
- package/dist/ui/inputs/numeral-input/cmp.numeral-input-validatable.svelte +0 -55
- package/dist/ui/inputs/numeral-input/cmp.numeral-input-validatable.svelte.d.ts +0 -62
- package/dist/ui/inputs/numeral-input/cmp.numeral-input.svelte +0 -254
- package/dist/ui/inputs/numeral-input/cmp.numeral-input.svelte.d.ts +0 -66
- package/dist/ui/inputs/numeral-input/index.d.ts +0 -2
- package/dist/ui/inputs/numeral-input/index.js +0 -2
- package/dist/ui/inputs/pin-input/cmp.pin-input.svelte +0 -58
- package/dist/ui/inputs/pin-input/cmp.pin-input.svelte.d.ts +0 -23
- package/dist/ui/inputs/pin-input/pin-input-generator.d.ts +0 -27
- package/dist/ui/inputs/pin-input/pin-input-generator.js +0 -114
- package/dist/ui/inputs/rich-text-input/cmp.rich-text-input.svelte +0 -55
- package/dist/ui/inputs/rich-text-input/cmp.rich-text-input.svelte.d.ts +0 -43
- package/dist/ui/inputs/rich-text-input/tinymce-input.svelte +0 -252
- package/dist/ui/inputs/rich-text-input/tinymce-input.svelte.d.ts +0 -25
- package/dist/ui/inputs/rich-text-input/tinymce.declarations.d.ts +0 -7
- package/dist/ui/inputs/textarea/cmp.textarea-validatable.svelte +0 -35
- package/dist/ui/inputs/textarea/cmp.textarea-validatable.svelte.d.ts +0 -54
- package/dist/ui/inputs/textarea/cmp.textarea.svelte +0 -249
- package/dist/ui/inputs/textarea/cmp.textarea.svelte.d.ts +0 -58
- package/dist/ui/inputs/textarea/index.d.ts +0 -2
- package/dist/ui/inputs/textarea/index.js +0 -2
- package/dist/ui/loading/cmp.loading.svelte +0 -93
- package/dist/ui/loading/cmp.loading.svelte.d.ts +0 -22
- package/dist/ui/loading/index.d.ts +0 -1
- package/dist/ui/loading/index.js +0 -1
- package/dist/ui/multiselect-dropdown/cmp.checkbox-node.svelte +0 -76
- package/dist/ui/multiselect-dropdown/cmp.checkbox-node.svelte.d.ts +0 -14
- package/dist/ui/multiselect-dropdown/cmp.multiselect-dropdown.svelte +0 -276
- package/dist/ui/multiselect-dropdown/cmp.multiselect-dropdown.svelte.d.ts +0 -45
- package/dist/ui/multiselect-dropdown/index.d.ts +0 -3
- package/dist/ui/multiselect-dropdown/index.js +0 -2
- package/dist/ui/multiselect-dropdown/mapper.d.ts +0 -3
- package/dist/ui/multiselect-dropdown/mapper.js +0 -39
- package/dist/ui/multiselect-dropdown/multiselect-dropdown-localization.d.ts +0 -11
- package/dist/ui/multiselect-dropdown/multiselect-dropdown-localization.js +0 -41
- package/dist/ui/multiselect-dropdown/types.d.ts +0 -10
- package/dist/ui/page-toolbar/cmp.toolbar-button-item.svelte +0 -34
- package/dist/ui/page-toolbar/cmp.toolbar-dropdown.svelte +0 -29
- package/dist/ui/page-toolbar/cmp.toolbar-dropdown.svelte.d.ts +0 -17
- package/dist/ui/placeholder/cmp.placeholder.svelte +0 -65
- package/dist/ui/placeholder/cmp.placeholder.svelte.d.ts +0 -19
- package/dist/ui/placeholder/index.d.ts +0 -1
- package/dist/ui/placeholder/index.js +0 -1
- package/dist/ui/selects/_multiselect.scss +0 -282
- package/dist/ui/selects/_singleselect.scss +0 -176
- package/dist/ui/selects/cmp.multiselect.svelte +0 -531
- package/dist/ui/selects/cmp.multiselect.svelte.d.ts +0 -87
- package/dist/ui/selects/cmp.search-multiselect.svelte +0 -533
- package/dist/ui/selects/cmp.search-multiselect.svelte.d.ts +0 -69
- package/dist/ui/selects/cmp.singleselect.svelte +0 -386
- package/dist/ui/selects/cmp.singleselect.svelte.d.ts +0 -80
- package/dist/ui/selects/index.d.ts +0 -5
- package/dist/ui/selects/index.js +0 -4
- package/dist/ui/selects/select-localization.d.ts +0 -6
- package/dist/ui/selects/select-localization.js +0 -27
- package/dist/ui/selects/types.d.ts +0 -29
- package/dist/ui/tooltip/types.d.ts +0 -2
- package/dist/ui/validatable/_validatable.scss +0 -34
- /package/dist/core/{toastr/types.js → files/file-validation-types.js} +0 -0
- /package/dist/{ui/button/resources/types.js → core/files/upload-types.js} +0 -0
- /package/dist/ui/{checkbox → breadcrumb}/types.js +0 -0
- /package/dist/ui/{datetime-picker → button}/types.js +0 -0
- /package/dist/ui/{inputs/rich-text-input → chip-group}/types.js +0 -0
- /package/dist/ui/{multiselect-dropdown → date-picker}/types.js +0 -0
- /package/dist/ui/{selects → drag-and-drop}/types.js +0 -0
- /package/dist/ui/{tooltip → grid-card}/types.js +0 -0
- /package/dist/ui/{inputs/pin-input → pin-input}/index.d.ts +0 -0
- /package/dist/ui/{inputs/pin-input → pin-input}/index.js +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/index.d.ts +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/index.js +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/rich-text-input-localization.d.ts +0 -0
- /package/dist/ui/{inputs/rich-text-input → rich-text-input}/types.d.ts +0 -0
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
<script lang="ts">import { Icon } from '../icon';
|
|
2
|
-
import { isIgnored } from './dropdown-ignore';
|
|
3
|
-
import IconChevronDown from '@fluentui/svg-icons/icons/chevron_down_20_regular.svg?raw';
|
|
4
|
-
import { createPopper } from '@popperjs/core';
|
|
5
|
-
import { untrack } from 'svelte';
|
|
6
|
-
let { position = 'bottom-start', disabled = false, keepDropdownOpen = false, fixedPosition = false, offset = 4, boundaryMargin = 8, backdrop = false, isOpenRequested, matchTriggerWidth = false, panel = true, on, children, trigger } = $props();
|
|
7
|
-
let opened = $state(false);
|
|
8
|
-
let dropdownEl = $state(null);
|
|
9
|
-
let triggerEl = $state(null);
|
|
10
|
-
let actualPlacement = $state(untrack(() => position));
|
|
11
|
-
$effect(() => untrack(() => {
|
|
12
|
-
on?.mounted?.({
|
|
13
|
-
toggleOpen: (value) => {
|
|
14
|
-
if (value === undefined) {
|
|
15
|
-
if (opened) {
|
|
16
|
-
close();
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
open();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
else if (value) {
|
|
23
|
-
open();
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
close();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}));
|
|
31
|
-
$effect(() => {
|
|
32
|
-
if (opened) {
|
|
33
|
-
on?.opened?.();
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
on?.closed?.();
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
untrack(() => {
|
|
40
|
-
if (isOpenRequested) {
|
|
41
|
-
open();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
$effect(() => {
|
|
45
|
-
return () => {
|
|
46
|
-
window.removeEventListener('pointerdown', handleOutsidePointerDown, true);
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
const handleOutsidePointerDown = (event) => {
|
|
50
|
-
if (dropdownEl?.contains(event.target)) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
close();
|
|
54
|
-
};
|
|
55
|
-
const open = () => {
|
|
56
|
-
opened = true;
|
|
57
|
-
window.addEventListener('pointerdown', handleOutsidePointerDown, true);
|
|
58
|
-
};
|
|
59
|
-
const close = () => {
|
|
60
|
-
opened = false;
|
|
61
|
-
window.removeEventListener('pointerdown', handleOutsidePointerDown, true);
|
|
62
|
-
};
|
|
63
|
-
const handleClick = (event) => {
|
|
64
|
-
event.stopPropagation();
|
|
65
|
-
if (disabled) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
if (!opened) {
|
|
69
|
-
open();
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const target = event.target;
|
|
73
|
-
const isTriggerClick = triggerEl?.contains(target) ?? false;
|
|
74
|
-
if (isTriggerClick || canClose(target, event.currentTarget)) {
|
|
75
|
-
close();
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
const canClose = (target, container) => {
|
|
79
|
-
if (keepDropdownOpen) {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
let node = target;
|
|
83
|
-
while (node && node !== container) {
|
|
84
|
-
if (isIgnored(node)) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
node = node.parentElement;
|
|
88
|
-
}
|
|
89
|
-
return true;
|
|
90
|
-
};
|
|
91
|
-
const initPopper = (node) => {
|
|
92
|
-
if (!triggerEl) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const popper = createPopper(triggerEl, node, {
|
|
96
|
-
placement: position,
|
|
97
|
-
strategy: fixedPosition ? 'fixed' : 'absolute',
|
|
98
|
-
modifiers: [
|
|
99
|
-
{
|
|
100
|
-
name: 'offset',
|
|
101
|
-
options: {
|
|
102
|
-
offset: () => [0, offset]
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{ name: 'eventListeners', enabled: true },
|
|
106
|
-
{ name: 'flip' },
|
|
107
|
-
{
|
|
108
|
-
name: 'preventOverflow',
|
|
109
|
-
options: {
|
|
110
|
-
boundary: document.body,
|
|
111
|
-
padding: boundaryMargin
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'sameWidth',
|
|
116
|
-
enabled: matchTriggerWidth,
|
|
117
|
-
phase: 'beforeWrite',
|
|
118
|
-
requires: ['computeStyles'],
|
|
119
|
-
fn: ({ state }) => {
|
|
120
|
-
state.styles.popper.width = `${state.rects.reference.width}px`;
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'syncPlacement',
|
|
125
|
-
enabled: true,
|
|
126
|
-
phase: 'afterWrite',
|
|
127
|
-
fn: ({ state }) => {
|
|
128
|
-
actualPlacement = state.placement;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
});
|
|
133
|
-
return {
|
|
134
|
-
destroy() {
|
|
135
|
-
popper.destroy();
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
</script>
|
|
140
|
-
|
|
141
|
-
{#if opened && backdrop}
|
|
142
|
-
<div
|
|
143
|
-
class="dropdown-backdrop"
|
|
144
|
-
onclick={(e) => {
|
|
145
|
-
e.stopPropagation();
|
|
146
|
-
close();
|
|
147
|
-
}}
|
|
148
|
-
onkeydown={() => ({})}
|
|
149
|
-
role="none">
|
|
150
|
-
</div>
|
|
151
|
-
{/if}
|
|
152
|
-
<div class="dropdown" class:dropdown--disabled={disabled} bind:this={dropdownEl} onclick={handleClick} onkeydown={() => ({})} role="none">
|
|
153
|
-
<button type="button" class="dropdown__trigger" bind:this={triggerEl}>
|
|
154
|
-
{#if trigger}
|
|
155
|
-
{@render trigger()}
|
|
156
|
-
{:else}
|
|
157
|
-
<Icon src={IconChevronDown} />
|
|
158
|
-
{/if}
|
|
159
|
-
</button>
|
|
160
|
-
{#if opened}
|
|
161
|
-
<div use:initPopper class="dropdown__popper" data-placement={actualPlacement} role="tooltip" tabindex="-1">
|
|
162
|
-
<div class="dropdown__content" class:dropdown__content--match-width={matchTriggerWidth} class:dropdown__content--panel={panel}>
|
|
163
|
-
{@render children()}
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
{/if}
|
|
167
|
-
</div>
|
|
168
|
-
|
|
169
|
-
<!--
|
|
170
|
-
@component
|
|
171
|
-
A Popper.js-powered dropdown that positions content relative to a trigger element, with click-outside-to-close, optional backdrop, imperative open/close control, and optional trigger-width matching. Includes built-in panel styling (background, shadow, radius) enabled by default.
|
|
172
|
-
|
|
173
|
-
### CSS Custom Properties
|
|
174
|
-
| Property | Description | Default |
|
|
175
|
-
|---|---|---|
|
|
176
|
-
| `--sc-kit--dropdown--width` | Trigger element width | `auto` |
|
|
177
|
-
| `--sc-kit--dropdown--content--background` | Content background | light-dark white/gray-900 |
|
|
178
|
-
| `--sc-kit--dropdown--content--box-shadow` | Content shadow | `0 2px 10px` light/dark |
|
|
179
|
-
| `--sc-kit--dropdown--content--border-radius` | Content corner radius | `0` |
|
|
180
|
-
-->
|
|
181
|
-
|
|
182
|
-
<style>.dropdown-backdrop {
|
|
183
|
-
position: fixed;
|
|
184
|
-
inset: 0;
|
|
185
|
-
background: light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.1));
|
|
186
|
-
z-index: 998;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.dropdown {
|
|
190
|
-
--_dropdown--width: var(--sc-kit--dropdown--width, auto);
|
|
191
|
-
--_dropdown--content--background: var(--sc-kit--dropdown--content--background);
|
|
192
|
-
--_dropdown--content--box-shadow: var(--sc-kit--dropdown--content--box-shadow);
|
|
193
|
-
--_dropdown--content--border-radius: var(--sc-kit--dropdown--content--border-radius);
|
|
194
|
-
height: 100%;
|
|
195
|
-
width: var(--_dropdown--width);
|
|
196
|
-
-webkit-user-drag: none;
|
|
197
|
-
user-select: none;
|
|
198
|
-
}
|
|
199
|
-
.dropdown :global([contenteditable]) {
|
|
200
|
-
user-select: text;
|
|
201
|
-
}
|
|
202
|
-
.dropdown__trigger {
|
|
203
|
-
height: 100%;
|
|
204
|
-
width: 100%;
|
|
205
|
-
display: flex;
|
|
206
|
-
align-items: center;
|
|
207
|
-
line-height: 1;
|
|
208
|
-
}
|
|
209
|
-
.dropdown--disabled {
|
|
210
|
-
opacity: 0.5;
|
|
211
|
-
pointer-events: none;
|
|
212
|
-
}
|
|
213
|
-
.dropdown__popper {
|
|
214
|
-
z-index: 999;
|
|
215
|
-
--_dd-origin-y: top;
|
|
216
|
-
--_dd-shift-x: 0;
|
|
217
|
-
--_dd-shift-y: -4px;
|
|
218
|
-
--_dd-origin-x: left;
|
|
219
|
-
}
|
|
220
|
-
.dropdown__popper[data-placement=bottom] {
|
|
221
|
-
--_dd-origin-x: center;
|
|
222
|
-
}
|
|
223
|
-
.dropdown__popper[data-placement=bottom-end] {
|
|
224
|
-
--_dd-origin-x: right;
|
|
225
|
-
}
|
|
226
|
-
.dropdown__popper[data-placement^=top] {
|
|
227
|
-
--_dd-origin-y: bottom;
|
|
228
|
-
--_dd-shift-y: 4px;
|
|
229
|
-
}
|
|
230
|
-
.dropdown__popper[data-placement=top] {
|
|
231
|
-
--_dd-origin-x: center;
|
|
232
|
-
}
|
|
233
|
-
.dropdown__popper[data-placement=top-end] {
|
|
234
|
-
--_dd-origin-x: right;
|
|
235
|
-
}
|
|
236
|
-
.dropdown__popper[data-placement^=left] {
|
|
237
|
-
--_dd-origin-x: right;
|
|
238
|
-
--_dd-origin-y: top;
|
|
239
|
-
--_dd-shift-x: 4px;
|
|
240
|
-
--_dd-shift-y: 0;
|
|
241
|
-
}
|
|
242
|
-
.dropdown__popper[data-placement=left] {
|
|
243
|
-
--_dd-origin-y: center;
|
|
244
|
-
}
|
|
245
|
-
.dropdown__popper[data-placement=left-end] {
|
|
246
|
-
--_dd-origin-y: bottom;
|
|
247
|
-
}
|
|
248
|
-
.dropdown__popper[data-placement^=right] {
|
|
249
|
-
--_dd-origin-x: left;
|
|
250
|
-
--_dd-origin-y: top;
|
|
251
|
-
--_dd-shift-x: -4px;
|
|
252
|
-
--_dd-shift-y: 0;
|
|
253
|
-
}
|
|
254
|
-
.dropdown__popper[data-placement=right] {
|
|
255
|
-
--_dd-origin-y: center;
|
|
256
|
-
}
|
|
257
|
-
.dropdown__popper[data-placement=right-end] {
|
|
258
|
-
--_dd-origin-y: bottom;
|
|
259
|
-
}
|
|
260
|
-
.dropdown__content {
|
|
261
|
-
width: max-content;
|
|
262
|
-
transform-origin: var(--_dd-origin-x) var(--_dd-origin-y);
|
|
263
|
-
animation: dropdown-appear 150ms cubic-bezier(0, 0, 0.2, 1) both;
|
|
264
|
-
background: var(--_dropdown--content--background);
|
|
265
|
-
box-shadow: var(--_dropdown--content--box-shadow);
|
|
266
|
-
border-radius: var(--_dropdown--content--border-radius);
|
|
267
|
-
}
|
|
268
|
-
.dropdown__content--match-width {
|
|
269
|
-
width: 100%;
|
|
270
|
-
}
|
|
271
|
-
.dropdown__content--panel {
|
|
272
|
-
--_dropdown--content--background: var(--sc-kit--dropdown--content--background, light-dark(#ffffff, #1c1c1c));
|
|
273
|
-
--_dropdown--content--box-shadow: var(--sc-kit--dropdown--content--box-shadow, 0 2px 10px light-dark(rgb(0 0 0 / 15%), rgb(255 255 255 / 20%)));
|
|
274
|
-
--_dropdown--content--border-radius: var(--sc-kit--dropdown--content--border-radius, 0);
|
|
275
|
-
}
|
|
276
|
-
.dropdown :global([data-popper-escaped]) {
|
|
277
|
-
visibility: hidden !important;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
@keyframes dropdown-appear {
|
|
281
|
-
from {
|
|
282
|
-
opacity: 0;
|
|
283
|
-
transform: scale(0.95) translate(var(--_dd-shift-x), var(--_dd-shift-y));
|
|
284
|
-
}
|
|
285
|
-
to {
|
|
286
|
-
opacity: 1;
|
|
287
|
-
transform: scale(1) translate(0, 0);
|
|
288
|
-
}
|
|
289
|
-
}</style>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { type Placement } from '@popperjs/core';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
type Props = {
|
|
4
|
-
/** Popper.js placement of the dropdown content @default 'bottom-start' */
|
|
5
|
-
position?: Placement;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
/** Prevent the dropdown from closing when clicking inside its content */
|
|
8
|
-
keepDropdownOpen?: boolean;
|
|
9
|
-
/** Use `position: fixed` for the Popper strategy (useful inside overflow containers) */
|
|
10
|
-
fixedPosition?: boolean;
|
|
11
|
-
/** Distance in px between the trigger and the dropdown content @default 4 */
|
|
12
|
-
offset?: number;
|
|
13
|
-
/** Padding in px from the viewport boundary @default 8 */
|
|
14
|
-
boundaryMargin?: number;
|
|
15
|
-
/** Show a semi-transparent backdrop overlay when open */
|
|
16
|
-
backdrop?: boolean;
|
|
17
|
-
/** Programmatically request the dropdown to open */
|
|
18
|
-
isOpenRequested?: boolean;
|
|
19
|
-
/** Make the popper content match the trigger element width */
|
|
20
|
-
matchTriggerWidth?: boolean;
|
|
21
|
-
/** Apply content styling (background, box-shadow, border-radius) @default true */
|
|
22
|
-
panel?: boolean;
|
|
23
|
-
on?: {
|
|
24
|
-
opened?: () => void;
|
|
25
|
-
closed?: () => void;
|
|
26
|
-
/** Fires after mount, providing a `toggleOpen` callback for imperative control */
|
|
27
|
-
mounted?: (callbacks: {
|
|
28
|
-
toggleOpen: (value?: boolean) => void;
|
|
29
|
-
}) => void;
|
|
30
|
-
};
|
|
31
|
-
children: Snippet;
|
|
32
|
-
/** Custom trigger snippet; defaults to a chevron-down icon */
|
|
33
|
-
trigger?: Snippet;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* A Popper.js-powered dropdown that positions content relative to a trigger element, with click-outside-to-close, optional backdrop, imperative open/close control, and optional trigger-width matching. Includes built-in panel styling (background, shadow, radius) enabled by default.
|
|
37
|
-
*
|
|
38
|
-
* ### CSS Custom Properties
|
|
39
|
-
* | Property | Description | Default |
|
|
40
|
-
* |---|---|---|
|
|
41
|
-
* | `--sc-kit--dropdown--width` | Trigger element width | `auto` |
|
|
42
|
-
* | `--sc-kit--dropdown--content--background` | Content background | light-dark white/gray-900 |
|
|
43
|
-
* | `--sc-kit--dropdown--content--box-shadow` | Content shadow | `0 2px 10px` light/dark |
|
|
44
|
-
* | `--sc-kit--dropdown--content--border-radius` | Content corner radius | `0` |
|
|
45
|
-
*/
|
|
46
|
-
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
47
|
-
type Cmp = ReturnType<typeof Cmp>;
|
|
48
|
-
export default Cmp;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { withTooltip = false, children } = $props();
|
|
2
|
-
export {};
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="form-group-label" class:form-group-label--with-tooltip={withTooltip}>
|
|
6
|
-
{@render children()}
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<style>.form-group-label {
|
|
10
|
-
--_form-group--label--font-size: var(--sc-kit--form-group--label--font-size, 0.875rem);
|
|
11
|
-
--_form-group--label--font-weight: var(--sc-kit--form-group--label--font-weight, 400);
|
|
12
|
-
--_form-group--label--color: var(--sc-kit--form-group--label--color);
|
|
13
|
-
--_form-group--label--margin-bottom: var(--sc-kit--form-group--label--margin-bottom, 0.5rem);
|
|
14
|
-
font-size: var(--_form-group--label--font-size);
|
|
15
|
-
padding: 0;
|
|
16
|
-
margin-bottom: var(--_form-group--label--margin-bottom);
|
|
17
|
-
font-weight: var(--_form-group--label--font-weight);
|
|
18
|
-
display: block;
|
|
19
|
-
color: var(--_form-group--label--color);
|
|
20
|
-
}
|
|
21
|
-
.form-group-label--with-tooltip {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
gap: 0.25rem;
|
|
25
|
-
}</style>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { children } = $props();
|
|
2
|
-
export {};
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="form-group-note">
|
|
6
|
-
{@render children()}
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<style>.form-group-note {
|
|
10
|
-
--_form-group--note--font-size: var(--sc-kit--form-group--note--font-size, 0.875rem);
|
|
11
|
-
--_form-group--note--font-weight: var(--sc-kit--form-group--note--font-weight, 300);
|
|
12
|
-
margin-top: 0.5rem;
|
|
13
|
-
color: #9ca3af;
|
|
14
|
-
font-size: var(--_form-group--note--font-size);
|
|
15
|
-
font-weight: var(--_form-group--note--font-weight);
|
|
16
|
-
}</style>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script lang="ts">let { noMargin = false, children } = $props();
|
|
2
|
-
export {};
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="form-group" class:form-group--no-margin={noMargin}>
|
|
6
|
-
{@render children()}
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<style>.form-group {
|
|
10
|
-
--_form-group--margin-bottom: var(--sc-kit--form-group--margin-bottom, 1.25rem);
|
|
11
|
-
display: block;
|
|
12
|
-
margin-bottom: var(--_form-group--margin-bottom);
|
|
13
|
-
}
|
|
14
|
-
.form-group--no-margin {
|
|
15
|
-
margin-bottom: 0;
|
|
16
|
-
}</style>
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<script lang="ts">import { Loading } from '../loading';
|
|
2
|
-
let { loadMore, container = null, actuationOffset = '', children, loading } = $props();
|
|
3
|
-
let isLoading = $state(false);
|
|
4
|
-
let paginationTrigger = $state(null);
|
|
5
|
-
let itemsContainer = $state(null);
|
|
6
|
-
$effect(() => {
|
|
7
|
-
if (!paginationTrigger || !itemsContainer) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
const trigger = paginationTrigger;
|
|
11
|
-
const items = itemsContainer;
|
|
12
|
-
const intersectionObserver = new IntersectionObserver((e) => {
|
|
13
|
-
const [entries] = e;
|
|
14
|
-
if (entries.isIntersecting) {
|
|
15
|
-
void onLoadMore();
|
|
16
|
-
}
|
|
17
|
-
}, {
|
|
18
|
-
root: container,
|
|
19
|
-
rootMargin: actuationOffset
|
|
20
|
-
});
|
|
21
|
-
// Re-observe trigger on container resize to force IntersectionObserver
|
|
22
|
-
// to re-evaluate visibility — it won't fire on its own when siblings resize
|
|
23
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
24
|
-
intersectionObserver.unobserve(trigger);
|
|
25
|
-
intersectionObserver.observe(trigger);
|
|
26
|
-
});
|
|
27
|
-
resizeObserver.observe(items);
|
|
28
|
-
return () => {
|
|
29
|
-
resizeObserver.disconnect();
|
|
30
|
-
intersectionObserver.disconnect();
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
const onLoadMore = async () => {
|
|
34
|
-
if (isLoading) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
isLoading = true;
|
|
38
|
-
try {
|
|
39
|
-
await loadMore();
|
|
40
|
-
}
|
|
41
|
-
finally {
|
|
42
|
-
isLoading = false;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<div class="infinite-scrolling">
|
|
48
|
-
<div class="infinite-scrolling__items" bind:this={itemsContainer}>
|
|
49
|
-
{@render children()}
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
<div class="infinite-scrolling__pagination-trigger" bind:this={paginationTrigger}></div>
|
|
53
|
-
{#if isLoading}
|
|
54
|
-
{#if loading}
|
|
55
|
-
{@render loading()}
|
|
56
|
-
{:else}
|
|
57
|
-
<div class="infinite-scrolling__loading-container">
|
|
58
|
-
<Loading timeout={500} />
|
|
59
|
-
</div>
|
|
60
|
-
{/if}
|
|
61
|
-
{/if}
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<!--
|
|
65
|
-
@component
|
|
66
|
-
Triggers an async `loadMore` callback when a sentinel element scrolls into view, using IntersectionObserver.
|
|
67
|
-
|
|
68
|
-
### CSS Custom Properties
|
|
69
|
-
| Property | Description | Default |
|
|
70
|
-
|---|---|---|
|
|
71
|
-
| `--sc-kit--infinite-scrolling--display` | Display mode for root and items container | `block` |
|
|
72
|
-
| `--sc-kit--infinite-scrolling--flex` | Flex shorthand for root and items container | `initial` |
|
|
73
|
-
| `--sc-kit--infinite-scrolling--overflow-y` | Vertical overflow behavior | `initial` |
|
|
74
|
-
-->
|
|
75
|
-
|
|
76
|
-
<style>.infinite-scrolling {
|
|
77
|
-
--_infinite-scrolling--display: var(--sc-kit--infinite-scrolling--display, block);
|
|
78
|
-
--_infinite-scrolling--flex: var(--sc-kit--infinite-scrolling--flex, initial);
|
|
79
|
-
--_infinite-scrolling--overflow-y: var(--sc-kit--infinite-scrolling--overflow-y, initial);
|
|
80
|
-
display: var(--_infinite-scrolling--display);
|
|
81
|
-
flex-direction: column;
|
|
82
|
-
flex: var(--_infinite-scrolling--flex);
|
|
83
|
-
overflow-y: var(--_infinite-scrolling--overflow-y);
|
|
84
|
-
min-height: 2.625em;
|
|
85
|
-
position: relative;
|
|
86
|
-
width: 100%;
|
|
87
|
-
}
|
|
88
|
-
.infinite-scrolling__items {
|
|
89
|
-
display: var(--_infinite-scrolling--display);
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
flex: var(--_infinite-scrolling--flex);
|
|
92
|
-
}
|
|
93
|
-
.infinite-scrolling__pagination-trigger {
|
|
94
|
-
border: 1px solid transparent;
|
|
95
|
-
}
|
|
96
|
-
.infinite-scrolling__loading-container {
|
|
97
|
-
position: absolute;
|
|
98
|
-
bottom: 0.3125em;
|
|
99
|
-
left: 50%;
|
|
100
|
-
transform: translateX(-50%);
|
|
101
|
-
}</style>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Snippet } from 'svelte';
|
|
2
|
-
type Props = {
|
|
3
|
-
/** Async callback invoked when the scroll trigger becomes visible */
|
|
4
|
-
loadMore: () => Promise<unknown>;
|
|
5
|
-
/** Scroll ancestor for IntersectionObserver root; required when viewport differs from scroll container */
|
|
6
|
-
container?: HTMLElement | null;
|
|
7
|
-
/** IntersectionObserver rootMargin to trigger loading before reaching the bottom */
|
|
8
|
-
actuationOffset?: string;
|
|
9
|
-
children: Snippet;
|
|
10
|
-
/** Custom loading indicator snippet; defaults to the built-in `Loading` spinner */
|
|
11
|
-
loading?: Snippet;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Triggers an async `loadMore` callback when a sentinel element scrolls into view, using IntersectionObserver.
|
|
15
|
-
*
|
|
16
|
-
* ### CSS Custom Properties
|
|
17
|
-
* | Property | Description | Default |
|
|
18
|
-
* |---|---|---|
|
|
19
|
-
* | `--sc-kit--infinite-scrolling--display` | Display mode for root and items container | `block` |
|
|
20
|
-
* | `--sc-kit--infinite-scrolling--flex` | Flex shorthand for root and items container | `initial` |
|
|
21
|
-
* | `--sc-kit--infinite-scrolling--overflow-y` | Vertical overflow behavior | `initial` |
|
|
22
|
-
*/
|
|
23
|
-
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
24
|
-
type Cmp = ReturnType<typeof Cmp>;
|
|
25
|
-
export default Cmp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as InfiniteScrolling } from './cmp.infinite-scrolling.svelte';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as InfiniteScrolling } from './cmp.infinite-scrolling.svelte';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { Input, InputValidatable } from './input';
|
|
2
|
-
export { NumeralInput, NumeralInputValidatable } from './numeral-input';
|
|
3
|
-
export { PinInput } from './pin-input';
|
|
4
|
-
export { RichTextInput } from './rich-text-input';
|
|
5
|
-
export type { RichTextInputOptions } from './rich-text-input';
|
|
6
|
-
export { Textarea, TextareaValidatable } from './textarea';
|
package/dist/ui/inputs/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { Input, InputValidatable } from './input';
|
|
2
|
-
export { NumeralInput, NumeralInputValidatable } from './numeral-input';
|
|
3
|
-
export { PinInput } from './pin-input';
|
|
4
|
-
export { RichTextInput } from './rich-text-input';
|
|
5
|
-
export { Textarea, TextareaValidatable } from './textarea';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<script lang="ts" generics="T extends Record<string, unknown>">import { Utils } from '../../../core/utils';
|
|
2
|
-
import { FormValidationHandler } from '../../../core/validation';
|
|
3
|
-
import { Validatable } from '../../validatable';
|
|
4
|
-
import { default as Input } from './cmp.input.svelte';
|
|
5
|
-
let { name, handler, id = undefined, type = 'text', debounce = 0, disabled = false, autofocus = false, placeholder = '', maxLength = null, clearable = false, validateOnChange = false, on, icon, clearButton } = $props();
|
|
6
|
-
let inputRef = null;
|
|
7
|
-
const onInput = (value) => {
|
|
8
|
-
if (!validateOnChange) {
|
|
9
|
-
handler.updateValidateField(name, value);
|
|
10
|
-
}
|
|
11
|
-
on?.input?.(value);
|
|
12
|
-
};
|
|
13
|
-
const onChange = (value) => {
|
|
14
|
-
if (validateOnChange) {
|
|
15
|
-
handler.updateValidateField(name, value);
|
|
16
|
-
}
|
|
17
|
-
on?.change?.(value);
|
|
18
|
-
};
|
|
19
|
-
const onBlur = () => {
|
|
20
|
-
if (inputRef) {
|
|
21
|
-
handler.updateValidateField(name, inputRef.value);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
const handleMounted = (input) => {
|
|
25
|
-
inputRef = input;
|
|
26
|
-
on?.mounted?.({ input });
|
|
27
|
-
};
|
|
28
|
-
const handleInputDebounced = $derived(debounce ? Utils.debounce(onInput, debounce) : onInput);
|
|
29
|
-
const handleChangeDebounced = $derived(debounce ? Utils.debounce(onChange, debounce) : onChange);
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<Validatable handler={handler} name={name}>
|
|
33
|
-
<Input
|
|
34
|
-
value={handler.form[name] as string | null | undefined}
|
|
35
|
-
name={name}
|
|
36
|
-
id={id}
|
|
37
|
-
type={type}
|
|
38
|
-
autofocus={autofocus}
|
|
39
|
-
disabled={disabled}
|
|
40
|
-
placeholder={placeholder}
|
|
41
|
-
maxLength={maxLength}
|
|
42
|
-
clearable={clearable}
|
|
43
|
-
title={!!handler.touched[name] && !!handler.errors[name] ? handler.errors[name] : ''}
|
|
44
|
-
on={{
|
|
45
|
-
input: handleInputDebounced,
|
|
46
|
-
change: handleChangeDebounced,
|
|
47
|
-
mounted: (e) => handleMounted(e.input),
|
|
48
|
-
blur: onBlur
|
|
49
|
-
}}
|
|
50
|
-
icon={icon}
|
|
51
|
-
clearButton={clearButton} />
|
|
52
|
-
</Validatable>
|
|
53
|
-
|
|
54
|
-
<!--
|
|
55
|
-
@component
|
|
56
|
-
Input wrapped with form validation. Validates on input or change based on `validateOnChange` prop.
|
|
57
|
-
-->
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { FormValidationHandler } from '../../../core/validation';
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
declare function $$render<T extends Record<string, unknown>>(): {
|
|
4
|
-
props: {
|
|
5
|
-
/** Field name in the form handler */
|
|
6
|
-
name: keyof T & string;
|
|
7
|
-
/** Form validation handler instance */
|
|
8
|
-
handler: FormValidationHandler<T>;
|
|
9
|
-
id?: string;
|
|
10
|
-
/** @default 'text' */
|
|
11
|
-
type?: "text" | "password";
|
|
12
|
-
/** Debounce delay in ms for input/change handlers @default 0 */
|
|
13
|
-
debounce?: number;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
autofocus?: boolean;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
maxLength?: number | null;
|
|
18
|
-
/** Show clear button when value is present */
|
|
19
|
-
clearable?: boolean;
|
|
20
|
-
/** Validate on change event instead of input @default false */
|
|
21
|
-
validateOnChange?: boolean;
|
|
22
|
-
on?: {
|
|
23
|
-
input?: (value: string) => void;
|
|
24
|
-
change?: (value: string) => void;
|
|
25
|
-
/** Fires after mount, provides the input element ref */
|
|
26
|
-
mounted?: (data: {
|
|
27
|
-
input: HTMLInputElement;
|
|
28
|
-
}) => void;
|
|
29
|
-
};
|
|
30
|
-
/** Left icon snippet */
|
|
31
|
-
icon?: Snippet;
|
|
32
|
-
/** Custom clear button snippet */
|
|
33
|
-
clearButton?: Snippet;
|
|
34
|
-
};
|
|
35
|
-
exports: {};
|
|
36
|
-
bindings: "";
|
|
37
|
-
slots: {};
|
|
38
|
-
events: {};
|
|
39
|
-
};
|
|
40
|
-
declare class __sveltets_Render<T extends Record<string, unknown>> {
|
|
41
|
-
props(): ReturnType<typeof $$render<T>>['props'];
|
|
42
|
-
events(): ReturnType<typeof $$render<T>>['events'];
|
|
43
|
-
slots(): ReturnType<typeof $$render<T>>['slots'];
|
|
44
|
-
bindings(): "";
|
|
45
|
-
exports(): {};
|
|
46
|
-
}
|
|
47
|
-
interface $$IsomorphicComponent {
|
|
48
|
-
new <T extends Record<string, unknown>>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<T>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<T>['props']>, ReturnType<__sveltets_Render<T>['events']>, ReturnType<__sveltets_Render<T>['slots']>> & {
|
|
49
|
-
$$bindings?: ReturnType<__sveltets_Render<T>['bindings']>;
|
|
50
|
-
} & ReturnType<__sveltets_Render<T>['exports']>;
|
|
51
|
-
<T extends Record<string, unknown>>(internal: unknown, props: ReturnType<__sveltets_Render<T>['props']> & {}): ReturnType<__sveltets_Render<T>['exports']>;
|
|
52
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
53
|
-
}
|
|
54
|
-
/** Input wrapped with form validation. Validates on input or change based on `validateOnChange` prop. */
|
|
55
|
-
declare const Cmp: $$IsomorphicComponent;
|
|
56
|
-
type Cmp<T extends Record<string, unknown>> = InstanceType<typeof Cmp<T>>;
|
|
57
|
-
export default Cmp;
|