@teranga-ds/components 0.1.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/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/cjs/index-BrBjyHdB.js +2038 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/teranga-ds.cjs.js +24 -0
- package/dist/cjs/tg-activity-feed.cjs.entry.js +29 -0
- package/dist/cjs/tg-activity-stream.cjs.entry.js +30 -0
- package/dist/cjs/tg-ai-feedback.cjs.entry.js +29 -0
- package/dist/cjs/tg-ai-insight-card.cjs.entry.js +20 -0
- package/dist/cjs/tg-alert.cjs.entry.js +42 -0
- package/dist/cjs/tg-audio-player.cjs.entry.js +46 -0
- package/dist/cjs/tg-autocomplete.cjs.entry.js +54 -0
- package/dist/cjs/tg-avatar.cjs.entry.js +39 -0
- package/dist/cjs/tg-badge.cjs.entry.js +31 -0
- package/dist/cjs/tg-bottom-nav.cjs.entry.js +30 -0
- package/dist/cjs/tg-bottom-sheet.cjs.entry.js +21 -0
- package/dist/cjs/tg-breadcrumb.cjs.entry.js +53 -0
- package/dist/cjs/tg-button.cjs.entry.js +45 -0
- package/dist/cjs/tg-calendar-view.cjs.entry.js +53 -0
- package/dist/cjs/tg-card.cjs.entry.js +31 -0
- package/dist/cjs/tg-chat-message.cjs.entry.js +19 -0
- package/dist/cjs/tg-chat.cjs.entry.js +59 -0
- package/dist/cjs/tg-checkbox.cjs.entry.js +31 -0
- package/dist/cjs/tg-combobox.cjs.entry.js +68 -0
- package/dist/cjs/tg-command-palette.cjs.entry.js +66 -0
- package/dist/cjs/tg-confidence-badge.cjs.entry.js +27 -0
- package/dist/cjs/tg-confirm-dialog.cjs.entry.js +27 -0
- package/dist/cjs/tg-context-menu.cjs.entry.js +35 -0
- package/dist/cjs/tg-data-table.cjs.entry.js +90 -0
- package/dist/cjs/tg-date-picker.cjs.entry.js +56 -0
- package/dist/cjs/tg-empty-state.cjs.entry.js +19 -0
- package/dist/cjs/tg-expandable-row.cjs.entry.js +19 -0
- package/dist/cjs/tg-fab.cjs.entry.js +22 -0
- package/dist/cjs/tg-file-upload.cjs.entry.js +86 -0
- package/dist/cjs/tg-global-loader.cjs.entry.js +24 -0
- package/dist/cjs/tg-heatmap.cjs.entry.js +65 -0
- package/dist/cjs/tg-image-gallery.cjs.entry.js +32 -0
- package/dist/cjs/tg-input.cjs.entry.js +51 -0
- package/dist/cjs/tg-kanban-board.cjs.entry.js +30 -0
- package/dist/cjs/tg-kpi-card.cjs.entry.js +20 -0
- package/dist/cjs/tg-live-badge.cjs.entry.js +20 -0
- package/dist/cjs/tg-login-form.cjs.entry.js +23 -0
- package/dist/cjs/tg-mega-menu.cjs.entry.js +34 -0
- package/dist/cjs/tg-modal.cjs.entry.js +43 -0
- package/dist/cjs/tg-model-selector.cjs.entry.js +34 -0
- package/dist/cjs/tg-multi-select.cjs.entry.js +67 -0
- package/dist/cjs/tg-navbar.cjs.entry.js +43 -0
- package/dist/cjs/tg-otp-input.cjs.entry.js +60 -0
- package/dist/cjs/tg-pagination.cjs.entry.js +53 -0
- package/dist/cjs/tg-presence-indicator.cjs.entry.js +33 -0
- package/dist/cjs/tg-progress.cjs.entry.js +53 -0
- package/dist/cjs/tg-prompt-input.cjs.entry.js +34 -0
- package/dist/cjs/tg-pull-to-refresh.cjs.entry.js +37 -0
- package/dist/cjs/tg-quick-switcher.cjs.entry.js +35 -0
- package/dist/cjs/tg-radio.cjs.entry.js +29 -0
- package/dist/cjs/tg-retry-ui.cjs.entry.js +22 -0
- package/dist/cjs/tg-rich-editor.cjs.entry.js +24 -0
- package/dist/cjs/tg-role-badge.cjs.entry.js +19 -0
- package/dist/cjs/tg-select.cjs.entry.js +69 -0
- package/dist/cjs/tg-session-expired.cjs.entry.js +24 -0
- package/dist/cjs/tg-sidebar.cjs.entry.js +35 -0
- package/dist/cjs/tg-skeleton.cjs.entry.js +30 -0
- package/dist/cjs/tg-slider.cjs.entry.js +26 -0
- package/dist/cjs/tg-source-citation.cjs.entry.js +29 -0
- package/dist/cjs/tg-spinner.cjs.entry.js +27 -0
- package/dist/cjs/tg-stat-widget.cjs.entry.js +19 -0
- package/dist/cjs/tg-status-badge.cjs.entry.js +21 -0
- package/dist/cjs/tg-stepper-input.cjs.entry.js +39 -0
- package/dist/cjs/tg-stepper.cjs.entry.js +31 -0
- package/dist/cjs/tg-streaming-response.cjs.entry.js +19 -0
- package/dist/cjs/tg-switch.cjs.entry.js +31 -0
- package/dist/cjs/tg-table.cjs.entry.js +113 -0
- package/dist/cjs/tg-tabs.cjs.entry.js +47 -0
- package/dist/cjs/tg-tag.cjs.entry.js +28 -0
- package/dist/cjs/tg-textarea.cjs.entry.js +45 -0
- package/dist/cjs/tg-time-picker.cjs.entry.js +37 -0
- package/dist/cjs/tg-timeline.cjs.entry.js +30 -0
- package/dist/cjs/tg-toast.cjs.entry.js +53 -0
- package/dist/cjs/tg-token-usage.cjs.entry.js +23 -0
- package/dist/cjs/tg-tooltip.cjs.entry.js +32 -0
- package/dist/cjs/tg-tree-view.cjs.entry.js +53 -0
- package/dist/cjs/tg-undo-snackbar.cjs.entry.js +30 -0
- package/dist/cjs/tg-video-player.cjs.entry.js +19 -0
- package/dist/cjs/tg-wizard-nav.cjs.entry.js +30 -0
- package/dist/collection/collection-manifest.json +91 -0
- package/dist/collection/components/tg-activity-feed/tg-activity-feed.css +10 -0
- package/dist/collection/components/tg-activity-feed/tg-activity-feed.js +81 -0
- package/dist/collection/components/tg-activity-stream/tg-activity-stream.css +11 -0
- package/dist/collection/components/tg-activity-stream/tg-activity-stream.js +83 -0
- package/dist/collection/components/tg-ai-feedback/tg-ai-feedback.css +12 -0
- package/dist/collection/components/tg-ai-feedback/tg-ai-feedback.js +80 -0
- package/dist/collection/components/tg-ai-insight-card/tg-ai-insight-card.css +10 -0
- package/dist/collection/components/tg-ai-insight-card/tg-ai-insight-card.js +144 -0
- package/dist/collection/components/tg-alert/tg-alert.css +122 -0
- package/dist/collection/components/tg-alert/tg-alert.js +142 -0
- package/dist/collection/components/tg-audio-player/tg-audio-player.css +11 -0
- package/dist/collection/components/tg-audio-player/tg-audio-player.js +118 -0
- package/dist/collection/components/tg-autocomplete/tg-autocomplete.css +15 -0
- package/dist/collection/components/tg-autocomplete/tg-autocomplete.js +285 -0
- package/dist/collection/components/tg-avatar/tg-avatar.css +72 -0
- package/dist/collection/components/tg-avatar/tg-avatar.js +195 -0
- package/dist/collection/components/tg-badge/tg-badge.css +153 -0
- package/dist/collection/components/tg-badge/tg-badge.js +128 -0
- package/dist/collection/components/tg-bottom-nav/tg-bottom-nav.css +7 -0
- package/dist/collection/components/tg-bottom-nav/tg-bottom-nav.js +99 -0
- package/dist/collection/components/tg-bottom-sheet/tg-bottom-sheet.css +8 -0
- package/dist/collection/components/tg-bottom-sheet/tg-bottom-sheet.js +84 -0
- package/dist/collection/components/tg-breadcrumb/tg-breadcrumb.css +82 -0
- package/dist/collection/components/tg-breadcrumb/tg-breadcrumb.js +111 -0
- package/dist/collection/components/tg-button/tg-button.css +245 -0
- package/dist/collection/components/tg-button/tg-button.js +239 -0
- package/dist/collection/components/tg-calendar-view/tg-calendar-view.css +19 -0
- package/dist/collection/components/tg-calendar-view/tg-calendar-view.js +108 -0
- package/dist/collection/components/tg-card/tg-card.css +117 -0
- package/dist/collection/components/tg-card/tg-card.js +134 -0
- package/dist/collection/components/tg-chat/tg-chat.css +207 -0
- package/dist/collection/components/tg-chat/tg-chat.js +194 -0
- package/dist/collection/components/tg-chat-message/tg-chat-message.css +15 -0
- package/dist/collection/components/tg-chat-message/tg-chat-message.js +104 -0
- package/dist/collection/components/tg-checkbox/tg-checkbox.css +94 -0
- package/dist/collection/components/tg-checkbox/tg-checkbox.js +210 -0
- package/dist/collection/components/tg-combobox/tg-combobox.css +22 -0
- package/dist/collection/components/tg-combobox/tg-combobox.js +290 -0
- package/dist/collection/components/tg-command-palette/tg-command-palette.css +16 -0
- package/dist/collection/components/tg-command-palette/tg-command-palette.js +152 -0
- package/dist/collection/components/tg-confidence-badge/tg-confidence-badge.css +12 -0
- package/dist/collection/components/tg-confidence-badge/tg-confidence-badge.js +93 -0
- package/dist/collection/components/tg-confirm-dialog/tg-confirm-dialog.css +19 -0
- package/dist/collection/components/tg-confirm-dialog/tg-confirm-dialog.js +204 -0
- package/dist/collection/components/tg-context-menu/tg-context-menu.css +12 -0
- package/dist/collection/components/tg-context-menu/tg-context-menu.js +107 -0
- package/dist/collection/components/tg-data-table/tg-data-table.css +19 -0
- package/dist/collection/components/tg-data-table/tg-data-table.js +287 -0
- package/dist/collection/components/tg-date-picker/tg-date-picker.css +28 -0
- package/dist/collection/components/tg-date-picker/tg-date-picker.js +251 -0
- package/dist/collection/components/tg-empty-state/tg-empty-state.css +7 -0
- package/dist/collection/components/tg-empty-state/tg-empty-state.js +123 -0
- package/dist/collection/components/tg-expandable-row/tg-expandable-row.css +13 -0
- package/dist/collection/components/tg-expandable-row/tg-expandable-row.js +89 -0
- package/dist/collection/components/tg-fab/tg-fab.css +16 -0
- package/dist/collection/components/tg-fab/tg-fab.js +164 -0
- package/dist/collection/components/tg-file-upload/tg-file-upload.css +172 -0
- package/dist/collection/components/tg-file-upload/tg-file-upload.js +240 -0
- package/dist/collection/components/tg-global-loader/tg-global-loader.css +8 -0
- package/dist/collection/components/tg-global-loader/tg-global-loader.js +90 -0
- package/dist/collection/components/tg-heatmap/tg-heatmap.css +9 -0
- package/dist/collection/components/tg-heatmap/tg-heatmap.js +191 -0
- package/dist/collection/components/tg-image-gallery/tg-image-gallery.css +13 -0
- package/dist/collection/components/tg-image-gallery/tg-image-gallery.js +90 -0
- package/dist/collection/components/tg-input/tg-input.css +164 -0
- package/dist/collection/components/tg-input/tg-input.js +355 -0
- package/dist/collection/components/tg-kanban-board/tg-kanban-board.css +14 -0
- package/dist/collection/components/tg-kanban-board/tg-kanban-board.js +80 -0
- package/dist/collection/components/tg-kpi-card/tg-kpi-card.css +17 -0
- package/dist/collection/components/tg-kpi-card/tg-kpi-card.js +163 -0
- package/dist/collection/components/tg-live-badge/tg-live-badge.css +11 -0
- package/dist/collection/components/tg-live-badge/tg-live-badge.js +87 -0
- package/dist/collection/components/tg-login-form/tg-login-form.css +16 -0
- package/dist/collection/components/tg-login-form/tg-login-form.js +150 -0
- package/dist/collection/components/tg-mega-menu/tg-mega-menu.css +19 -0
- package/dist/collection/components/tg-mega-menu/tg-mega-menu.js +82 -0
- package/dist/collection/components/tg-modal/tg-modal.css +132 -0
- package/dist/collection/components/tg-modal/tg-modal.js +180 -0
- package/dist/collection/components/tg-model-selector/tg-model-selector.css +15 -0
- package/dist/collection/components/tg-model-selector/tg-model-selector.js +117 -0
- package/dist/collection/components/tg-multi-select/tg-multi-select.css +22 -0
- package/dist/collection/components/tg-multi-select/tg-multi-select.js +251 -0
- package/dist/collection/components/tg-navbar/tg-navbar.css +144 -0
- package/dist/collection/components/tg-navbar/tg-navbar.js +159 -0
- package/dist/collection/components/tg-otp-input/tg-otp-input.css +10 -0
- package/dist/collection/components/tg-otp-input/tg-otp-input.js +221 -0
- package/dist/collection/components/tg-pagination/tg-pagination.css +73 -0
- package/dist/collection/components/tg-pagination/tg-pagination.js +137 -0
- package/dist/collection/components/tg-presence-indicator/tg-presence-indicator.css +10 -0
- package/dist/collection/components/tg-presence-indicator/tg-presence-indicator.js +80 -0
- package/dist/collection/components/tg-progress/tg-progress.css +142 -0
- package/dist/collection/components/tg-progress/tg-progress.js +299 -0
- package/dist/collection/components/tg-prompt-input/tg-prompt-input.css +11 -0
- package/dist/collection/components/tg-prompt-input/tg-prompt-input.js +142 -0
- package/dist/collection/components/tg-pull-to-refresh/tg-pull-to-refresh.css +7 -0
- package/dist/collection/components/tg-pull-to-refresh/tg-pull-to-refresh.js +127 -0
- package/dist/collection/components/tg-quick-switcher/tg-quick-switcher.css +12 -0
- package/dist/collection/components/tg-quick-switcher/tg-quick-switcher.js +120 -0
- package/dist/collection/components/tg-radio/tg-radio.css +83 -0
- package/dist/collection/components/tg-radio/tg-radio.js +169 -0
- package/dist/collection/components/tg-retry-ui/tg-retry-ui.css +10 -0
- package/dist/collection/components/tg-retry-ui/tg-retry-ui.js +145 -0
- package/dist/collection/components/tg-rich-editor/tg-rich-editor.css +10 -0
- package/dist/collection/components/tg-rich-editor/tg-rich-editor.js +151 -0
- package/dist/collection/components/tg-role-badge/tg-role-badge.css +7 -0
- package/dist/collection/components/tg-role-badge/tg-role-badge.js +85 -0
- package/dist/collection/components/tg-select/tg-select.css +144 -0
- package/dist/collection/components/tg-select/tg-select.js +329 -0
- package/dist/collection/components/tg-session-expired/tg-session-expired.css +8 -0
- package/dist/collection/components/tg-session-expired/tg-session-expired.js +128 -0
- package/dist/collection/components/tg-sidebar/tg-sidebar.css +188 -0
- package/dist/collection/components/tg-sidebar/tg-sidebar.js +112 -0
- package/dist/collection/components/tg-skeleton/tg-skeleton.css +58 -0
- package/dist/collection/components/tg-skeleton/tg-skeleton.js +135 -0
- package/dist/collection/components/tg-slider/tg-slider.css +10 -0
- package/dist/collection/components/tg-slider/tg-slider.js +208 -0
- package/dist/collection/components/tg-source-citation/tg-source-citation.css +12 -0
- package/dist/collection/components/tg-source-citation/tg-source-citation.js +56 -0
- package/dist/collection/components/tg-spinner/tg-spinner.css +50 -0
- package/dist/collection/components/tg-spinner/tg-spinner.js +101 -0
- package/dist/collection/components/tg-stat-widget/tg-stat-widget.css +12 -0
- package/dist/collection/components/tg-stat-widget/tg-stat-widget.js +142 -0
- package/dist/collection/components/tg-status-badge/tg-status-badge.css +24 -0
- package/dist/collection/components/tg-status-badge/tg-status-badge.js +108 -0
- package/dist/collection/components/tg-stepper/tg-stepper.css +17 -0
- package/dist/collection/components/tg-stepper/tg-stepper.js +104 -0
- package/dist/collection/components/tg-stepper-input/tg-stepper-input.css +15 -0
- package/dist/collection/components/tg-stepper-input/tg-stepper-input.js +200 -0
- package/dist/collection/components/tg-streaming-response/tg-streaming-response.css +12 -0
- package/dist/collection/components/tg-streaming-response/tg-streaming-response.js +104 -0
- package/dist/collection/components/tg-switch/tg-switch.css +89 -0
- package/dist/collection/components/tg-switch/tg-switch.js +172 -0
- package/dist/collection/components/tg-table/tg-table.css +117 -0
- package/dist/collection/components/tg-table/tg-table.js +289 -0
- package/dist/collection/components/tg-tabs/tg-tabs.css +114 -0
- package/dist/collection/components/tg-tabs/tg-tabs.js +141 -0
- package/dist/collection/components/tg-tag/tg-tag.css +76 -0
- package/dist/collection/components/tg-tag/tg-tag.js +152 -0
- package/dist/collection/components/tg-textarea/tg-textarea.css +105 -0
- package/dist/collection/components/tg-textarea/tg-textarea.js +357 -0
- package/dist/collection/components/tg-time-picker/tg-time-picker.css +15 -0
- package/dist/collection/components/tg-time-picker/tg-time-picker.js +213 -0
- package/dist/collection/components/tg-timeline/tg-timeline.css +14 -0
- package/dist/collection/components/tg-timeline/tg-timeline.js +83 -0
- package/dist/collection/components/tg-toast/tg-toast.css +112 -0
- package/dist/collection/components/tg-toast/tg-toast.js +181 -0
- package/dist/collection/components/tg-token-usage/tg-token-usage.css +14 -0
- package/dist/collection/components/tg-token-usage/tg-token-usage.js +129 -0
- package/dist/collection/components/tg-tooltip/tg-tooltip.css +93 -0
- package/dist/collection/components/tg-tooltip/tg-tooltip.js +104 -0
- package/dist/collection/components/tg-tree-view/tg-tree-view.css +10 -0
- package/dist/collection/components/tg-tree-view/tg-tree-view.js +112 -0
- package/dist/collection/components/tg-undo-snackbar/tg-undo-snackbar.css +8 -0
- package/dist/collection/components/tg-undo-snackbar/tg-undo-snackbar.js +148 -0
- package/dist/collection/components/tg-video-player/tg-video-player.css +6 -0
- package/dist/collection/components/tg-video-player/tg-video-player.js +104 -0
- package/dist/collection/components/tg-wizard-nav/tg-wizard-nav.css +14 -0
- package/dist/collection/components/tg-wizard-nav/tg-wizard-nav.js +202 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/teranga-tokens.css +189 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-BWkBF3Ng.js +1 -0
- package/dist/components/p-DcG1qXzH.js +1 -0
- package/dist/components/tg-activity-feed.d.ts +11 -0
- package/dist/components/tg-activity-feed.js +1 -0
- package/dist/components/tg-activity-stream.d.ts +11 -0
- package/dist/components/tg-activity-stream.js +1 -0
- package/dist/components/tg-ai-feedback.d.ts +11 -0
- package/dist/components/tg-ai-feedback.js +1 -0
- package/dist/components/tg-ai-insight-card.d.ts +11 -0
- package/dist/components/tg-ai-insight-card.js +1 -0
- package/dist/components/tg-alert.d.ts +11 -0
- package/dist/components/tg-alert.js +1 -0
- package/dist/components/tg-audio-player.d.ts +11 -0
- package/dist/components/tg-audio-player.js +1 -0
- package/dist/components/tg-autocomplete.d.ts +11 -0
- package/dist/components/tg-autocomplete.js +1 -0
- package/dist/components/tg-avatar.d.ts +11 -0
- package/dist/components/tg-avatar.js +1 -0
- package/dist/components/tg-badge.d.ts +11 -0
- package/dist/components/tg-badge.js +1 -0
- package/dist/components/tg-bottom-nav.d.ts +11 -0
- package/dist/components/tg-bottom-nav.js +1 -0
- package/dist/components/tg-bottom-sheet.d.ts +11 -0
- package/dist/components/tg-bottom-sheet.js +1 -0
- package/dist/components/tg-breadcrumb.d.ts +11 -0
- package/dist/components/tg-breadcrumb.js +1 -0
- package/dist/components/tg-button.d.ts +11 -0
- package/dist/components/tg-button.js +1 -0
- package/dist/components/tg-calendar-view.d.ts +11 -0
- package/dist/components/tg-calendar-view.js +1 -0
- package/dist/components/tg-card.d.ts +11 -0
- package/dist/components/tg-card.js +1 -0
- package/dist/components/tg-chat-message.d.ts +11 -0
- package/dist/components/tg-chat-message.js +1 -0
- package/dist/components/tg-chat.d.ts +11 -0
- package/dist/components/tg-chat.js +1 -0
- package/dist/components/tg-checkbox.d.ts +11 -0
- package/dist/components/tg-checkbox.js +1 -0
- package/dist/components/tg-combobox.d.ts +11 -0
- package/dist/components/tg-combobox.js +1 -0
- package/dist/components/tg-command-palette.d.ts +11 -0
- package/dist/components/tg-command-palette.js +1 -0
- package/dist/components/tg-confidence-badge.d.ts +11 -0
- package/dist/components/tg-confidence-badge.js +1 -0
- package/dist/components/tg-confirm-dialog.d.ts +11 -0
- package/dist/components/tg-confirm-dialog.js +1 -0
- package/dist/components/tg-context-menu.d.ts +11 -0
- package/dist/components/tg-context-menu.js +1 -0
- package/dist/components/tg-data-table.d.ts +11 -0
- package/dist/components/tg-data-table.js +1 -0
- package/dist/components/tg-date-picker.d.ts +11 -0
- package/dist/components/tg-date-picker.js +1 -0
- package/dist/components/tg-empty-state.d.ts +11 -0
- package/dist/components/tg-empty-state.js +1 -0
- package/dist/components/tg-expandable-row.d.ts +11 -0
- package/dist/components/tg-expandable-row.js +1 -0
- package/dist/components/tg-fab.d.ts +11 -0
- package/dist/components/tg-fab.js +1 -0
- package/dist/components/tg-file-upload.d.ts +11 -0
- package/dist/components/tg-file-upload.js +1 -0
- package/dist/components/tg-global-loader.d.ts +11 -0
- package/dist/components/tg-global-loader.js +1 -0
- package/dist/components/tg-heatmap.d.ts +11 -0
- package/dist/components/tg-heatmap.js +1 -0
- package/dist/components/tg-image-gallery.d.ts +11 -0
- package/dist/components/tg-image-gallery.js +1 -0
- package/dist/components/tg-input.d.ts +11 -0
- package/dist/components/tg-input.js +1 -0
- package/dist/components/tg-kanban-board.d.ts +11 -0
- package/dist/components/tg-kanban-board.js +1 -0
- package/dist/components/tg-kpi-card.d.ts +11 -0
- package/dist/components/tg-kpi-card.js +1 -0
- package/dist/components/tg-live-badge.d.ts +11 -0
- package/dist/components/tg-live-badge.js +1 -0
- package/dist/components/tg-login-form.d.ts +11 -0
- package/dist/components/tg-login-form.js +1 -0
- package/dist/components/tg-mega-menu.d.ts +11 -0
- package/dist/components/tg-mega-menu.js +1 -0
- package/dist/components/tg-modal.d.ts +11 -0
- package/dist/components/tg-modal.js +1 -0
- package/dist/components/tg-model-selector.d.ts +11 -0
- package/dist/components/tg-model-selector.js +1 -0
- package/dist/components/tg-multi-select.d.ts +11 -0
- package/dist/components/tg-multi-select.js +1 -0
- package/dist/components/tg-navbar.d.ts +11 -0
- package/dist/components/tg-navbar.js +1 -0
- package/dist/components/tg-otp-input.d.ts +11 -0
- package/dist/components/tg-otp-input.js +1 -0
- package/dist/components/tg-pagination.d.ts +11 -0
- package/dist/components/tg-pagination.js +1 -0
- package/dist/components/tg-presence-indicator.d.ts +11 -0
- package/dist/components/tg-presence-indicator.js +1 -0
- package/dist/components/tg-progress.d.ts +11 -0
- package/dist/components/tg-progress.js +1 -0
- package/dist/components/tg-prompt-input.d.ts +11 -0
- package/dist/components/tg-prompt-input.js +1 -0
- package/dist/components/tg-pull-to-refresh.d.ts +11 -0
- package/dist/components/tg-pull-to-refresh.js +1 -0
- package/dist/components/tg-quick-switcher.d.ts +11 -0
- package/dist/components/tg-quick-switcher.js +1 -0
- package/dist/components/tg-radio.d.ts +11 -0
- package/dist/components/tg-radio.js +1 -0
- package/dist/components/tg-retry-ui.d.ts +11 -0
- package/dist/components/tg-retry-ui.js +1 -0
- package/dist/components/tg-rich-editor.d.ts +11 -0
- package/dist/components/tg-rich-editor.js +1 -0
- package/dist/components/tg-role-badge.d.ts +11 -0
- package/dist/components/tg-role-badge.js +1 -0
- package/dist/components/tg-select.d.ts +11 -0
- package/dist/components/tg-select.js +1 -0
- package/dist/components/tg-session-expired.d.ts +11 -0
- package/dist/components/tg-session-expired.js +1 -0
- package/dist/components/tg-sidebar.d.ts +11 -0
- package/dist/components/tg-sidebar.js +1 -0
- package/dist/components/tg-skeleton.d.ts +11 -0
- package/dist/components/tg-skeleton.js +1 -0
- package/dist/components/tg-slider.d.ts +11 -0
- package/dist/components/tg-slider.js +1 -0
- package/dist/components/tg-source-citation.d.ts +11 -0
- package/dist/components/tg-source-citation.js +1 -0
- package/dist/components/tg-spinner.d.ts +11 -0
- package/dist/components/tg-spinner.js +1 -0
- package/dist/components/tg-stat-widget.d.ts +11 -0
- package/dist/components/tg-stat-widget.js +1 -0
- package/dist/components/tg-status-badge.d.ts +11 -0
- package/dist/components/tg-status-badge.js +1 -0
- package/dist/components/tg-stepper-input.d.ts +11 -0
- package/dist/components/tg-stepper-input.js +1 -0
- package/dist/components/tg-stepper.d.ts +11 -0
- package/dist/components/tg-stepper.js +1 -0
- package/dist/components/tg-streaming-response.d.ts +11 -0
- package/dist/components/tg-streaming-response.js +1 -0
- package/dist/components/tg-switch.d.ts +11 -0
- package/dist/components/tg-switch.js +1 -0
- package/dist/components/tg-table.d.ts +11 -0
- package/dist/components/tg-table.js +1 -0
- package/dist/components/tg-tabs.d.ts +11 -0
- package/dist/components/tg-tabs.js +1 -0
- package/dist/components/tg-tag.d.ts +11 -0
- package/dist/components/tg-tag.js +1 -0
- package/dist/components/tg-textarea.d.ts +11 -0
- package/dist/components/tg-textarea.js +1 -0
- package/dist/components/tg-time-picker.d.ts +11 -0
- package/dist/components/tg-time-picker.js +1 -0
- package/dist/components/tg-timeline.d.ts +11 -0
- package/dist/components/tg-timeline.js +1 -0
- package/dist/components/tg-toast.d.ts +11 -0
- package/dist/components/tg-toast.js +1 -0
- package/dist/components/tg-token-usage.d.ts +11 -0
- package/dist/components/tg-token-usage.js +1 -0
- package/dist/components/tg-tooltip.d.ts +11 -0
- package/dist/components/tg-tooltip.js +1 -0
- package/dist/components/tg-tree-view.d.ts +11 -0
- package/dist/components/tg-tree-view.js +1 -0
- package/dist/components/tg-undo-snackbar.d.ts +11 -0
- package/dist/components/tg-undo-snackbar.js +1 -0
- package/dist/components/tg-video-player.d.ts +11 -0
- package/dist/components/tg-video-player.js +1 -0
- package/dist/components/tg-wizard-nav.d.ts +11 -0
- package/dist/components/tg-wizard-nav.js +1 -0
- package/dist/docs.d.ts +480 -0
- package/dist/docs.json +14240 -0
- package/dist/esm/index-CXqO9vvj.js +2010 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/teranga-ds.js +20 -0
- package/dist/esm/tg-activity-feed.entry.js +27 -0
- package/dist/esm/tg-activity-stream.entry.js +28 -0
- package/dist/esm/tg-ai-feedback.entry.js +27 -0
- package/dist/esm/tg-ai-insight-card.entry.js +18 -0
- package/dist/esm/tg-alert.entry.js +40 -0
- package/dist/esm/tg-audio-player.entry.js +44 -0
- package/dist/esm/tg-autocomplete.entry.js +52 -0
- package/dist/esm/tg-avatar.entry.js +37 -0
- package/dist/esm/tg-badge.entry.js +29 -0
- package/dist/esm/tg-bottom-nav.entry.js +28 -0
- package/dist/esm/tg-bottom-sheet.entry.js +19 -0
- package/dist/esm/tg-breadcrumb.entry.js +51 -0
- package/dist/esm/tg-button.entry.js +43 -0
- package/dist/esm/tg-calendar-view.entry.js +51 -0
- package/dist/esm/tg-card.entry.js +29 -0
- package/dist/esm/tg-chat-message.entry.js +17 -0
- package/dist/esm/tg-chat.entry.js +57 -0
- package/dist/esm/tg-checkbox.entry.js +29 -0
- package/dist/esm/tg-combobox.entry.js +66 -0
- package/dist/esm/tg-command-palette.entry.js +64 -0
- package/dist/esm/tg-confidence-badge.entry.js +25 -0
- package/dist/esm/tg-confirm-dialog.entry.js +25 -0
- package/dist/esm/tg-context-menu.entry.js +33 -0
- package/dist/esm/tg-data-table.entry.js +88 -0
- package/dist/esm/tg-date-picker.entry.js +54 -0
- package/dist/esm/tg-empty-state.entry.js +17 -0
- package/dist/esm/tg-expandable-row.entry.js +17 -0
- package/dist/esm/tg-fab.entry.js +20 -0
- package/dist/esm/tg-file-upload.entry.js +84 -0
- package/dist/esm/tg-global-loader.entry.js +22 -0
- package/dist/esm/tg-heatmap.entry.js +63 -0
- package/dist/esm/tg-image-gallery.entry.js +30 -0
- package/dist/esm/tg-input.entry.js +49 -0
- package/dist/esm/tg-kanban-board.entry.js +28 -0
- package/dist/esm/tg-kpi-card.entry.js +18 -0
- package/dist/esm/tg-live-badge.entry.js +18 -0
- package/dist/esm/tg-login-form.entry.js +21 -0
- package/dist/esm/tg-mega-menu.entry.js +32 -0
- package/dist/esm/tg-modal.entry.js +41 -0
- package/dist/esm/tg-model-selector.entry.js +32 -0
- package/dist/esm/tg-multi-select.entry.js +65 -0
- package/dist/esm/tg-navbar.entry.js +41 -0
- package/dist/esm/tg-otp-input.entry.js +58 -0
- package/dist/esm/tg-pagination.entry.js +51 -0
- package/dist/esm/tg-presence-indicator.entry.js +31 -0
- package/dist/esm/tg-progress.entry.js +51 -0
- package/dist/esm/tg-prompt-input.entry.js +32 -0
- package/dist/esm/tg-pull-to-refresh.entry.js +35 -0
- package/dist/esm/tg-quick-switcher.entry.js +33 -0
- package/dist/esm/tg-radio.entry.js +27 -0
- package/dist/esm/tg-retry-ui.entry.js +20 -0
- package/dist/esm/tg-rich-editor.entry.js +22 -0
- package/dist/esm/tg-role-badge.entry.js +17 -0
- package/dist/esm/tg-select.entry.js +67 -0
- package/dist/esm/tg-session-expired.entry.js +22 -0
- package/dist/esm/tg-sidebar.entry.js +33 -0
- package/dist/esm/tg-skeleton.entry.js +28 -0
- package/dist/esm/tg-slider.entry.js +24 -0
- package/dist/esm/tg-source-citation.entry.js +27 -0
- package/dist/esm/tg-spinner.entry.js +25 -0
- package/dist/esm/tg-stat-widget.entry.js +17 -0
- package/dist/esm/tg-status-badge.entry.js +19 -0
- package/dist/esm/tg-stepper-input.entry.js +37 -0
- package/dist/esm/tg-stepper.entry.js +29 -0
- package/dist/esm/tg-streaming-response.entry.js +17 -0
- package/dist/esm/tg-switch.entry.js +29 -0
- package/dist/esm/tg-table.entry.js +111 -0
- package/dist/esm/tg-tabs.entry.js +45 -0
- package/dist/esm/tg-tag.entry.js +26 -0
- package/dist/esm/tg-textarea.entry.js +43 -0
- package/dist/esm/tg-time-picker.entry.js +35 -0
- package/dist/esm/tg-timeline.entry.js +28 -0
- package/dist/esm/tg-toast.entry.js +51 -0
- package/dist/esm/tg-token-usage.entry.js +21 -0
- package/dist/esm/tg-tooltip.entry.js +30 -0
- package/dist/esm/tg-tree-view.entry.js +51 -0
- package/dist/esm/tg-undo-snackbar.entry.js +28 -0
- package/dist/esm/tg-video-player.entry.js +17 -0
- package/dist/esm/tg-wizard-nav.entry.js +28 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/teranga-ds/index.esm.js +0 -0
- package/dist/teranga-ds/p-003a47ca.entry.js +1 -0
- package/dist/teranga-ds/p-017ddeb1.entry.js +1 -0
- package/dist/teranga-ds/p-02c5a12d.entry.js +1 -0
- package/dist/teranga-ds/p-0a42664a.entry.js +1 -0
- package/dist/teranga-ds/p-0b076dde.entry.js +1 -0
- package/dist/teranga-ds/p-0c4d9863.entry.js +1 -0
- package/dist/teranga-ds/p-0e8e624c.entry.js +1 -0
- package/dist/teranga-ds/p-188921a5.entry.js +1 -0
- package/dist/teranga-ds/p-1925d476.entry.js +1 -0
- package/dist/teranga-ds/p-19a4e248.entry.js +1 -0
- package/dist/teranga-ds/p-223af07c.entry.js +1 -0
- package/dist/teranga-ds/p-229331e3.entry.js +1 -0
- package/dist/teranga-ds/p-229a048d.entry.js +1 -0
- package/dist/teranga-ds/p-2537b595.entry.js +1 -0
- package/dist/teranga-ds/p-256c5686.entry.js +1 -0
- package/dist/teranga-ds/p-25af1fe1.entry.js +1 -0
- package/dist/teranga-ds/p-293e42b5.entry.js +1 -0
- package/dist/teranga-ds/p-29ce1cb3.entry.js +1 -0
- package/dist/teranga-ds/p-2bcf5c49.entry.js +1 -0
- package/dist/teranga-ds/p-2e8eb1cd.entry.js +1 -0
- package/dist/teranga-ds/p-321ec5a3.entry.js +1 -0
- package/dist/teranga-ds/p-34c8b3db.entry.js +1 -0
- package/dist/teranga-ds/p-3722c1c8.entry.js +1 -0
- package/dist/teranga-ds/p-386e978e.entry.js +1 -0
- package/dist/teranga-ds/p-45825e6c.entry.js +1 -0
- package/dist/teranga-ds/p-45d69cd2.entry.js +1 -0
- package/dist/teranga-ds/p-4ca63079.entry.js +1 -0
- package/dist/teranga-ds/p-4cdefae6.entry.js +1 -0
- package/dist/teranga-ds/p-4d3e0645.entry.js +1 -0
- package/dist/teranga-ds/p-5179d2e1.entry.js +1 -0
- package/dist/teranga-ds/p-5888f1d1.entry.js +1 -0
- package/dist/teranga-ds/p-58fd7fc1.entry.js +1 -0
- package/dist/teranga-ds/p-5b34ae37.entry.js +1 -0
- package/dist/teranga-ds/p-5cb3cab5.entry.js +1 -0
- package/dist/teranga-ds/p-5f64253e.entry.js +1 -0
- package/dist/teranga-ds/p-61bab799.entry.js +1 -0
- package/dist/teranga-ds/p-63285c1c.entry.js +1 -0
- package/dist/teranga-ds/p-6b40af59.entry.js +1 -0
- package/dist/teranga-ds/p-6c275cd2.entry.js +1 -0
- package/dist/teranga-ds/p-700908a2.entry.js +1 -0
- package/dist/teranga-ds/p-71257d05.entry.js +1 -0
- package/dist/teranga-ds/p-727543e6.entry.js +1 -0
- package/dist/teranga-ds/p-73082aef.entry.js +1 -0
- package/dist/teranga-ds/p-7acaa999.entry.js +1 -0
- package/dist/teranga-ds/p-81041fa8.entry.js +1 -0
- package/dist/teranga-ds/p-816417c6.entry.js +1 -0
- package/dist/teranga-ds/p-82057162.entry.js +1 -0
- package/dist/teranga-ds/p-84506153.entry.js +1 -0
- package/dist/teranga-ds/p-9259b7ad.entry.js +1 -0
- package/dist/teranga-ds/p-968f33cd.entry.js +1 -0
- package/dist/teranga-ds/p-9a86750e.entry.js +1 -0
- package/dist/teranga-ds/p-9b661306.entry.js +1 -0
- package/dist/teranga-ds/p-9ddbbe0b.entry.js +1 -0
- package/dist/teranga-ds/p-9f6a460b.entry.js +1 -0
- package/dist/teranga-ds/p-CXqO9vvj.js +2 -0
- package/dist/teranga-ds/p-a02dc9c0.entry.js +1 -0
- package/dist/teranga-ds/p-a25e8482.entry.js +1 -0
- package/dist/teranga-ds/p-a7ed37b2.entry.js +1 -0
- package/dist/teranga-ds/p-b4b5570e.entry.js +1 -0
- package/dist/teranga-ds/p-b762afff.entry.js +1 -0
- package/dist/teranga-ds/p-ba67b6cb.entry.js +1 -0
- package/dist/teranga-ds/p-bd667d1b.entry.js +1 -0
- package/dist/teranga-ds/p-bd7eefaa.entry.js +1 -0
- package/dist/teranga-ds/p-cd11c0ce.entry.js +1 -0
- package/dist/teranga-ds/p-d783708a.entry.js +1 -0
- package/dist/teranga-ds/p-dab038ae.entry.js +1 -0
- package/dist/teranga-ds/p-dda9a7c3.entry.js +1 -0
- package/dist/teranga-ds/p-deb81958.entry.js +1 -0
- package/dist/teranga-ds/p-dfaff259.entry.js +1 -0
- package/dist/teranga-ds/p-e0c5a144.entry.js +1 -0
- package/dist/teranga-ds/p-e26d2a8d.entry.js +1 -0
- package/dist/teranga-ds/p-e58a4ab8.entry.js +1 -0
- package/dist/teranga-ds/p-e8736bde.entry.js +1 -0
- package/dist/teranga-ds/p-eca93015.entry.js +1 -0
- package/dist/teranga-ds/p-ed2a5ec6.entry.js +1 -0
- package/dist/teranga-ds/p-ed48b855.entry.js +1 -0
- package/dist/teranga-ds/p-ee8c0470.entry.js +1 -0
- package/dist/teranga-ds/p-efff537c.entry.js +1 -0
- package/dist/teranga-ds/p-f5d99e53.entry.js +1 -0
- package/dist/teranga-ds/p-f790b8f4.entry.js +1 -0
- package/dist/teranga-ds/teranga-ds.css +1 -0
- package/dist/teranga-ds/teranga-ds.esm.js +1 -0
- package/dist/teranga-ds/teranga-tokens.css +189 -0
- package/dist/types/components/tg-activity-feed/tg-activity-feed.d.ts +13 -0
- package/dist/types/components/tg-activity-stream/tg-activity-stream.d.ts +14 -0
- package/dist/types/components/tg-ai-feedback/tg-ai-feedback.d.ts +14 -0
- package/dist/types/components/tg-ai-insight-card/tg-ai-insight-card.d.ts +9 -0
- package/dist/types/components/tg-alert/tg-alert.d.ts +28 -0
- package/dist/types/components/tg-audio-player/tg-audio-player.d.ts +15 -0
- package/dist/types/components/tg-autocomplete/tg-autocomplete.d.ts +21 -0
- package/dist/types/components/tg-avatar/tg-avatar.d.ts +27 -0
- package/dist/types/components/tg-badge/tg-badge.d.ts +21 -0
- package/dist/types/components/tg-bottom-nav/tg-bottom-nav.d.ts +14 -0
- package/dist/types/components/tg-bottom-sheet/tg-bottom-sheet.d.ts +7 -0
- package/dist/types/components/tg-breadcrumb/tg-breadcrumb.d.ts +12 -0
- package/dist/types/components/tg-button/tg-button.d.ts +35 -0
- package/dist/types/components/tg-calendar-view/tg-calendar-view.d.ts +18 -0
- package/dist/types/components/tg-card/tg-card.d.ts +27 -0
- package/dist/types/components/tg-chat/tg-chat.d.ts +24 -0
- package/dist/types/components/tg-chat-message/tg-chat-message.d.ts +7 -0
- package/dist/types/components/tg-checkbox/tg-checkbox.d.ts +14 -0
- package/dist/types/components/tg-combobox/tg-combobox.d.ts +30 -0
- package/dist/types/components/tg-command-palette/tg-command-palette.d.ts +20 -0
- package/dist/types/components/tg-confidence-badge/tg-confidence-badge.d.ts +7 -0
- package/dist/types/components/tg-confirm-dialog/tg-confirm-dialog.d.ts +13 -0
- package/dist/types/components/tg-context-menu/tg-context-menu.d.ts +21 -0
- package/dist/types/components/tg-data-table/tg-data-table.d.ts +34 -0
- package/dist/types/components/tg-date-picker/tg-date-picker.d.ts +22 -0
- package/dist/types/components/tg-empty-state/tg-empty-state.d.ts +8 -0
- package/dist/types/components/tg-expandable-row/tg-expandable-row.d.ts +7 -0
- package/dist/types/components/tg-fab/tg-fab.d.ts +11 -0
- package/dist/types/components/tg-file-upload/tg-file-upload.d.ts +28 -0
- package/dist/types/components/tg-global-loader/tg-global-loader.d.ts +6 -0
- package/dist/types/components/tg-heatmap/tg-heatmap.d.ts +14 -0
- package/dist/types/components/tg-image-gallery/tg-image-gallery.d.ts +12 -0
- package/dist/types/components/tg-input/tg-input.d.ts +48 -0
- package/dist/types/components/tg-kanban-board/tg-kanban-board.d.ts +23 -0
- package/dist/types/components/tg-kpi-card/tg-kpi-card.d.ts +10 -0
- package/dist/types/components/tg-live-badge/tg-live-badge.d.ts +6 -0
- package/dist/types/components/tg-login-form/tg-login-form.d.ts +16 -0
- package/dist/types/components/tg-mega-menu/tg-mega-menu.d.ts +21 -0
- package/dist/types/components/tg-modal/tg-modal.d.ts +14 -0
- package/dist/types/components/tg-model-selector/tg-model-selector.d.ts +18 -0
- package/dist/types/components/tg-multi-select/tg-multi-select.d.ts +25 -0
- package/dist/types/components/tg-navbar/tg-navbar.d.ts +16 -0
- package/dist/types/components/tg-otp-input/tg-otp-input.d.ts +18 -0
- package/dist/types/components/tg-pagination/tg-pagination.d.ts +10 -0
- package/dist/types/components/tg-presence-indicator/tg-presence-indicator.d.ts +10 -0
- package/dist/types/components/tg-progress/tg-progress.d.ts +18 -0
- package/dist/types/components/tg-prompt-input/tg-prompt-input.d.ts +12 -0
- package/dist/types/components/tg-pull-to-refresh/tg-pull-to-refresh.d.ts +15 -0
- package/dist/types/components/tg-quick-switcher/tg-quick-switcher.d.ts +18 -0
- package/dist/types/components/tg-radio/tg-radio.d.ts +12 -0
- package/dist/types/components/tg-retry-ui/tg-retry-ui.d.ts +10 -0
- package/dist/types/components/tg-rich-editor/tg-rich-editor.d.ts +13 -0
- package/dist/types/components/tg-role-badge/tg-role-badge.d.ts +6 -0
- package/dist/types/components/tg-select/tg-select.d.ts +27 -0
- package/dist/types/components/tg-session-expired/tg-session-expired.d.ts +9 -0
- package/dist/types/components/tg-sidebar/tg-sidebar.d.ts +20 -0
- package/dist/types/components/tg-skeleton/tg-skeleton.d.ts +8 -0
- package/dist/types/components/tg-slider/tg-slider.d.ts +15 -0
- package/dist/types/components/tg-source-citation/tg-source-citation.d.ts +10 -0
- package/dist/types/components/tg-spinner/tg-spinner.d.ts +16 -0
- package/dist/types/components/tg-stat-widget/tg-stat-widget.d.ts +9 -0
- package/dist/types/components/tg-status-badge/tg-status-badge.d.ts +7 -0
- package/dist/types/components/tg-stepper/tg-stepper.d.ts +11 -0
- package/dist/types/components/tg-stepper-input/tg-stepper-input.d.ts +15 -0
- package/dist/types/components/tg-streaming-response/tg-streaming-response.d.ts +7 -0
- package/dist/types/components/tg-switch/tg-switch.d.ts +12 -0
- package/dist/types/components/tg-table/tg-table.d.ts +30 -0
- package/dist/types/components/tg-tabs/tg-tabs.d.ts +18 -0
- package/dist/types/components/tg-tag/tg-tag.d.ts +10 -0
- package/dist/types/components/tg-textarea/tg-textarea.d.ts +23 -0
- package/dist/types/components/tg-time-picker/tg-time-picker.d.ts +16 -0
- package/dist/types/components/tg-timeline/tg-timeline.d.ts +13 -0
- package/dist/types/components/tg-toast/tg-toast.d.ts +17 -0
- package/dist/types/components/tg-token-usage/tg-token-usage.d.ts +10 -0
- package/dist/types/components/tg-tooltip/tg-tooltip.d.ts +10 -0
- package/dist/types/components/tg-tree-view/tg-tree-view.d.ts +17 -0
- package/dist/types/components/tg-undo-snackbar/tg-undo-snackbar.d.ts +11 -0
- package/dist/types/components/tg-video-player/tg-video-player.d.ts +7 -0
- package/dist/types/components/tg-wizard-nav/tg-wizard-nav.d.ts +15 -0
- package/dist/types/components.d.ts +5028 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +74 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTagCss = () => `:host{display:inline-flex}.tg-tag{display:inline-flex;align-items:center;gap:var(--tg-spacing-1);font-family:var(--tg-font-family-sans);font-weight:var(--tg-font-weight-medium);border-radius:var(--tg-radius-full);border:1px solid transparent;white-space:nowrap;transition:all var(--tg-duration-fast) var(--tg-ease-default)}.tg-tag--sm{padding:0 var(--tg-spacing-2);height:1.25rem;font-size:var(--tg-font-size-2xs)}.tg-tag--md{padding:var(--tg-spacing-0-5) var(--tg-spacing-2-5);height:1.5rem;font-size:var(--tg-font-size-xs)}.tg-tag--lg{padding:var(--tg-spacing-1) var(--tg-spacing-3);height:1.875rem;font-size:var(--tg-font-size-sm)}.tg-tag--primary{background:var(--tg-color-primary);color:var(--tg-color-primary-on)}.tg-tag--secondary{background:var(--tg-color-secondary);color:var(--tg-color-secondary-on)}.tg-tag--success{background:var(--tg-color-success);color:var(--tg-color-success-on)}.tg-tag--danger{background:var(--tg-color-danger);color:var(--tg-color-danger-on)}.tg-tag--warning{background:var(--tg-color-warning);color:var(--tg-color-warning-on)}.tg-tag--info{background:var(--tg-color-info);color:var(--tg-color-info-on)}.tg-tag--neutral{background:var(--tg-color-neutral-200);color:var(--tg-color-text-primary)}.tg-tag--outlined.tg-tag--primary{background:var(--tg-color-primary-subtle);border-color:var(--tg-color-primary);color:var(--tg-color-primary)}.tg-tag--outlined.tg-tag--secondary{background:var(--tg-color-secondary-subtle);border-color:var(--tg-color-secondary);color:var(--tg-color-secondary)}.tg-tag--outlined.tg-tag--success{background:var(--tg-color-success-subtle);border-color:var(--tg-color-success);color:var(--tg-color-success)}.tg-tag--outlined.tg-tag--danger{background:var(--tg-color-danger-subtle);border-color:var(--tg-color-danger);color:var(--tg-color-danger)}.tg-tag--outlined.tg-tag--warning{background:var(--tg-color-warning-subtle);border-color:var(--tg-color-warning);color:var(--tg-color-warning)}.tg-tag--outlined.tg-tag--info{background:var(--tg-color-info-subtle);border-color:var(--tg-color-info);color:var(--tg-color-info)}.tg-tag--outlined.tg-tag--neutral{background:transparent;border-color:var(--tg-color-border);color:var(--tg-color-text-primary)}.tg-tag__remove{display:inline-flex;align-items:center;justify-content:center;width:0.875rem;height:0.875rem;border:none;background:none;color:inherit;cursor:pointer;border-radius:var(--tg-radius-full);padding:0;opacity:0.7;transition:opacity var(--tg-duration-fast) var(--tg-ease-default)}.tg-tag__remove:hover{opacity:1}.tg-tag__remove svg{width:0.625rem;height:0.625rem}.tg-tag__dot{width:0.375rem;height:0.375rem;border-radius:var(--tg-radius-full);background:currentColor}`;
|
|
4
|
+
|
|
5
|
+
const TgTag = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.tgRemove = createEvent(this, "tgRemove");
|
|
9
|
+
this.variant = 'neutral';
|
|
10
|
+
this.size = 'md';
|
|
11
|
+
this.outlined = false;
|
|
12
|
+
this.removable = false;
|
|
13
|
+
this.dot = false;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { key: '2b9a8ab0eabdbb6867bfd60e967b9a10d91aad05' }, h("span", { key: '970651f6e231c62325f2805a8859fbed30ae5045', class: {
|
|
17
|
+
'tg-tag': true,
|
|
18
|
+
[`tg-tag--${this.variant}`]: true,
|
|
19
|
+
[`tg-tag--${this.size}`]: true,
|
|
20
|
+
'tg-tag--outlined': this.outlined,
|
|
21
|
+
} }, this.dot && h("span", { key: '30311cba420000b3722aab6f57a3b61e96505ee4', class: "tg-tag__dot" }), h("slot", { key: 'ea882d21197eae879024b487cb2407d0c2fb30b6' }), this.removable && (h("button", { key: '1b2516ebd333017827edf62f9e00f983c4291a73', class: "tg-tag__remove", onClick: () => this.tgRemove.emit(), "aria-label": "Supprimer" }, h("svg", { key: 'ec8b3712b49b3775ae2a01aad242f9bd842d837a', viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" }, h("line", { key: 'acf0dbb549b8a4506ccfb82d96090d09b5380f3e', x1: "2", y1: "2", x2: "8", y2: "8" }), h("line", { key: '8bf5bdb1feff9236312563152ce894c1d3bf9cd0', x1: "8", y1: "2", x2: "2", y2: "8" })))))));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
TgTag.style = tgTagCss();
|
|
25
|
+
|
|
26
|
+
export { TgTag as tg_tag };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTextareaCss = () => `:host{display:block}:host([full-width]){width:100%}.tg-textarea-wrapper{display:flex;flex-direction:column;gap:var(--tg-spacing-1-5);font-family:var(--tg-font-family-sans)}.tg-textarea__label{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);line-height:var(--tg-line-height-normal)}.tg-textarea__required{color:var(--tg-color-danger)}.tg-textarea__field{display:block;width:100%;min-height:5rem;padding:var(--tg-spacing-2-5) var(--tg-spacing-3);font-family:var(--tg-font-family-sans);font-size:var(--tg-font-size-sm);line-height:var(--tg-line-height-relaxed);color:var(--tg-color-text-primary);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);outline:none;resize:vertical;transition:border-color var(--tg-duration-fast) var(--tg-ease-default), box-shadow var(--tg-duration-fast) var(--tg-ease-default)}.tg-textarea__field::placeholder{color:var(--tg-color-text-disabled)}.tg-textarea__field:focus{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-textarea__field:disabled{background:var(--tg-color-surface-sunken);opacity:0.6;cursor:not-allowed;resize:none}.tg-textarea__field--invalid{border-color:var(--tg-color-danger)}.tg-textarea__field--invalid:focus{box-shadow:0 0 0 3px rgba(227, 27, 35, 0.3)}.tg-textarea__footer{display:flex;justify-content:space-between;align-items:center}.tg-textarea__helper,.tg-textarea__error{font-size:var(--tg-font-size-xs);line-height:var(--tg-line-height-normal)}.tg-textarea__helper{color:var(--tg-color-text-secondary)}.tg-textarea__error{color:var(--tg-color-danger);display:flex;align-items:center;gap:var(--tg-spacing-1)}.tg-textarea__counter{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);margin-left:auto}.tg-textarea__counter--over{color:var(--tg-color-danger);font-weight:var(--tg-font-weight-semibold)}`;
|
|
4
|
+
|
|
5
|
+
const TgTextarea = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.tgChange = createEvent(this, "tgChange");
|
|
9
|
+
this.tgFocus = createEvent(this, "tgFocus");
|
|
10
|
+
this.tgBlur = createEvent(this, "tgBlur");
|
|
11
|
+
this.value = '';
|
|
12
|
+
this.required = false;
|
|
13
|
+
this.disabled = false;
|
|
14
|
+
this.readonly = false;
|
|
15
|
+
this.fullWidth = false;
|
|
16
|
+
this.rows = 4;
|
|
17
|
+
this.resize = 'vertical';
|
|
18
|
+
this.textareaId = `tg-textarea-${textareaCount++}`;
|
|
19
|
+
this.charCount = 0;
|
|
20
|
+
this.handleInput = (e) => {
|
|
21
|
+
const val = e.target.value;
|
|
22
|
+
this.value = val;
|
|
23
|
+
this.charCount = val.length;
|
|
24
|
+
this.tgChange.emit(val);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
componentWillLoad() {
|
|
28
|
+
this.charCount = this.value.length;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
var _a;
|
|
32
|
+
const isInvalid = !!this.error;
|
|
33
|
+
const isOver = this.maxlength ? this.charCount > this.maxlength : false;
|
|
34
|
+
return (h(Host, { key: '17c61812b338b67cde0bbc207e2a06cca0dba010' }, h("div", { key: '62aa91867bc525ccfcb79045d1b0f895dcd1aca7', class: "tg-textarea-wrapper" }, this.label && (h("label", { key: '2dc2d050dbda70059ab11fbfc65d4b1974fa6aa2', class: "tg-textarea__label", htmlFor: this.textareaId }, this.label, this.required && h("span", { key: 'a8bf38a3ee6f4000b6c39d77b8563e4853716523', class: "tg-textarea__required" }, " *"))), h("textarea", Object.assign({ key: 'a65400a7d015264400b9ea9776153e07b23e72af', id: this.textareaId, class: {
|
|
35
|
+
'tg-textarea__field': true,
|
|
36
|
+
'tg-textarea__field--invalid': isInvalid,
|
|
37
|
+
}, value: this.value, placeholder: (_a = this.placeholder) !== null && _a !== void 0 ? _a : '', disabled: this.disabled, readOnly: this.readonly, required: this.required, rows: this.rows }, (this.maxlength != null ? { maxlength: this.maxlength } : {}), { style: { resize: this.resize } }, (isInvalid ? { 'aria-invalid': 'true' } : {}), (isInvalid ? { 'aria-describedby': `${this.textareaId}-error` } : this.helperText ? { 'aria-describedby': `${this.textareaId}-helper` } : {}), { onInput: this.handleInput, onFocus: () => this.tgFocus.emit(), onBlur: () => this.tgBlur.emit() })), h("div", { key: 'cca4b51d16003baa31080e268aa91f459dd31520', class: "tg-textarea__footer" }, isInvalid ? (h("span", { class: "tg-textarea__error", id: `${this.textareaId}-error` }, this.error)) : this.helperText ? (h("span", { class: "tg-textarea__helper", id: `${this.textareaId}-helper` }, this.helperText)) : h("span", null), this.maxlength !== undefined && (h("span", { key: 'f26710c52fd1c23bb3ee639583a76d3c9cc75aa1', class: { 'tg-textarea__counter': true, 'tg-textarea__counter--over': isOver } }, this.charCount, "/", this.maxlength))))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
let textareaCount = 0;
|
|
41
|
+
TgTextarea.style = tgTextareaCss();
|
|
42
|
+
|
|
43
|
+
export { TgTextarea as tg_textarea };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTimePickerCss = () => `:host{display:block}.tg-time-picker{position:relative;font-family:var(--tg-font-family-sans)}.tg-tp__label{display:block;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);margin-bottom:var(--tg-spacing-1-5)}.tg-tp__input-wrap{display:flex;align-items:center;gap:var(--tg-spacing-2);border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);background:var(--tg-color-surface-raised);padding:0 var(--tg-spacing-3);cursor:pointer;transition:border-color var(--tg-duration-fast), box-shadow var(--tg-duration-fast)}.tg-tp__input-wrap:focus-within{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-tp__input-wrap--invalid{border-color:var(--tg-color-danger)}.tg-tp__icon{color:var(--tg-color-text-secondary);flex-shrink:0}.tg-tp__input{flex:1;border:none;outline:none;background:transparent;color:var(--tg-color-text-primary);font-family:inherit;cursor:pointer}.tg-time-picker--sm .tg-tp__input{height:2rem;font-size:var(--tg-font-size-xs)}.tg-time-picker--md .tg-tp__input{height:2.5rem;font-size:var(--tg-font-size-sm)}.tg-time-picker--lg .tg-tp__input{height:3rem;font-size:var(--tg-font-size-md)}.tg-tp__dropdown{position:absolute;top:100%;left:0;right:0;margin-top:var(--tg-spacing-1);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);box-shadow:var(--tg-shadow-lg);z-index:1000;max-height:14rem;overflow-y:auto;padding:var(--tg-spacing-1) 0;list-style:none}.tg-tp__option{padding:var(--tg-spacing-2) var(--tg-spacing-3);font-size:var(--tg-font-size-sm);cursor:pointer;transition:background var(--tg-duration-fast)}.tg-tp__option:hover{background:var(--tg-color-primary-subtle)}.tg-tp__option--sel{color:var(--tg-color-primary);font-weight:var(--tg-font-weight-medium);background:var(--tg-color-primary-subtle)}`;
|
|
4
|
+
|
|
5
|
+
const TgTimePicker = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.tgChange = createEvent(this, "tgChange");
|
|
9
|
+
this.placeholder = 'HH:MM';
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
this.invalid = false;
|
|
12
|
+
this.size = 'md';
|
|
13
|
+
this.step = 15;
|
|
14
|
+
this.open = false;
|
|
15
|
+
}
|
|
16
|
+
onDocClick() { this.open = false; }
|
|
17
|
+
get timeSlots() {
|
|
18
|
+
const s = [];
|
|
19
|
+
for (let h = 0; h < 24; h++)
|
|
20
|
+
for (let m = 0; m < 60; m += this.step)
|
|
21
|
+
s.push(String(h).padStart(2, '0') + ':' + String(m).padStart(2, '0'));
|
|
22
|
+
return s;
|
|
23
|
+
}
|
|
24
|
+
select(t) { this.tgChange.emit(t); this.open = false; }
|
|
25
|
+
render() {
|
|
26
|
+
var _a;
|
|
27
|
+
return (h(Host, { key: '849781e7e50dd73ecbe0864486a4fe5c6d4685df' }, h("div", { key: 'a81ed67e81f51b8e80cd75476813368323be8d70', class: 'tg-time-picker tg-time-picker--' + this.size, onClick: (e) => e.stopPropagation() }, this.label && h("label", { key: '7e622b24469cc6d6a77a46633060ff14d54fe623', class: "tg-tp__label" }, this.label), h("div", { key: '67feb386304c0bfdbf8dc817fc4cfecc616aba71', class: { 'tg-tp__input-wrap': true, 'tg-tp__input-wrap--invalid': this.invalid }, onClick: () => {
|
|
28
|
+
if (!this.disabled)
|
|
29
|
+
this.open = !this.open;
|
|
30
|
+
} }, h("svg", { key: '7b84f961e363e7ab86a28a314eff985c2f80c272', class: "tg-tp__icon", viewBox: "0 0 20 20", fill: "currentColor", width: "16", height: "16" }, h("path", { key: '4a673cefb5e9a130e78df630fe0df0fbf0868509', "fill-rule": "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z" })), h("input", { key: '8d9c1be087659b8553e59f643a363de13b2bcf29', class: "tg-tp__input", type: "text", readonly: true, value: (_a = this.value) !== null && _a !== void 0 ? _a : '', placeholder: this.placeholder, disabled: this.disabled })), this.open && (h("ul", { key: '1cc12756a2bda771a09c95975cf2cb5395adfc76', class: "tg-tp__dropdown" }, this.timeSlots.map(t => (h("li", { class: { 'tg-tp__option': true, 'tg-tp__option--sel': t === this.value }, onClick: () => this.select(t) }, t))))))));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
TgTimePicker.style = tgTimePickerCss();
|
|
34
|
+
|
|
35
|
+
export { TgTimePicker as tg_time_picker };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTimelineCss = () => `:host{display:block}.tg-timeline{font-family:var(--tg-font-family-sans)}.tg-timeline--vertical .tg-tl__item{display:flex;gap:var(--tg-spacing-3);position:relative;padding-bottom:var(--tg-spacing-6)}.tg-tl__dot{width:2rem;height:2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:var(--tg-font-size-xs);flex-shrink:0;z-index:1}.tg-tl__dot--default{background:var(--tg-color-primary-subtle);color:var(--tg-color-primary);border:2px solid var(--tg-color-primary)}.tg-tl__dot--success{background:var(--tg-color-success-subtle);color:var(--tg-color-success);border:2px solid var(--tg-color-success)}.tg-tl__dot--warning{background:var(--tg-color-warning-subtle);color:var(--tg-color-warning);border:2px solid var(--tg-color-warning)}.tg-tl__dot--danger{background:var(--tg-color-danger-subtle);color:var(--tg-color-danger);border:2px solid var(--tg-color-danger)}.tg-tl__dot--info{background:var(--tg-color-info-subtle);color:var(--tg-color-info);border:2px solid var(--tg-color-info)}.tg-tl__connector{position:absolute;left:calc(1rem - 1px);top:2rem;bottom:0;width:2px;background:var(--tg-color-border)}.tg-tl__content{flex:1;padding-top:var(--tg-spacing-0-5)}.tg-tl__time{display:block;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);margin-bottom:var(--tg-spacing-0-5)}.tg-tl__title{margin:0;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-semibold);color:var(--tg-color-text-primary)}.tg-tl__desc{margin:var(--tg-spacing-1) 0 0;font-size:var(--tg-font-size-sm);color:var(--tg-color-text-secondary);line-height:var(--tg-line-height-relaxed)}`;
|
|
4
|
+
|
|
5
|
+
const TgTimeline = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.items = [];
|
|
9
|
+
this.layout = 'vertical';
|
|
10
|
+
}
|
|
11
|
+
get parsed() {
|
|
12
|
+
if (typeof this.items === 'string') {
|
|
13
|
+
try {
|
|
14
|
+
return JSON.parse(this.items);
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return this.items;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return (h(Host, { key: 'e0c026647ff30d31e7fd659754c374e348cbef6e' }, h("div", { key: 'd549a2cd40cd2d9fdd5ba3f670fe52d74d9a4854', class: 'tg-timeline tg-timeline--' + this.layout }, this.parsed.map((item, i) => (h("div", { class: "tg-tl__item" }, h("div", { class: 'tg-tl__dot tg-tl__dot--' + (item.variant || 'default') }, item.icon || ''), i < this.parsed.length - 1 && h("div", { class: "tg-tl__connector" }), h("div", { class: "tg-tl__content" }, item.time && h("span", { class: "tg-tl__time" }, item.time), h("h4", { class: "tg-tl__title" }, item.title), item.description && h("p", { class: "tg-tl__desc" }, item.description))))))));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
TgTimeline.style = tgTimelineCss();
|
|
27
|
+
|
|
28
|
+
export { TgTimeline as tg_timeline };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgToastCss = () => `:host{display:block}.tg-toast{display:flex;align-items:flex-start;gap:var(--tg-spacing-3);padding:var(--tg-spacing-3) var(--tg-spacing-4);font-family:var(--tg-font-family-sans);border-radius:var(--tg-radius-xl);box-shadow:var(--tg-shadow-lg);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);color:var(--tg-color-text-primary);max-width:24rem;animation:tg-toast-enter var(--tg-duration-slow) var(--tg-ease-out)}.tg-toast--exiting{animation:tg-toast-exit var(--tg-duration-normal) var(--tg-ease-in) forwards}@keyframes tg-toast-enter{from{opacity:0;transform:translateY(1rem) scale(0.95)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes tg-toast-exit{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}.tg-toast--success{border-left:3px solid var(--tg-color-success)}.tg-toast--danger{border-left:3px solid var(--tg-color-danger)}.tg-toast--warning{border-left:3px solid var(--tg-color-warning)}.tg-toast--info{border-left:3px solid var(--tg-color-info)}.tg-toast__icon{width:1.25rem;height:1.25rem;flex-shrink:0;margin-top:0.125rem}.tg-toast--success .tg-toast__icon{color:var(--tg-color-success)}.tg-toast--danger .tg-toast__icon{color:var(--tg-color-danger)}.tg-toast--warning .tg-toast__icon{color:var(--tg-color-warning)}.tg-toast--info .tg-toast__icon{color:var(--tg-color-info)}.tg-toast__body{flex:1;display:flex;flex-direction:column;gap:var(--tg-spacing-1);min-width:0}.tg-toast__title{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-semibold);line-height:var(--tg-line-height-tight)}.tg-toast__message{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);line-height:var(--tg-line-height-normal)}.tg-toast__close{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border:none;background:none;cursor:pointer;color:var(--tg-color-text-secondary);border-radius:var(--tg-radius-md);padding:0;flex-shrink:0;transition:background var(--tg-duration-fast) var(--tg-ease-default)}.tg-toast__close:hover{background:var(--tg-color-neutral-100);color:var(--tg-color-text-primary)}.tg-toast__close svg{width:0.875rem;height:0.875rem}.tg-toast__progress{position:absolute;bottom:0;left:0;height:2px;border-radius:0 0 var(--tg-radius-xl) var(--tg-radius-xl);background:var(--tg-color-primary);transition:width linear}.tg-toast{position:relative;overflow:hidden}`;
|
|
4
|
+
|
|
5
|
+
const TgToast = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.tgDismiss = createEvent(this, "tgDismiss");
|
|
9
|
+
this.variant = 'info';
|
|
10
|
+
this.duration = 5000;
|
|
11
|
+
this.dismissible = true;
|
|
12
|
+
this.visible = true;
|
|
13
|
+
this.exiting = false;
|
|
14
|
+
this.dismiss = () => {
|
|
15
|
+
this.exiting = true;
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
this.visible = false;
|
|
18
|
+
this.tgDismiss.emit();
|
|
19
|
+
}, 200);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
connectedCallback() {
|
|
23
|
+
if (this.duration > 0) {
|
|
24
|
+
this.timer = setTimeout(() => this.dismiss(), this.duration);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
clearTimeout(this.timer);
|
|
29
|
+
}
|
|
30
|
+
getIcon() {
|
|
31
|
+
const icons = {
|
|
32
|
+
success: `<svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z" clip-rule="evenodd"/></svg>`,
|
|
33
|
+
danger: `<svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z" clip-rule="evenodd"/></svg>`,
|
|
34
|
+
warning: `<svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/></svg>`,
|
|
35
|
+
info: `<svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z" clip-rule="evenodd"/></svg>`,
|
|
36
|
+
};
|
|
37
|
+
return icons[this.variant];
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
if (!this.visible)
|
|
41
|
+
return null;
|
|
42
|
+
return (h(Host, null, h("div", { class: {
|
|
43
|
+
'tg-toast': true,
|
|
44
|
+
[`tg-toast--${this.variant}`]: true,
|
|
45
|
+
'tg-toast--exiting': this.exiting,
|
|
46
|
+
}, role: "alert", "aria-live": "assertive" }, h("span", { class: "tg-toast__icon", innerHTML: this.getIcon() }), h("div", { class: "tg-toast__body" }, this.toastTitle && h("span", { class: "tg-toast__title" }, this.toastTitle), this.message && h("span", { class: "tg-toast__message" }, this.message), h("slot", null)), this.dismissible && (h("button", { class: "tg-toast__close", onClick: this.dismiss, "aria-label": "Fermer" }, h("svg", { viewBox: "0 0 14 14", fill: "none", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round" }, h("line", { x1: "3", y1: "3", x2: "11", y2: "11" }), h("line", { x1: "11", y1: "3", x2: "3", y2: "11" })))))));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
TgToast.style = tgToastCss();
|
|
50
|
+
|
|
51
|
+
export { TgToast as tg_toast };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTokenUsageCss = () => `:host{display:block}.tg-tu{font-family:var(--tg-font-family-sans)}.tg-tu__bar{display:flex;height:6px;border-radius:var(--tg-radius-full);background:var(--tg-color-surface-sunken);overflow:hidden}.tg-tu__segment{height:100%;transition:width var(--tg-duration-normal)}.tg-tu__segment--prompt{background:var(--tg-color-primary)}.tg-tu__segment--completion{background:var(--tg-color-info)}.tg-tu__info{display:flex;flex-wrap:wrap;gap:var(--tg-spacing-3);margin-top:var(--tg-spacing-1-5);align-items:center}.tg-tu__stat{display:inline-flex;align-items:center;gap:var(--tg-spacing-1);font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary)}.tg-tu__dot{width:8px;height:8px;border-radius:50%}.tg-tu__dot--prompt{background:var(--tg-color-primary)}.tg-tu__dot--completion{background:var(--tg-color-info)}.tg-tu__total{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);font-family:var(--tg-font-family-mono);margin-left:auto}.tg-tu__cost{font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-tu--compact .tg-tu__info{font-size:var(--tg-font-size-xs);gap:var(--tg-spacing-2)}`;
|
|
4
|
+
|
|
5
|
+
const TgTokenUsage = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.promptTokens = 0;
|
|
9
|
+
this.completionTokens = 0;
|
|
10
|
+
this.maxTokens = 4096;
|
|
11
|
+
this.compact = false;
|
|
12
|
+
}
|
|
13
|
+
get total() { return this.promptTokens + this.completionTokens; }
|
|
14
|
+
get pct() { return (this.total / this.maxTokens) * 100; }
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { key: 'ce0670ef0eb3cc61d04706f9c930db7584a1c970' }, h("div", { key: 'e8037942f8c57a2cf9a5e1d8724cfb06a306b93d', class: { 'tg-tu': true, 'tg-tu--compact': this.compact } }, h("div", { key: '27f3af584a7582fd4b21173cc467944d3747022e', class: "tg-tu__bar" }, h("div", { key: 'dadf017849e681688764c29241425f58e3bc6f2e', class: "tg-tu__segment tg-tu__segment--prompt", style: { width: (this.promptTokens / this.maxTokens * 100) + '%' } }), h("div", { key: '58b5ed73602fa5af342a4f74f549796bbcd6312c', class: "tg-tu__segment tg-tu__segment--completion", style: { width: (this.completionTokens / this.maxTokens * 100) + '%' } })), h("div", { key: 'df6f1b6d5207485898dd4f046a4c4ba7de0e4f85', class: "tg-tu__info" }, h("span", { key: 'c6a10c9839881ce2c15b15a35aa1558afd1212bc', class: "tg-tu__stat" }, h("span", { key: '36d81b57a12a15a80f41feb794df3d477c1d5cd5', class: "tg-tu__dot tg-tu__dot--prompt" }), " Prompt: ", this.promptTokens), h("span", { key: 'ca65c496ee27ee00c90e914d8a2952130e723097', class: "tg-tu__stat" }, h("span", { key: '0fddc113c73fdc51189e71cef6eb2f9832de0e82', class: "tg-tu__dot tg-tu__dot--completion" }), " Compl\\u00e9tion: ", this.completionTokens), h("span", { key: 'f806e3e0450d8259f6f9f7e398c1e7d86cc07a07', class: "tg-tu__total" }, this.total, " / ", this.maxTokens, " (", Math.round(this.pct), "%)"), this.cost && h("span", { key: '076bece91ad867b3ed3e5afdaa4f94eb3405873c', class: "tg-tu__cost" }, this.cost)))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
TgTokenUsage.style = tgTokenUsageCss();
|
|
20
|
+
|
|
21
|
+
export { TgTokenUsage as tg_token_usage };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTooltipCss = () => `:host{display:inline-flex;position:relative}.tg-tooltip__trigger{display:inline-flex}.tg-tooltip__content{position:absolute;z-index:1600;padding:var(--tg-spacing-1-5) var(--tg-spacing-2-5);font-family:var(--tg-font-family-sans);font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium);line-height:var(--tg-line-height-snug);color:var(--tg-color-neutral-0);background:var(--tg-color-neutral-800);border-radius:var(--tg-radius-md);white-space:nowrap;pointer-events:none;opacity:0;transform:scale(0.95);transition:opacity var(--tg-duration-fast) var(--tg-ease-out), transform var(--tg-duration-fast) var(--tg-ease-out);box-shadow:var(--tg-shadow-md)}.tg-tooltip__content--visible{opacity:1;transform:scale(1)}.tg-tooltip__content--top{bottom:100%;left:50%;transform:translateX(-50%) scale(0.95);margin-bottom:var(--tg-spacing-1-5)}.tg-tooltip__content--top.tg-tooltip__content--visible{transform:translateX(-50%) scale(1)}.tg-tooltip__content--bottom{top:100%;left:50%;transform:translateX(-50%) scale(0.95);margin-top:var(--tg-spacing-1-5)}.tg-tooltip__content--bottom.tg-tooltip__content--visible{transform:translateX(-50%) scale(1)}.tg-tooltip__content--left{right:100%;top:50%;transform:translateY(-50%) scale(0.95);margin-right:var(--tg-spacing-1-5)}.tg-tooltip__content--left.tg-tooltip__content--visible{transform:translateY(-50%) scale(1)}.tg-tooltip__content--right{left:100%;top:50%;transform:translateY(-50%) scale(0.95);margin-left:var(--tg-spacing-1-5)}.tg-tooltip__content--right.tg-tooltip__content--visible{transform:translateY(-50%) scale(1)}.tg-tooltip__content::after{content:'';position:absolute;width:6px;height:6px;background:var(--tg-color-neutral-800);transform:rotate(45deg)}.tg-tooltip__content--top::after{bottom:-3px;left:50%;margin-left:-3px}.tg-tooltip__content--bottom::after{top:-3px;left:50%;margin-left:-3px}.tg-tooltip__content--left::after{right:-3px;top:50%;margin-top:-3px}.tg-tooltip__content--right::after{left:-3px;top:50%;margin-top:-3px}`;
|
|
4
|
+
|
|
5
|
+
const TgTooltip = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.text = '';
|
|
9
|
+
this.position = 'top';
|
|
10
|
+
this.delay = 200;
|
|
11
|
+
this.visible = false;
|
|
12
|
+
this.show = () => {
|
|
13
|
+
this.showTimeout = setTimeout(() => { this.visible = true; }, this.delay);
|
|
14
|
+
};
|
|
15
|
+
this.hide = () => {
|
|
16
|
+
clearTimeout(this.showTimeout);
|
|
17
|
+
this.visible = false;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, { key: '49be9dbde614486e03430b933d2381127bd4c3fd', onMouseEnter: this.show, onMouseLeave: this.hide, onFocusin: this.show, onFocusout: this.hide }, h("span", { key: '52f041f387a611de25dfc8362762dab68547b0c8', class: "tg-tooltip__trigger" }, h("slot", { key: 'ecf1fa7b4498714dbf063266baa3f4ea3bca8f52' })), this.text && (h("span", { key: '1662fd98d6fd38d04caa678c674ab97a936b18ab', class: {
|
|
22
|
+
'tg-tooltip__content': true,
|
|
23
|
+
[`tg-tooltip__content--${this.position}`]: true,
|
|
24
|
+
'tg-tooltip__content--visible': this.visible,
|
|
25
|
+
}, role: "tooltip" }, this.text))));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
TgTooltip.style = tgTooltipCss();
|
|
29
|
+
|
|
30
|
+
export { TgTooltip as tg_tooltip };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgTreeViewCss = () => `:host{display:block}.tg-tree-view{font-family:var(--tg-font-family-sans)}.tg-tv__node{display:flex;align-items:center;gap:var(--tg-spacing-1);padding:var(--tg-spacing-1-5) var(--tg-spacing-2);cursor:pointer;border-radius:var(--tg-radius-md);font-size:var(--tg-font-size-sm);color:var(--tg-color-text-primary);transition:background var(--tg-duration-fast);user-select:none}.tg-tv__node:hover{background:var(--tg-color-primary-subtle)}.tg-tv__node--sel{background:var(--tg-color-primary-subtle);color:var(--tg-color-primary);font-weight:var(--tg-font-weight-medium)}.tg-tv__arrow{display:flex;transition:transform var(--tg-duration-fast);color:var(--tg-color-text-secondary)}.tg-tv__arrow--expanded{transform:rotate(90deg)}.tg-tv__arrow--hidden{visibility:hidden}.tg-tv__icon{font-size:1rem}.tg-tv__label{flex:1}`;
|
|
4
|
+
|
|
5
|
+
const TgTreeView = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.data = [];
|
|
9
|
+
this.selectable = false;
|
|
10
|
+
this.expandedKeys = new Set();
|
|
11
|
+
this.selectedKey = '';
|
|
12
|
+
}
|
|
13
|
+
get parsed() {
|
|
14
|
+
if (typeof this.data === 'string') {
|
|
15
|
+
try {
|
|
16
|
+
return JSON.parse(this.data);
|
|
17
|
+
}
|
|
18
|
+
catch (_a) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return this.data;
|
|
23
|
+
}
|
|
24
|
+
toggle(key) {
|
|
25
|
+
const s = new Set(this.expandedKeys);
|
|
26
|
+
if (s.has(key))
|
|
27
|
+
s.delete(key);
|
|
28
|
+
else
|
|
29
|
+
s.add(key);
|
|
30
|
+
this.expandedKeys = s;
|
|
31
|
+
}
|
|
32
|
+
renderNode(node, key, depth) {
|
|
33
|
+
const hasKids = node.children && node.children.length > 0;
|
|
34
|
+
const expanded = this.expandedKeys.has(key);
|
|
35
|
+
return [
|
|
36
|
+
h("div", { class: { 'tg-tv__node': true, 'tg-tv__node--sel': this.selectedKey === key }, style: { paddingLeft: (depth * 1.25) + 'rem' }, onClick: () => {
|
|
37
|
+
if (hasKids)
|
|
38
|
+
this.toggle(key);
|
|
39
|
+
if (this.selectable)
|
|
40
|
+
this.selectedKey = key;
|
|
41
|
+
} }, h("span", { class: { 'tg-tv__arrow': true, 'tg-tv__arrow--expanded': expanded, 'tg-tv__arrow--hidden': !hasKids } }, h("svg", { viewBox: "0 0 16 16", fill: "currentColor", width: "12", height: "12" }, h("path", { d: "M6 4l4 4-4 4z" }))), node.icon && h("span", { class: "tg-tv__icon" }, node.icon), h("span", { class: "tg-tv__label" }, node.label)),
|
|
42
|
+
hasKids && expanded && node.children.map((child, i) => this.renderNode(child, key + '-' + i, depth + 1))
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return (h(Host, { key: 'c80aaea69704113b373305ea6149c344ea155406' }, h("div", { key: 'da6c72d703622634d462d1ef21ec071d60e7c53e', class: "tg-tree-view" }, this.parsed.map((n, i) => this.renderNode(n, String(i), 0)))));
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
TgTreeView.style = tgTreeViewCss();
|
|
50
|
+
|
|
51
|
+
export { TgTreeView as tg_tree_view };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgUndoSnackbarCss = () => `:host{display:block;position:fixed;bottom:var(--tg-spacing-4);left:50%;transform:translateX(-50%);z-index:10000}.tg-us{display:flex;align-items:center;gap:var(--tg-spacing-3);padding:var(--tg-spacing-3) var(--tg-spacing-4);background:var(--tg-color-neutral-900);color:white;border-radius:var(--tg-radius-lg);box-shadow:var(--tg-shadow-xl);font-family:var(--tg-font-family-sans);animation:tg-us-in 0.2s var(--tg-ease-out)}@keyframes tg-us-in{from{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:translateY(0)}}.tg-us__msg{font-size:var(--tg-font-size-sm)}.tg-us__undo{background:none;border:none;color:var(--tg-color-primary, #4ade80);font-weight:var(--tg-font-weight-semibold);font-size:var(--tg-font-size-sm);cursor:pointer;text-transform:uppercase;letter-spacing:var(--tg-tracking-wide)}.tg-us__undo:hover{text-decoration:underline}.tg-us__close{background:none;border:none;color:rgba(255,255,255,0.6);font-size:1.25rem;cursor:pointer;padding:0;line-height:1}.tg-us__close:hover{color:white}`;
|
|
4
|
+
|
|
5
|
+
const TgUndoSnackbar = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.tgUndo = createEvent(this, "tgUndo");
|
|
9
|
+
this.tgDismiss = createEvent(this, "tgDismiss");
|
|
10
|
+
this.message = '';
|
|
11
|
+
this.open = false;
|
|
12
|
+
this.undoLabel = 'Annuler';
|
|
13
|
+
this.duration = 5000;
|
|
14
|
+
}
|
|
15
|
+
componentDidUpdate() {
|
|
16
|
+
if (this.open && this.duration > 0) {
|
|
17
|
+
setTimeout(() => this.tgDismiss.emit(), this.duration);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
if (!this.open)
|
|
22
|
+
return h(Host, null);
|
|
23
|
+
return (h(Host, null, h("div", { class: "tg-us" }, h("span", { class: "tg-us__msg" }, this.message), h("button", { class: "tg-us__undo", type: "button", onClick: () => this.tgUndo.emit() }, this.undoLabel), h("button", { class: "tg-us__close", type: "button", "aria-label": "Close", onClick: () => this.tgDismiss.emit() }, "\\u00d7"))));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
TgUndoSnackbar.style = tgUndoSnackbarCss();
|
|
27
|
+
|
|
28
|
+
export { TgUndoSnackbar as tg_undo_snackbar };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgVideoPlayerCss = () => `:host{display:block}.tg-vp{font-family:var(--tg-font-family-sans);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-xl);overflow:hidden;background:var(--tg-color-neutral-900)}.tg-vp__header{padding:var(--tg-spacing-2) var(--tg-spacing-3);background:var(--tg-color-surface-raised);border-bottom:1px solid var(--tg-color-border)}.tg-vp__title{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-vp__container{position:relative;width:100%}.tg-vp__video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}`;
|
|
4
|
+
|
|
5
|
+
const TgVideoPlayer = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.src = '';
|
|
9
|
+
this.aspectRatio = '16/9';
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h(Host, { key: '6f0dbc06a4893ff242d6fd4ed6552d4a40b6a12b' }, h("div", { key: '907de69e60c7bcf4e160098b8ab5e3618274b201', class: "tg-vp" }, this.heading && h("div", { key: 'f2209ad8ecf963eea39b108f77080d5e305b5f8c', class: "tg-vp__header" }, h("span", { key: '8156016564902a363fc2e36b3a9a36b38c32ca86', class: "tg-vp__title" }, this.heading)), h("div", { key: '0bb6a8ee43cd5df6ff8437b29b9bfb98cbd815d8', class: "tg-vp__container", style: { aspectRatio: this.aspectRatio } }, h("video", Object.assign({ key: '9e4882704f2ee94fa07eedc885f62de695fe29cd', class: "tg-vp__video", controls: true }, (this.poster ? { poster: this.poster } : {}), { preload: "metadata" }), h("source", { key: '4f239ccf6d3fb836671ac1c761b2cb6acc947bca', src: this.src }))))));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
TgVideoPlayer.style = tgVideoPlayerCss();
|
|
16
|
+
|
|
17
|
+
export { TgVideoPlayer as tg_video_player };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-CXqO9vvj.js';
|
|
2
|
+
|
|
3
|
+
const tgWizardNavCss = () => `:host{display:block}.tg-wiz{font-family:var(--tg-font-family-sans)}.tg-wiz__progress{height:4px;background:var(--tg-color-surface-sunken);border-radius:var(--tg-radius-full);margin-bottom:var(--tg-spacing-3);overflow:hidden}.tg-wiz__bar{height:100%;background:var(--tg-color-primary);border-radius:var(--tg-radius-full);transition:width var(--tg-duration-normal) var(--tg-ease-out)}.tg-wiz__actions{display:flex;align-items:center;justify-content:space-between}.tg-wiz__btn{display:inline-flex;align-items:center;gap:var(--tg-spacing-1);padding:var(--tg-spacing-2) var(--tg-spacing-4);border-radius:var(--tg-radius-lg);font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);cursor:pointer;transition:all var(--tg-duration-fast);border:1px solid transparent}.tg-wiz__btn--back{background:none;color:var(--tg-color-text-secondary);border-color:var(--tg-color-border)}.tg-wiz__btn--back:hover:not(:disabled){background:var(--tg-color-surface-sunken)}.tg-wiz__btn--back:disabled{opacity:0.4;cursor:not-allowed}.tg-wiz__btn--next{background:var(--tg-color-primary);color:var(--tg-color-primary-on)}.tg-wiz__btn--next:hover{filter:brightness(1.1)}.tg-wiz__btn--finish{background:var(--tg-color-success);color:white}.tg-wiz__btn--finish:hover{filter:brightness(1.1)}.tg-wiz__step{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary)}`;
|
|
4
|
+
|
|
5
|
+
const TgWizardNav = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.tgBack = createEvent(this, "tgBack");
|
|
9
|
+
this.tgNext = createEvent(this, "tgNext");
|
|
10
|
+
this.tgFinish = createEvent(this, "tgFinish");
|
|
11
|
+
this.currentStep = 0;
|
|
12
|
+
this.totalSteps = 1;
|
|
13
|
+
this.backLabel = 'Pr\u00e9c\u00e9dent';
|
|
14
|
+
this.nextLabel = 'Suivant';
|
|
15
|
+
this.finishLabel = 'Terminer';
|
|
16
|
+
this.showProgress = true;
|
|
17
|
+
}
|
|
18
|
+
get isLast() { return this.currentStep >= this.totalSteps - 1; }
|
|
19
|
+
get progress() { return ((this.currentStep + 1) / this.totalSteps) * 100; }
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, { key: 'edb5f78e83c1dab9e34200063b803b7842cce693' }, h("div", { key: '030c10b44b1e92ee8e45d41851fd7853f9175ff8', class: "tg-wiz" }, this.showProgress && (h("div", { key: '0315eddfb2be048a582b3e16499c725978c1742a', class: "tg-wiz__progress" }, h("div", { key: 'e8949eed4cd964dcab17835a37689dd3d63bb846', class: "tg-wiz__bar", style: { width: this.progress + '%' } }))), h("div", { key: '10eec94b68f18850d33c4e5642f57f1b5360875f', class: "tg-wiz__actions" }, h("button", { key: '31323728f528247c336b8a9bc066c9690179e586', class: "tg-wiz__btn tg-wiz__btn--back", type: "button", disabled: this.currentStep === 0, onClick: () => this.tgBack.emit() }, "\\u2039 ", this.backLabel), h("span", { key: 'e397620856c90eaa0ebe614be777a7c37621e171', class: "tg-wiz__step" }, "\\u00c9tape ", this.currentStep + 1, " / ", this.totalSteps), this.isLast
|
|
22
|
+
? h("button", { class: "tg-wiz__btn tg-wiz__btn--finish", type: "button", onClick: () => this.tgFinish.emit() }, this.finishLabel)
|
|
23
|
+
: h("button", { class: "tg-wiz__btn tg-wiz__btn--next", type: "button", onClick: () => this.tgNext.emit() }, this.nextLabel, " \\u203a")))));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
TgWizardNav.style = tgWizardNavCss();
|
|
27
|
+
|
|
28
|
+
export { TgWizardNav as tg_wizard_nav };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as t,H as a}from"./p-CXqO9vvj.js";const e=class{constructor(t){r(this,t),this.items=[],this.maxItems=0,this.expanded=!1}get parsedItems(){if("string"==typeof this.items)try{return JSON.parse(this.items)}catch(r){return[]}return this.items}renderSeparator(){return t("span",{class:"tg-breadcrumb__separator","aria-hidden":"true"},t("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},t("polyline",{points:"5 3 9 7 5 11"})))}render(){var r;let e=this.parsedItems;return t(a,{key:"713d7c835e0185576258e0a44410fe26d9e453bc"},t("nav",{key:"bd2763aafcbcde1eb37a28f8bfc8f9625d9d6bab","aria-label":"Fil d'Ariane"},t("ol",{key:"1b44c93e04c6702244336612ff28c427e68b9b0f",class:"tg-breadcrumb"},this.maxItems>0&&e.length>this.maxItems&&!this.expanded?[t("li",{class:"tg-breadcrumb__item"},t("a",{class:"tg-breadcrumb__link",href:null!==(r=e[0].href)&&void 0!==r?r:"#"},e[0].label),this.renderSeparator()),t("li",{class:"tg-breadcrumb__item"},t("button",{class:"tg-breadcrumb__ellipsis",onClick:()=>this.expanded=!0,"aria-label":"Voir plus"},"…"),this.renderSeparator()),...e.slice(-2).map(((r,a,e)=>{var s;return t("li",{class:"tg-breadcrumb__item"},a<e.length-1?[t("a",{class:"tg-breadcrumb__link",href:null!==(s=r.href)&&void 0!==s?s:"#"},r.label),this.renderSeparator()]:t("span",{class:"tg-breadcrumb__current","aria-current":"page"},r.label))}))]:e.map(((r,a)=>{var s;return t("li",{class:"tg-breadcrumb__item"},a<e.length-1?[t("a",{class:"tg-breadcrumb__link",href:null!==(s=r.href)&&void 0!==s?s:"#"},r.label),this.renderSeparator()]:t("span",{class:"tg-breadcrumb__current","aria-current":"page"},r.label))})))))}};e.style=":host{display:block}.tg-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:var(--tg-spacing-2xs, 4px);font-family:var(--tg-font-family, sans-serif);font-size:var(--tg-font-size-sm, 0.8125rem);list-style:none;padding:0;margin:0}.tg-breadcrumb__item{display:inline-flex;align-items:center;gap:var(--tg-spacing-2xs, 4px)}.tg-breadcrumb__link{color:var(--tg-color-text-secondary, #6b7280);text-decoration:none;font-weight:var(--tg-font-weight-medium, 500);transition:color var(--tg-duration-fast, 150ms);border-radius:var(--tg-radius-sm, 4px);padding:2px 4px;margin:-2px -4px}.tg-breadcrumb__link:hover{color:var(--tg-color-primary, #00853F)}.tg-breadcrumb__link:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-breadcrumb__current{color:var(--tg-color-text, #111827);font-weight:var(--tg-font-weight-semibold, 600);padding:2px 4px;margin:-2px -4px}.tg-breadcrumb__separator{color:var(--tg-color-neutral-300, #d1d5db);display:inline-flex;align-items:center;user-select:none}.tg-breadcrumb__separator svg{width:14px;height:14px}.tg-breadcrumb__ellipsis{appearance:none;border:none;background:transparent;cursor:pointer;color:var(--tg-color-text-secondary, #6b7280);font-size:var(--tg-font-size-sm, 0.8125rem);padding:2px 4px;border-radius:var(--tg-radius-sm, 4px);transition:color var(--tg-duration-fast, 150ms), background var(--tg-duration-fast, 150ms)}.tg-breadcrumb__ellipsis:hover{background:var(--tg-color-neutral-100, #f3f4f6);color:var(--tg-color-text, #111827)}.tg-breadcrumb__ellipsis:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}";export{e as tg_breadcrumb}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as a,h as r,H as s}from"./p-CXqO9vvj.js";const o=class{constructor(r){t(this,r),this.tgTabChange=a(this,"tgTabChange"),this.tabs=[],this.variant="underline",this.selectTab=t=>{t.disabled||(this.internalActive=t.id,this.activeTab=t.id,this.tgTabChange.emit(t.id))}}get parsedTabs(){if("string"==typeof this.tabs)try{return JSON.parse(this.tabs)}catch(t){return[]}return this.tabs}componentWillLoad(){var t;const a=this.parsedTabs;this.internalActive=null!==(t=this.activeTab)&&void 0!==t?t:a.length>0?a[0].id:""}render(){return r(s,{key:"c68ffca94fcc42f99cde35f88f37677e4b85e8e3"},r("div",{key:"f4303416e3144410bc3cce2d71dbd8b9ef9e0def",class:"tg-tabs"},r("div",{key:"4da9fbb011b839a3400e07ca34968f7dc6df5d86",class:{"tg-tabs__list":!0,"tg-tabs__list--pills":"pills"===this.variant},role:"tablist"},this.parsedTabs.map((t=>r("button",{class:{"tg-tabs__tab":!0,"tg-tabs__tab--active":this.internalActive===t.id},role:"tab","aria-selected":this.internalActive===t.id?"true":"false","aria-disabled":t.disabled?"true":void 0,onClick:()=>this.selectTab(t),tabindex:t.disabled?-1:0},t.label,t.badge&&r("span",{class:"tg-tabs__badge"},t.badge))))),r("div",{key:"ec6ced09c19b7e257706592a01a7e6457833113f",class:"tg-tabs__panel",role:"tabpanel"},r("slot",{key:"a7ecf6c0045e9b3245decfec424b1f0cb2b642fc"}))))}};o.style=":host{display:block}.tg-tabs{display:flex;flex-direction:column}.tg-tabs__list{display:flex;gap:var(--tg-spacing-2xs, 4px);border-bottom:2px solid var(--tg-color-neutral-100, #f3f4f6);padding:0;margin:0;list-style:none;overflow-x:auto;scrollbar-width:none}.tg-tabs__list::-webkit-scrollbar{display:none}.tg-tabs__list--pills{border-bottom:none;background:var(--tg-color-neutral-50, #f9fafb);border-radius:var(--tg-radius-lg, 12px);padding:var(--tg-spacing-2xs, 4px)}.tg-tabs__tab{appearance:none;border:none;background:transparent;cursor:pointer;font-family:var(--tg-font-family, sans-serif);font-size:var(--tg-font-size-sm, 0.8125rem);font-weight:var(--tg-font-weight-medium, 500);color:var(--tg-color-text-secondary, #6b7280);padding:var(--tg-spacing-sm, 12px) var(--tg-spacing-md, 16px);white-space:nowrap;position:relative;transition:color var(--tg-duration-fast, 150ms), background var(--tg-duration-fast, 150ms);border-radius:0}.tg-tabs__tab::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;background:transparent;transition:background var(--tg-duration-fast, 150ms)}.tg-tabs__tab:hover{color:var(--tg-color-text, #111827)}.tg-tabs__tab--active{color:var(--tg-color-primary, #00853F)}.tg-tabs__tab--active::after{background:var(--tg-color-primary, #00853F)}.tg-tabs__tab:focus-visible{outline:none;box-shadow:var(--tg-focus-ring);border-radius:var(--tg-radius-sm, 4px)}.tg-tabs__list--pills .tg-tabs__tab{border-radius:var(--tg-radius-md, 8px)}.tg-tabs__list--pills .tg-tabs__tab::after{display:none}.tg-tabs__list--pills .tg-tabs__tab--active{background:var(--tg-color-surface, #fff);box-shadow:var(--tg-shadow-sm, 0 1px 3px rgba(0,0,0,0.1));color:var(--tg-color-primary, #00853F)}.tg-tabs__badge{display:inline-flex;align-items:center;justify-content:center;font-size:0.6875rem;font-weight:var(--tg-font-weight-semibold, 600);background:var(--tg-color-neutral-100, #f3f4f6);color:var(--tg-color-text-secondary, #6b7280);border-radius:9999px;padding:0 6px;min-width:18px;height:18px;margin-left:var(--tg-spacing-2xs, 4px)}.tg-tabs__tab--active .tg-tabs__badge{background:var(--tg-color-primary-50, #ecfdf5);color:var(--tg-color-primary, #00853F)}.tg-tabs__panel{padding:var(--tg-spacing-md, 16px) 0}";export{o as tg_tabs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as r}from"./p-CXqO9vvj.js";const i=class{constructor(a){t(this,a),this.heading="",this.value="",this.variant="default"}render(){return a(r,{key:"59a6b36432315e5fa734c9692f77b9d992c3cdb4"},a("div",{key:"761450ae5065d82379e7bd020244709b214bdf76",class:"tg-kpi tg-kpi--"+this.variant},a("div",{key:"c9f9d54951bf507128b6acc7ddd3638b57dabec1",class:"tg-kpi__header"},this.icon&&a("span",{key:"daf8d996d601e5064b58da5a8381a96eb3bc2bdc",class:"tg-kpi__icon"},this.icon),a("span",{key:"df039f3a57f0d6e7536579ab0d3e54892e9de19a",class:"tg-kpi__title"},this.heading)),a("div",{key:"d75dde0f1857d31bfa66b9f82ea8b3b3c4f2b6c9",class:"tg-kpi__body"},a("span",{key:"e68fe293bc795a2ca90f88972da6c2f08b86e30f",class:"tg-kpi__value"},this.value),this.unit&&a("span",{key:"6cafc1dbe979dc0e74cb8d116f048c19edd65bb2",class:"tg-kpi__unit"},this.unit)),this.trend&&a("div",{key:"1e9b6ce2fb01c19a01df0a6aeae3522782ddb21f",class:"tg-kpi__trend tg-kpi__trend--"+this.trend},a("span",{key:"55300f6c15a71fb63f5f5a5a26642a68ddbec5d5",class:"tg-kpi__trend-arrow"},"up"===this.trend?"↑":"down"===this.trend?"↓":"→"),this.trendValue&&a("span",{key:"921388ed870275169e331d0e664091a99577fc46",class:"tg-kpi__trend-val"},this.trendValue))))}};i.style=":host{display:block}.tg-kpi{font-family:var(--tg-font-family-sans);padding:var(--tg-spacing-5);border-radius:var(--tg-radius-xl);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);transition:box-shadow var(--tg-duration-normal)}.tg-kpi:hover{box-shadow:var(--tg-shadow-md)}.tg-kpi__header{display:flex;align-items:center;gap:var(--tg-spacing-2);margin-bottom:var(--tg-spacing-2)}.tg-kpi__icon{font-size:1.25rem}.tg-kpi__title{font-size:var(--tg-font-size-sm);color:var(--tg-color-text-secondary);font-weight:var(--tg-font-weight-medium)}.tg-kpi__body{display:flex;align-items:baseline;gap:var(--tg-spacing-1);margin-bottom:var(--tg-spacing-2)}.tg-kpi__value{font-size:var(--tg-font-size-3xl);font-weight:var(--tg-font-weight-bold);font-family:var(--tg-font-family-display);color:var(--tg-color-text-primary)}.tg-kpi__unit{font-size:var(--tg-font-size-sm);color:var(--tg-color-text-secondary)}.tg-kpi__trend{display:inline-flex;align-items:center;gap:var(--tg-spacing-1);padding:var(--tg-spacing-0-5) var(--tg-spacing-2);border-radius:var(--tg-radius-full);font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium)}.tg-kpi__trend--up{background:var(--tg-color-success-subtle);color:var(--tg-color-success)}.tg-kpi__trend--down{background:var(--tg-color-danger-subtle);color:var(--tg-color-danger)}.tg-kpi__trend--neutral{background:var(--tg-color-surface-sunken);color:var(--tg-color-text-secondary)}.tg-kpi--primary .tg-kpi__value{color:var(--tg-color-primary)}.tg-kpi--success .tg-kpi__value{color:var(--tg-color-success)}.tg-kpi--warning .tg-kpi__value{color:var(--tg-color-warning)}.tg-kpi--danger .tg-kpi__value{color:var(--tg-color-danger)}";export{i as tg_kpi_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r,H as e}from"./p-CXqO9vvj.js";const i=class{constructor(r){t(this,r),this.users=[],this.max=5}get parsed(){if("string"==typeof this.users)try{return JSON.parse(this.users)}catch(t){return[]}return this.users}render(){const t=this.parsed,i=t.slice(0,this.max),s=t.length-this.max;return r(e,{key:"0b487e480aa59c5a4ad54397272708545548507d"},r("div",{key:"cea81db6a79f714de8059cf0d3b13193c131befa",class:"tg-pi"},i.map((t=>r("div",{class:"tg-pi__user",title:t.name},r("div",{class:"tg-pi__avatar"},t.avatar||t.name.charAt(0).toUpperCase()),r("span",{class:"tg-pi__status tg-pi__status--"+(t.status||"online")})))),s>0&&r("div",{key:"b33de0b416fb70e108813b0a988e67781a81c510",class:"tg-pi__more"},"+",s)))}};i.style=":host{display:inline-flex}.tg-pi{display:flex;align-items:center}.tg-pi__user{position:relative;margin-left:-6px}.tg-pi__user:first-child{margin-left:0}.tg-pi__avatar{width:2rem;height:2rem;border-radius:50%;background:var(--tg-color-primary-subtle);color:var(--tg-color-primary);display:flex;align-items:center;justify-content:center;font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-semibold);font-family:var(--tg-font-family-sans);border:2px solid var(--tg-color-surface-raised)}.tg-pi__status{position:absolute;bottom:0;right:0;width:10px;height:10px;border-radius:50%;border:2px solid var(--tg-color-surface-raised)}.tg-pi__status--online{background:var(--tg-color-success)}.tg-pi__status--away{background:var(--tg-color-warning)}.tg-pi__status--busy{background:var(--tg-color-danger)}.tg-pi__more{width:2rem;height:2rem;border-radius:50%;background:var(--tg-color-surface-sunken);color:var(--tg-color-text-secondary);display:flex;align-items:center;justify-content:center;font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium);margin-left:-6px;border:2px solid var(--tg-color-surface-raised)}";export{i as tg_presence_indicator}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as a}from"./p-CXqO9vvj.js";const i=class{constructor(e){t(this,e),this.sections=[],this.collapsible=!0,this.collapsed=!1,this.toggle=()=>{this.collapsed=!this.collapsed}}get parsedSections(){if("string"==typeof this.sections)try{return JSON.parse(this.sections)}catch(t){return[]}return this.sections}render(){return e(a,{key:"b737361dcac64bcb5be072cd15fdffd1403727b8"},e("aside",{key:"1f245cfb865867879bab9d99684d1df5bda5695d",class:{"tg-sidebar":!0,"tg-sidebar--collapsed":this.collapsed}},e("div",{key:"1598853eb15bda306f63a1d10ebe014c98b6b05b",class:"tg-sidebar__header"},this.sidebarTitle&&e("span",{key:"02126064491917cab82bd81cdc267d5ed0d5684c",class:"tg-sidebar__title"},this.sidebarTitle),this.collapsible&&e("button",{key:"e56f87603071294c12b43c9a616244d3e15773d7",class:"tg-sidebar__collapse-btn",onClick:this.toggle,"aria-label":this.collapsed?"Déplier":"Réduire",innerHTML:'<svg viewBox="0 0 18 18" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><polyline points="11 4 6 9 11 14"/></svg>'})),this.parsedSections.map((t=>e("div",{class:"tg-sidebar__section"},t.title&&e("div",{class:"tg-sidebar__section-title"},t.title),e("ul",{class:"tg-sidebar__nav"},t.items.map((t=>e("li",null,e("a",{class:{"tg-sidebar__link":!0,"tg-sidebar__link--active":!!t.active},href:t.href},t.icon&&e("span",{class:"tg-sidebar__link-icon",innerHTML:t.icon}),e("span",{class:"tg-sidebar__link-label"},t.label),t.badge&&e("span",{class:"tg-sidebar__badge"},t.badge))))))))),e("div",{key:"4b6663f96bc740f7e6643b78a6de05a49457754b",class:"tg-sidebar__footer"},e("slot",{key:"5af6b38e199baeb4b45dde26aaadfad7e0930bc7",name:"footer"}))))}};i.style=":host{display:block}.tg-sidebar{display:flex;flex-direction:column;width:260px;min-height:100%;background:var(--tg-color-surface, #fff);border-right:1px solid var(--tg-color-neutral-100, #f3f4f6);font-family:var(--tg-font-family, sans-serif);padding:var(--tg-spacing-md, 16px);transition:width var(--tg-duration-normal, 200ms) var(--tg-ease-default, ease), transform var(--tg-duration-normal, 200ms) var(--tg-ease-default, ease)}.tg-sidebar--collapsed{width:64px}.tg-sidebar__header{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--tg-spacing-md, 16px);margin-bottom:var(--tg-spacing-sm, 12px);border-bottom:1px solid var(--tg-color-neutral-100, #f3f4f6)}.tg-sidebar__title{font-size:var(--tg-font-size-md, 0.875rem);font-weight:var(--tg-font-weight-semibold, 600);color:var(--tg-color-text, #111827);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tg-sidebar--collapsed .tg-sidebar__title{display:none}.tg-sidebar__collapse-btn{appearance:none;border:none;background:transparent;cursor:pointer;padding:var(--tg-spacing-xs, 8px);border-radius:var(--tg-radius-md, 8px);color:var(--tg-color-text-secondary, #6b7280);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background var(--tg-duration-fast, 150ms)}.tg-sidebar__collapse-btn:hover{background:var(--tg-color-neutral-50, #f9fafb)}.tg-sidebar__collapse-btn:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-sidebar__collapse-btn svg{width:18px;height:18px;transition:transform var(--tg-duration-fast, 150ms)}.tg-sidebar--collapsed .tg-sidebar__collapse-btn svg{transform:rotate(180deg)}.tg-sidebar__section{margin-bottom:var(--tg-spacing-md, 16px)}.tg-sidebar__section-title{font-size:0.6875rem;font-weight:var(--tg-font-weight-semibold, 600);text-transform:uppercase;letter-spacing:0.05em;color:var(--tg-color-text-secondary, #6b7280);padding:0 var(--tg-spacing-sm, 12px);margin-bottom:var(--tg-spacing-xs, 8px)}.tg-sidebar--collapsed .tg-sidebar__section-title{display:none}.tg-sidebar__nav{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}.tg-sidebar__link{display:flex;align-items:center;gap:var(--tg-spacing-sm, 12px);padding:var(--tg-spacing-xs, 8px) var(--tg-spacing-sm, 12px);border-radius:var(--tg-radius-md, 8px);color:var(--tg-color-text-secondary, #6b7280);text-decoration:none;font-size:var(--tg-font-size-sm, 0.8125rem);font-weight:var(--tg-font-weight-medium, 500);transition:color var(--tg-duration-fast, 150ms), background var(--tg-duration-fast, 150ms);white-space:nowrap;overflow:hidden}.tg-sidebar__link:hover{color:var(--tg-color-text, #111827);background:var(--tg-color-neutral-50, #f9fafb)}.tg-sidebar__link--active{color:var(--tg-color-primary, #00853F);background:var(--tg-color-primary-50, #ecfdf5)}.tg-sidebar__link:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-sidebar__link-icon{display:inline-flex;flex-shrink:0;width:20px;height:20px}.tg-sidebar__link-icon svg{width:20px;height:20px}.tg-sidebar__link-label{overflow:hidden;text-overflow:ellipsis}.tg-sidebar--collapsed .tg-sidebar__link-label{display:none}.tg-sidebar--collapsed .tg-sidebar__link{justify-content:center;padding:var(--tg-spacing-xs, 8px)}.tg-sidebar__badge{margin-left:auto;font-size:0.6875rem;font-weight:var(--tg-font-weight-semibold, 600);background:var(--tg-color-danger, #dc2626);color:#fff;border-radius:9999px;padding:0 6px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}.tg-sidebar--collapsed .tg-sidebar__badge{display:none}.tg-sidebar__footer{margin-top:auto;padding-top:var(--tg-spacing-md, 16px);border-top:1px solid var(--tg-color-neutral-100, #f3f4f6)}";export{i as tg_sidebar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as a}from"./p-CXqO9vvj.js";const o=class{constructor(e){t(this,e),this.src="",this.aspectRatio="16/9"}render(){return e(a,{key:"6f0dbc06a4893ff242d6fd4ed6552d4a40b6a12b"},e("div",{key:"907de69e60c7bcf4e160098b8ab5e3618274b201",class:"tg-vp"},this.heading&&e("div",{key:"f2209ad8ecf963eea39b108f77080d5e305b5f8c",class:"tg-vp__header"},e("span",{key:"8156016564902a363fc2e36b3a9a36b38c32ca86",class:"tg-vp__title"},this.heading)),e("div",{key:"0bb6a8ee43cd5df6ff8437b29b9bfb98cbd815d8",class:"tg-vp__container",style:{aspectRatio:this.aspectRatio}},e("video",Object.assign({key:"9e4882704f2ee94fa07eedc885f62de695fe29cd",class:"tg-vp__video",controls:!0},this.poster?{poster:this.poster}:{},{preload:"metadata"}),e("source",{key:"4f239ccf6d3fb836671ac1c761b2cb6acc947bca",src:this.src})))))}};o.style=":host{display:block}.tg-vp{font-family:var(--tg-font-family-sans);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-xl);overflow:hidden;background:var(--tg-color-neutral-900)}.tg-vp__header{padding:var(--tg-spacing-2) var(--tg-spacing-3);background:var(--tg-color-surface-raised);border-bottom:1px solid var(--tg-color-border)}.tg-vp__title{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-vp__container{position:relative;width:100%}.tg-vp__video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}";export{o as tg_video_player}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as r}from"./p-CXqO9vvj.js";const i=class{constructor(a){t(this,a),this.tgChange=e(this,"tgChange"),this.tgFocus=e(this,"tgFocus"),this.tgBlur=e(this,"tgBlur"),this.value="",this.required=!1,this.disabled=!1,this.readonly=!1,this.fullWidth=!1,this.rows=4,this.resize="vertical",this.textareaId="tg-textarea-"+s++,this.charCount=0,this.handleInput=t=>{const e=t.target.value;this.value=e,this.charCount=e.length,this.tgChange.emit(e)}}componentWillLoad(){this.charCount=this.value.length}render(){var t;const e=!!this.error,i=!!this.maxlength&&this.charCount>this.maxlength;return a(r,{key:"17c61812b338b67cde0bbc207e2a06cca0dba010"},a("div",{key:"62aa91867bc525ccfcb79045d1b0f895dcd1aca7",class:"tg-textarea-wrapper"},this.label&&a("label",{key:"2dc2d050dbda70059ab11fbfc65d4b1974fa6aa2",class:"tg-textarea__label",htmlFor:this.textareaId},this.label,this.required&&a("span",{key:"a8bf38a3ee6f4000b6c39d77b8563e4853716523",class:"tg-textarea__required"}," *")),a("textarea",Object.assign({key:"a65400a7d015264400b9ea9776153e07b23e72af",id:this.textareaId,class:{"tg-textarea__field":!0,"tg-textarea__field--invalid":e},value:this.value,placeholder:null!==(t=this.placeholder)&&void 0!==t?t:"",disabled:this.disabled,readOnly:this.readonly,required:this.required,rows:this.rows},null!=this.maxlength?{maxlength:this.maxlength}:{},{style:{resize:this.resize}},e?{"aria-invalid":"true"}:{},e?{"aria-describedby":`${this.textareaId}-error`}:this.helperText?{"aria-describedby":`${this.textareaId}-helper`}:{},{onInput:this.handleInput,onFocus:()=>this.tgFocus.emit(),onBlur:()=>this.tgBlur.emit()})),a("div",{key:"cca4b51d16003baa31080e268aa91f459dd31520",class:"tg-textarea__footer"},e?a("span",{class:"tg-textarea__error",id:`${this.textareaId}-error`},this.error):this.helperText?a("span",{class:"tg-textarea__helper",id:`${this.textareaId}-helper`},this.helperText):a("span",null),void 0!==this.maxlength&&a("span",{key:"f26710c52fd1c23bb3ee639583a76d3c9cc75aa1",class:{"tg-textarea__counter":!0,"tg-textarea__counter--over":i}},this.charCount,"/",this.maxlength))))}};let s=0;i.style=":host{display:block}:host([full-width]){width:100%}.tg-textarea-wrapper{display:flex;flex-direction:column;gap:var(--tg-spacing-1-5);font-family:var(--tg-font-family-sans)}.tg-textarea__label{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);line-height:var(--tg-line-height-normal)}.tg-textarea__required{color:var(--tg-color-danger)}.tg-textarea__field{display:block;width:100%;min-height:5rem;padding:var(--tg-spacing-2-5) var(--tg-spacing-3);font-family:var(--tg-font-family-sans);font-size:var(--tg-font-size-sm);line-height:var(--tg-line-height-relaxed);color:var(--tg-color-text-primary);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);outline:none;resize:vertical;transition:border-color var(--tg-duration-fast) var(--tg-ease-default), box-shadow var(--tg-duration-fast) var(--tg-ease-default)}.tg-textarea__field::placeholder{color:var(--tg-color-text-disabled)}.tg-textarea__field:focus{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-textarea__field:disabled{background:var(--tg-color-surface-sunken);opacity:0.6;cursor:not-allowed;resize:none}.tg-textarea__field--invalid{border-color:var(--tg-color-danger)}.tg-textarea__field--invalid:focus{box-shadow:0 0 0 3px rgba(227, 27, 35, 0.3)}.tg-textarea__footer{display:flex;justify-content:space-between;align-items:center}.tg-textarea__helper,.tg-textarea__error{font-size:var(--tg-font-size-xs);line-height:var(--tg-line-height-normal)}.tg-textarea__helper{color:var(--tg-color-text-secondary)}.tg-textarea__error{color:var(--tg-color-danger);display:flex;align-items:center;gap:var(--tg-spacing-1)}.tg-textarea__counter{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);margin-left:auto}.tg-textarea__counter--over{color:var(--tg-color-danger);font-weight:var(--tg-font-weight-semibold)}";export{i as tg_textarea}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as r,h as e,H as a}from"./p-CXqO9vvj.js";const l=class{constructor(e){t(this,e),this.tgDismiss=r(this,"tgDismiss"),this.variant="info",this.dismissible=!1,this.visible=!0,this.handleDismiss=()=>{this.visible=!1,this.tgDismiss.emit()}}getIcon(){return{info:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z" clip-rule="evenodd"/></svg>',success:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z" clip-rule="evenodd"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/></svg>',danger:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z" clip-rule="evenodd"/></svg>'}[this.variant]}render(){return this.visible?e(a,{role:"alert","aria-live":"polite"},e("div",{class:{"tg-alert":!0,[`tg-alert--${this.variant}`]:!0}},e("span",{class:"tg-alert__icon","aria-hidden":"true",innerHTML:this.getIcon()},e("slot",{name:"icon"})),e("div",{class:"tg-alert__content"},this.alertTitle&&e("p",{class:"tg-alert__title"},this.alertTitle),e("div",{class:"tg-alert__message"},e("slot",null))),this.dismissible&&e("button",{class:"tg-alert__dismiss",onClick:this.handleDismiss,"aria-label":"Fermer",type:"button"},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))))):null}};l.style=":host{display:block}.tg-alert{display:flex;align-items:flex-start;gap:var(--tg-spacing-3);padding:var(--tg-spacing-4);border-radius:var(--tg-radius-lg);border:1px solid;font-family:var(--tg-font-family-sans);font-size:var(--tg-font-size-sm);line-height:var(--tg-line-height-relaxed)}.tg-alert__icon{display:inline-flex;align-items:center;flex-shrink:0;margin-top:1px}.tg-alert__icon svg{width:1.25rem;height:1.25rem}.tg-alert__content{flex:1;min-width:0}.tg-alert__title{margin:0 0 var(--tg-spacing-1) 0;font-weight:var(--tg-font-weight-semibold);font-size:var(--tg-font-size-sm)}.tg-alert__message{margin:0;color:inherit;opacity:0.9}.tg-alert__dismiss{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;padding:0;background:none;border:none;border-radius:var(--tg-radius-md);cursor:pointer;opacity:0.7;color:inherit;transition:opacity var(--tg-duration-normal) var(--tg-ease-default), background-color var(--tg-duration-normal) var(--tg-ease-default);margin-top:-2px}.tg-alert__dismiss:hover{opacity:1;background-color:rgba(0,0,0,0.08)}.tg-alert__dismiss:focus-visible{outline:2px solid currentColor;outline-offset:2px}.tg-alert__dismiss svg{width:1rem;height:1rem}.tg-alert--info{background-color:var(--tg-color-info-subtle);border-color:#bcdefa;color:#0550ae}.tg-alert--success{background-color:var(--tg-color-success-subtle);border-color:#82cfaa;color:#116329}.tg-alert--warning{background-color:var(--tg-color-warning-subtle);border-color:#eac54f;color:#7d4e00}.tg-alert--danger{background-color:var(--tg-color-danger-subtle);border-color:var(--tg-color-red-100);color:var(--tg-color-red-800)}.tg-alert{animation:tg-alert-enter var(--tg-duration-normal, 200ms) var(--tg-ease-out, ease-out)}@keyframes tg-alert-enter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}:host(.tg-alert--exiting) .tg-alert{animation:tg-alert-exit var(--tg-duration-fast, 150ms) var(--tg-ease-in, ease-in) forwards}@keyframes tg-alert-exit{to{opacity:0;transform:translateY(-8px);height:0;padding:0;margin:0;overflow:hidden}}";export{l as tg_alert}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as a}from"./p-CXqO9vvj.js";const s=class{constructor(e){t(this,e),this.heading="",this.variant="default"}render(){return e(a,{key:"d944e9a58cddd66f6219051f03796f6aa57d99f2"},e("div",{key:"2f4dbe36de5e2de74ef26c21e836cd44c3d54268",class:"tg-es tg-es--"+this.variant},this.icon&&e("div",{key:"c2ee8e4d1efa67ddb57a9ad9578fd2ac308a84e4",class:"tg-es__icon"},this.icon),e("slot",{key:"88a9a65a7a33a12c534420a7c8cead7359293dbd",name:"illustration"}),e("h3",{key:"d0e4e54fdce2b3c0c508f858f3f8748d741da683",class:"tg-es__heading"},this.heading),this.description&&e("p",{key:"ff6e9dc56b7d0952ee375639df242737490a9bfc",class:"tg-es__desc"},this.description),this.actionLabel&&e("button",{key:"76d760c3aa4eb844639156a333635ac277ff960d",class:"tg-es__action",type:"button"},this.actionLabel),e("slot",{key:"af147b503e0736ad1de68def15514799e1f8fbf2"})))}};s.style=":host{display:block}.tg-es{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--tg-spacing-10) var(--tg-spacing-6);font-family:var(--tg-font-family-sans)}.tg-es__icon{font-size:3rem;margin-bottom:var(--tg-spacing-4);color:var(--tg-color-text-disabled)}.tg-es__heading{margin:0 0 var(--tg-spacing-2);font-size:var(--tg-font-size-lg);font-weight:var(--tg-font-weight-semibold);color:var(--tg-color-text-primary)}.tg-es__desc{margin:0 0 var(--tg-spacing-4);max-width:24rem;font-size:var(--tg-font-size-sm);color:var(--tg-color-text-secondary);line-height:var(--tg-line-height-relaxed)}.tg-es__action{background:var(--tg-color-primary);color:var(--tg-color-primary-on);border:none;border-radius:var(--tg-radius-lg);padding:var(--tg-spacing-2) var(--tg-spacing-5);font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);cursor:pointer;transition:filter var(--tg-duration-fast)}.tg-es__action:hover{filter:brightness(1.1)}";export{s as tg_empty_state}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e,H as r}from"./p-CXqO9vvj.js";const t=class{constructor(e){a(this,e),this.header="",this.expanded=!1}render(){return e(r,{key:"265ad774c81210f43635085f8891f0aba5bf305f"},e("div",{key:"9d0f0fbe35d033abe53d49c34fc29010a1fff3e6",class:{"tg-er":!0,"tg-er--open":this.expanded}},e("div",{key:"8fd0aed7ffa9221024fa33ff8508ed33764a2e16",class:"tg-er__header",onClick:()=>{this.expanded=!this.expanded}},this.icon&&e("span",{key:"27aa57c9e0c28a49f4fbd6610296c2cba1d8e9b3",class:"tg-er__icon"},this.icon),e("div",{key:"916ee17fc8df06f0a7691a2415c84ee5e9e0ab1d",class:"tg-er__text"},e("span",{key:"6730a2d337f3bb278a11683e4c36c7fa19aa652b",class:"tg-er__title"},this.header),this.subtext&&e("span",{key:"f3ce90306dc584cd19f1a5f950ddb861acb1761c",class:"tg-er__sub"},this.subtext)),e("span",{key:"10d999cde3027935a97ebfa50781518eec9abfac",class:{"tg-er__chevron":!0,"tg-er__chevron--open":this.expanded}},e("svg",{key:"99db2edc13b678d2b3b68f96a900e026904f0a0f",viewBox:"0 0 20 20",fill:"currentColor",width:"16",height:"16"},e("path",{key:"03f5b1f103022a583bfbab4065591f32541c5253","fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"})))),this.expanded&&e("div",{key:"443203e99952b3fcf307f8b6527e0108a9e8ee23",class:"tg-er__body"},e("slot",{key:"c344a5dda39a42ab4e62498eb8f9326b768364fa"}))))}};t.style=":host{display:block}.tg-er{font-family:var(--tg-font-family-sans);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);overflow:hidden;transition:box-shadow var(--tg-duration-fast)}.tg-er--open{box-shadow:var(--tg-shadow-sm)}.tg-er__header{display:flex;align-items:center;gap:var(--tg-spacing-3);padding:var(--tg-spacing-3) var(--tg-spacing-4);cursor:pointer;background:var(--tg-color-surface-raised);transition:background var(--tg-duration-fast)}.tg-er__header:hover{background:var(--tg-color-primary-subtle)}.tg-er__icon{font-size:1.25rem;flex-shrink:0}.tg-er__text{flex:1}.tg-er__title{display:block;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-er__sub{display:block;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);margin-top:2px}.tg-er__chevron{display:flex;color:var(--tg-color-text-secondary);transition:transform var(--tg-duration-fast)}.tg-er__chevron--open{transform:rotate(180deg)}.tg-er__body{padding:var(--tg-spacing-4);border-top:1px solid var(--tg-color-border);background:var(--tg-color-surface-raised);font-size:var(--tg-font-size-sm);color:var(--tg-color-text-primary);animation:tg-er-slide var(--tg-duration-fast) var(--tg-ease-out)}@keyframes tg-er-slide{from{opacity:0;max-height:0}to{opacity:1;max-height:500px}}";export{t as tg_expandable_row}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as r,H as i}from"./p-CXqO9vvj.js";const a=class{constructor(r){t(this,r),this.tgChange=e(this,"tgChange"),this.tgFocus=e(this,"tgFocus"),this.tgBlur=e(this,"tgBlur"),this.type="text",this.value="",this.required=!1,this.disabled=!1,this.readonly=!1,this.fullWidth=!1,this.size="md",this.inputId=`tg-input-${Math.random().toString(36).slice(2,9)}`,this.passwordVisible=!1,this.handleInput=t=>{this.value=t.target.value,this.tgChange.emit(this.value)}}render(){var t;const e=!!this.error,a="password"===this.type&&this.passwordVisible?"text":this.type;return r(i,{key:"39e10a36aa30f6714c47e2d7071a1b4e8a40cc95"},r("div",{key:"09c8a9f5ccf97c8e2cf7b04e373cd664a51ae33f",class:{"tg-input-wrapper":!0,"tg-input-wrapper--full-width":this.fullWidth,"tg-input-wrapper--disabled":this.disabled,"tg-input-wrapper--invalid":e,[`tg-input-wrapper--${this.size}`]:!0}},this.label&&r("label",{key:"593efd7e643d2853bf92990a20daa6fb34e84dfa",class:"tg-input__label",htmlFor:this.inputId},this.label,this.required&&r("span",{key:"6c58fd8c27e6859b44654b4f9bc0fe1e0a601cda",class:"tg-input__required","aria-hidden":"true"}," *")),r("div",{key:"5103029e9374a63a3739a4f737d6dfa4a3af2d19",class:"tg-input__field-wrapper"},r("slot",{key:"b5e7b13ee91f87115b1f391eccd95012a18d5fe2",name:"icon-start"}),r("input",{key:"8909c5ec22eed69d23b65663c5fd4bc3e6e376b7",id:this.inputId,class:"tg-input__field",type:a,value:this.value,placeholder:null!==(t=this.placeholder)&&void 0!==t?t:"",disabled:this.disabled,readOnly:this.readonly,required:this.required,"aria-invalid":e?"true":void 0,"aria-describedby":e?`${this.inputId}-error`:this.helperText?`${this.inputId}-helper`:void 0,onInput:this.handleInput,onFocus:()=>this.tgFocus.emit(),onBlur:()=>this.tgBlur.emit()}),"password"===this.type&&r("button",{key:"7978ffedb461c2894710605aa3a722c0d5daee3d",type:"button",class:"tg-input__toggle-password",onClick:()=>this.passwordVisible=!this.passwordVisible,"aria-label":this.passwordVisible?"Masquer le mot de passe":"Afficher le mot de passe"},this.passwordVisible?r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r("path",{"fill-rule":"evenodd",d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l14.5 14.5a.75.75 0 1 0 1.06-1.06l-1.745-1.745a10.029 10.029 0 0 0 3.3-4.38 1.651 1.651 0 0 0 0-1.185A10.004 10.004 0 0 0 9.999 3a9.956 9.956 0 0 0-4.744 1.194L3.28 2.22ZM7.752 6.69l1.092 1.092a2.5 2.5 0 0 1 3.374 3.373l1.091 1.092a4 4 0 0 0-5.557-5.557Z","clip-rule":"evenodd"}),r("path",{d:"M10.748 13.93l2.523 2.523a9.987 9.987 0 0 1-3.27.547c-4.258 0-7.894-2.66-9.337-6.41a1.651 1.651 0 0 1 0-1.186A10.007 10.007 0 0 1 2.839 6.02L6.07 9.252a4 4 0 0 0 4.678 4.678Z"})):r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),r("path",{"fill-rule":"evenodd",d:"M.664 10.59a1.651 1.651 0 0 1 0-1.186A10.004 10.004 0 0 1 10 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0 1 10 17c-4.257 0-7.893-2.66-9.336-6.41ZM14 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z","clip-rule":"evenodd"}))),r("slot",{key:"6ca491e27e06a60b80a721194f0be211efba72cb",name:"icon-end"})),e&&r("p",{key:"9c395300d317050bdb30b0c45a3e0ea10148b955",id:`${this.inputId}-error`,class:"tg-input__error",role:"alert"},r("svg",{key:"4dde577fba2b01b4df4289ab4024a9ec3d0bea4b",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true"},r("path",{key:"6e7ab516c75bec64ded397090d9761bf13bca68a","fill-rule":"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm.75-10a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0V5Zm0 7a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z","clip-rule":"evenodd"})),this.error),!e&&this.helperText&&r("p",{key:"684ca4c4b93f22aaf25e53b21f68c797e5c22454",id:`${this.inputId}-helper`,class:"tg-input__helper"},this.helperText)))}};a.style=":host{display:block}.tg-input-wrapper{display:flex;flex-direction:column;gap:var(--tg-spacing-1-5);font-family:var(--tg-font-family-sans)}.tg-input-wrapper--full-width{width:100%}.tg-input__label{display:block;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);line-height:var(--tg-line-height-tight)}.tg-input__required{color:var(--tg-color-danger)}.tg-input__field-wrapper{position:relative;display:flex;align-items:center;border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);background-color:var(--tg-color-surface-page);transition:border-color var(--tg-duration-normal) var(--tg-ease-default), box-shadow var(--tg-duration-normal) var(--tg-ease-default);overflow:hidden}.tg-input__field-wrapper:focus-within{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-input-wrapper--sm .tg-input__field{height:2rem;font-size:var(--tg-font-size-xs);padding:0 var(--tg-spacing-3)}.tg-input-wrapper--md .tg-input__field{height:2.5rem;font-size:var(--tg-font-size-sm);padding:0 var(--tg-spacing-3)}.tg-input-wrapper--lg .tg-input__field{height:3rem;font-size:var(--tg-font-size-md);padding:0 var(--tg-spacing-4)}.tg-input__field{flex:1;min-width:0;border:none;outline:none;background:transparent;color:var(--tg-color-text-primary);font-family:inherit;width:100%}.tg-input__field::placeholder{color:var(--tg-color-text-disabled)}.tg-input-wrapper--disabled .tg-input__field-wrapper{background-color:var(--tg-color-surface-sunken);opacity:0.6;cursor:not-allowed}.tg-input-wrapper--disabled .tg-input__field{cursor:not-allowed}.tg-input-wrapper--invalid .tg-input__field-wrapper{border-color:var(--tg-color-danger)}.tg-input-wrapper--invalid .tg-input__field-wrapper:focus-within{border-color:var(--tg-color-danger);box-shadow:0 0 0 3px rgba(227, 27, 35, 0.25)}.tg-input__toggle-password{display:inline-flex;align-items:center;justify-content:center;padding:0 var(--tg-spacing-2-5);height:100%;background:none;border:none;border-left:1px solid var(--tg-color-border);cursor:pointer;color:var(--tg-color-text-secondary);transition:color var(--tg-duration-normal) var(--tg-ease-default)}.tg-input__toggle-password:hover{color:var(--tg-color-text-primary)}.tg-input__toggle-password svg{width:1.125rem;height:1.125rem}.tg-input__helper,.tg-input__error{margin:0;font-size:var(--tg-font-size-xs);line-height:var(--tg-line-height-snug)}.tg-input__helper{color:var(--tg-color-text-secondary)}.tg-input__error{display:flex;align-items:center;gap:var(--tg-spacing-1);color:var(--tg-color-danger)}.tg-input__error svg{width:0.875rem;height:0.875rem;flex-shrink:0}::slotted([slot='icon-start']){display:inline-flex;padding-left:var(--tg-spacing-3);color:var(--tg-color-text-secondary)}::slotted([slot='icon-end']){display:inline-flex;padding-right:var(--tg-spacing-3);color:var(--tg-color-text-secondary)}";export{a as tg_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as a,H as e}from"./p-CXqO9vvj.js";const r=class{constructor(a){t(this,a),this.tabs=[],this.open=!1,this.activeTab=0}get parsed(){if("string"==typeof this.tabs)try{return JSON.parse(this.tabs)}catch(t){return[]}return this.tabs}onDocClick(){this.open=!1}render(){const t=this.parsed,r=t[this.activeTab];return a(e,{key:"2fe88e550f40cd033df85d4f6a31866d9e3f7ebd"},a("div",{key:"7245fd5e21bd7ae398c00472f1aba4c03eea4a33",class:"tg-mega",onClick:t=>t.stopPropagation()},a("button",{key:"c54f6d55c5a337eca50144f11a5ac30ebad51ed0",class:"tg-mega__trigger",type:"button",onClick:()=>{this.open=!this.open}},a("slot",{key:"7bdc928608dffadc862af62075249ac6afe1c85d",name:"trigger"},"Menu"),a("svg",{key:"a3d6184a5be6532d22ca7ef34c4508258578f8ff",class:{"tg-mega__chev":!0,"tg-mega__chev--open":this.open},viewBox:"0 0 20 20",fill:"currentColor",width:"14",height:"14"},a("path",{key:"59cf945ebea3c9d7eb73e00c36caa1ec8ab4a38f","fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"}))),this.open&&a("div",{key:"484d4184425b2d7f24e7672307822b2778e7fa1d",class:"tg-mega__panel"},t.length>1&&a("div",{key:"f9ea6f620a83c1fb6cbaa9d419361b80e502dcc1",class:"tg-mega__tabs"},t.map(((t,e)=>a("button",{class:{"tg-mega__tab":!0,"tg-mega__tab--active":e===this.activeTab},type:"button",onClick:()=>{this.activeTab=e}},t.label)))),r&&a("div",{key:"8108298cb4d800605bdbeb7c8d22cbf21c0c1518",class:"tg-mega__sections"},r.sections.map((t=>a("div",{class:"tg-mega__section"},a("h4",{class:"tg-mega__sec-title"},t.title),t.items.map((t=>a("a",{class:"tg-mega__item",href:t.href||"#"},t.icon&&a("span",{class:"tg-mega__item-icon"},t.icon),a("div",null,a("span",{class:"tg-mega__item-label"},t.label),t.description&&a("span",{class:"tg-mega__item-desc"},t.description))))))))))))}};r.style=":host{display:inline-block;position:relative}.tg-mega{font-family:var(--tg-font-family-sans)}.tg-mega__trigger{display:inline-flex;align-items:center;gap:var(--tg-spacing-1);background:none;border:none;cursor:pointer;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);padding:var(--tg-spacing-2) var(--tg-spacing-3);border-radius:var(--tg-radius-lg);transition:background var(--tg-duration-fast)}.tg-mega__trigger:hover{background:var(--tg-color-primary-subtle)}.tg-mega__chev{transition:transform var(--tg-duration-fast)}.tg-mega__chev--open{transform:rotate(180deg)}.tg-mega__panel{position:absolute;top:100%;left:0;margin-top:var(--tg-spacing-1);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-xl);box-shadow:var(--tg-shadow-xl);z-index:1000;min-width:36rem;animation:tg-mega-enter var(--tg-duration-fast) var(--tg-ease-out)}@keyframes tg-mega-enter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.tg-mega__tabs{display:flex;border-bottom:1px solid var(--tg-color-border);padding:var(--tg-spacing-1) var(--tg-spacing-2) 0}.tg-mega__tab{background:none;border:none;border-bottom:2px solid transparent;padding:var(--tg-spacing-2) var(--tg-spacing-3);font-size:var(--tg-font-size-sm);cursor:pointer;color:var(--tg-color-text-secondary);transition:all var(--tg-duration-fast)}.tg-mega__tab:hover{color:var(--tg-color-primary)}.tg-mega__tab--active{color:var(--tg-color-primary);border-bottom-color:var(--tg-color-primary);font-weight:var(--tg-font-weight-medium)}.tg-mega__sections{display:grid;grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr));gap:var(--tg-spacing-4);padding:var(--tg-spacing-4)}.tg-mega__sec-title{margin:0 0 var(--tg-spacing-2);font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-semibold);text-transform:uppercase;letter-spacing:var(--tg-tracking-wide);color:var(--tg-color-text-secondary)}.tg-mega__item{display:flex;gap:var(--tg-spacing-2);padding:var(--tg-spacing-2);border-radius:var(--tg-radius-md);text-decoration:none;color:var(--tg-color-text-primary);transition:background var(--tg-duration-fast)}.tg-mega__item:hover{background:var(--tg-color-primary-subtle)}.tg-mega__item-icon{font-size:1.25rem;flex-shrink:0}.tg-mega__item-label{display:block;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium)}.tg-mega__item-desc{display:block;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);margin-top:2px}";export{r as tg_mega_menu}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as r,h as i,H as o}from"./p-CXqO9vvj.js";const e=class{constructor(i){t(this,i),this.tgChange=r(this,"tgChange"),this.placeholder="HH:MM",this.disabled=!1,this.invalid=!1,this.size="md",this.step=15,this.open=!1}onDocClick(){this.open=!1}get timeSlots(){const t=[];for(let r=0;r<24;r++)for(let i=0;i<60;i+=this.step)t.push(String(r).padStart(2,"0")+":"+String(i).padStart(2,"0"));return t}select(t){this.tgChange.emit(t),this.open=!1}render(){var t;return i(o,{key:"849781e7e50dd73ecbe0864486a4fe5c6d4685df"},i("div",{key:"a81ed67e81f51b8e80cd75476813368323be8d70",class:"tg-time-picker tg-time-picker--"+this.size,onClick:t=>t.stopPropagation()},this.label&&i("label",{key:"7e622b24469cc6d6a77a46633060ff14d54fe623",class:"tg-tp__label"},this.label),i("div",{key:"67feb386304c0bfdbf8dc817fc4cfecc616aba71",class:{"tg-tp__input-wrap":!0,"tg-tp__input-wrap--invalid":this.invalid},onClick:()=>{this.disabled||(this.open=!this.open)}},i("svg",{key:"7b84f961e363e7ab86a28a314eff985c2f80c272",class:"tg-tp__icon",viewBox:"0 0 20 20",fill:"currentColor",width:"16",height:"16"},i("path",{key:"4a673cefb5e9a130e78df630fe0df0fbf0868509","fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm.75-13a.75.75 0 00-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 000-1.5h-3.25V5z"})),i("input",{key:"8d9c1be087659b8553e59f643a363de13b2bcf29",class:"tg-tp__input",type:"text",readonly:!0,value:null!==(t=this.value)&&void 0!==t?t:"",placeholder:this.placeholder,disabled:this.disabled})),this.open&&i("ul",{key:"1cc12756a2bda771a09c95975cf2cb5395adfc76",class:"tg-tp__dropdown"},this.timeSlots.map((t=>i("li",{class:{"tg-tp__option":!0,"tg-tp__option--sel":t===this.value},onClick:()=>this.select(t)},t))))))}};e.style=":host{display:block}.tg-time-picker{position:relative;font-family:var(--tg-font-family-sans)}.tg-tp__label{display:block;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);margin-bottom:var(--tg-spacing-1-5)}.tg-tp__input-wrap{display:flex;align-items:center;gap:var(--tg-spacing-2);border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);background:var(--tg-color-surface-raised);padding:0 var(--tg-spacing-3);cursor:pointer;transition:border-color var(--tg-duration-fast), box-shadow var(--tg-duration-fast)}.tg-tp__input-wrap:focus-within{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-tp__input-wrap--invalid{border-color:var(--tg-color-danger)}.tg-tp__icon{color:var(--tg-color-text-secondary);flex-shrink:0}.tg-tp__input{flex:1;border:none;outline:none;background:transparent;color:var(--tg-color-text-primary);font-family:inherit;cursor:pointer}.tg-time-picker--sm .tg-tp__input{height:2rem;font-size:var(--tg-font-size-xs)}.tg-time-picker--md .tg-tp__input{height:2.5rem;font-size:var(--tg-font-size-sm)}.tg-time-picker--lg .tg-tp__input{height:3rem;font-size:var(--tg-font-size-md)}.tg-tp__dropdown{position:absolute;top:100%;left:0;right:0;margin-top:var(--tg-spacing-1);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);box-shadow:var(--tg-shadow-lg);z-index:1000;max-height:14rem;overflow-y:auto;padding:var(--tg-spacing-1) 0;list-style:none}.tg-tp__option{padding:var(--tg-spacing-2) var(--tg-spacing-3);font-size:var(--tg-font-size-sm);cursor:pointer;transition:background var(--tg-duration-fast)}.tg-tp__option:hover{background:var(--tg-color-primary-subtle)}.tg-tp__option--sel{color:var(--tg-color-primary);font-weight:var(--tg-font-weight-medium);background:var(--tg-color-primary-subtle)}";export{e as tg_time_picker}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as r,H as e}from"./p-CXqO9vvj.js";const o=class{constructor(r){t(this,r),this.tgSubmit=i(this,"tgSubmit"),this.placeholder="Posez votre question…",this.disabled=!1,this.loading=!1,this.value="",this.handleSubmit=()=>{this.value.trim()&&!this.loading&&(this.tgSubmit.emit(this.value.trim()),this.value="")},this.handleKeyDown=t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.handleSubmit())}}render(){return r(e,{key:"dffb2aefb0c36c2474ba3987a4f14e230b7de459"},r("div",{key:"baf0e378a4902e31f2e9ef53d7e8367e50a588db",class:"tg-pi"},r("textarea",Object.assign({key:"073a6f96bdac758f2d04d7f5c306f511439aefda",class:"tg-pi__input",placeholder:this.placeholder,value:this.value,disabled:this.disabled||this.loading},void 0!==this.maxLength?{maxLength:this.maxLength}:{},{rows:1,onInput:t=>{this.value=t.target.value},onKeyDown:this.handleKeyDown})),r("button",{key:"d7e8015119fae3d3ca58f066f09e32ef75852598",class:"tg-pi__btn",type:"button",disabled:!this.value.trim()||this.loading,onClick:this.handleSubmit},this.loading?r("span",{class:"tg-pi__spinner"}):r("svg",{viewBox:"0 0 20 20",fill:"currentColor",width:"18",height:"18"},r("path",{d:"M3.105 2.289a.75.75 0 00-.826.95l1.414 4.925A1.5 1.5 0 005.135 9.25H10.5a.75.75 0 010 1.5H5.135a1.5 1.5 0 00-1.442 1.086l-1.414 4.926a.75.75 0 00.826.95 28.896 28.896 0 0015.293-7.154.75.75 0 000-1.115A28.897 28.897 0 003.105 2.289z"}))),this.maxLength&&r("span",{key:"5dd21e484d7a33de8f9f3f5a9d541ddf2ac8124b",class:"tg-pi__counter"},this.value.length,"/",this.maxLength)))}};o.style=":host{display:block}.tg-pi{display:flex;align-items:flex-end;gap:var(--tg-spacing-2);padding:var(--tg-spacing-2);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-xl);transition:border-color var(--tg-duration-fast), box-shadow var(--tg-duration-fast);font-family:var(--tg-font-family-sans);position:relative}.tg-pi:focus-within{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-pi__input{flex:1;border:none;outline:none;background:transparent;font-family:inherit;font-size:var(--tg-font-size-sm);color:var(--tg-color-text-primary);resize:none;min-height:1.5rem;max-height:8rem;padding:var(--tg-spacing-1) var(--tg-spacing-2)}.tg-pi__input::placeholder{color:var(--tg-color-text-disabled)}.tg-pi__btn{display:flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;border-radius:var(--tg-radius-lg);background:var(--tg-color-primary);color:var(--tg-color-primary-on);border:none;cursor:pointer;flex-shrink:0;transition:filter var(--tg-duration-fast)}.tg-pi__btn:hover:not(:disabled){filter:brightness(1.1)}.tg-pi__btn:disabled{opacity:0.4;cursor:not-allowed}.tg-pi__spinner{width:1rem;height:1rem;border:2px solid rgba(255,255,255,0.3);border-top-color:white;border-radius:50%;animation:tg-pi-spin 0.6s linear infinite}@keyframes tg-pi-spin{to{transform:rotate(360deg)}}.tg-pi__counter{position:absolute;bottom:-1.25rem;right:var(--tg-spacing-2);font-size:var(--tg-font-size-xs);color:var(--tg-color-text-disabled)}";export{o as tg_prompt_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as r,h as s,H as a}from"./p-CXqO9vvj.js";const o=class{constructor(s){t(this,s),this.tgSwitch=r(this,"tgSwitch"),this.items=[],this.placeholder="Basculer vers…",this.open=!1,this.query=""}get parsed(){if("string"==typeof this.items)try{return JSON.parse(this.items)}catch(t){return[]}return this.items}get filtered(){const t=this.query.toLowerCase();return t?this.parsed.filter((r=>r.label.toLowerCase().includes(t))):this.parsed}onDocClick(){this.open=!1}render(){return s(a,{key:"6755616db2c14f185c9e32c220455346df09b80d"},s("div",{key:"9fa165a8f67aa0848b95f1a7d14be6551198e981",class:"tg-qs",onClick:t=>t.stopPropagation()},s("button",{key:"98428b3a459504e64043b50bed1cebf42dae9e84",class:"tg-qs__trigger",type:"button",onClick:()=>{this.open=!this.open,this.query=""}},s("slot",{key:"161e0ea0c83fa17f8f1a56562d8764ced5053581"},"Basculer")),this.open&&s("div",{key:"bad4c119013f396b266cb7edc2cd192fb79cbec4",class:"tg-qs__dropdown"},s("input",{key:"57ce7c4d5e5edf287d2f8bcb727d5b02cf537abd",class:"tg-qs__search",type:"text",placeholder:this.placeholder,value:this.query,onInput:t=>{this.query=t.target.value},autofocus:!0}),s("ul",{key:"8841015526cf682f3b4cb6fdb45d325fe5e791e4",class:"tg-qs__list"},this.filtered.map((t=>s("li",{class:"tg-qs__item",onClick:()=>{this.tgSwitch.emit(t.id),this.open=!1}},t.icon&&s("span",{class:"tg-qs__icon"},t.icon),s("div",null,s("span",{class:"tg-qs__label"},t.label),t.subtitle&&s("span",{class:"tg-qs__sub"},t.subtitle)))))))))}};o.style=":host{display:inline-block;position:relative}.tg-qs{font-family:var(--tg-font-family-sans)}.tg-qs__trigger{background:var(--tg-color-surface-sunken);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);padding:var(--tg-spacing-2) var(--tg-spacing-3);font-size:var(--tg-font-size-sm);cursor:pointer;color:var(--tg-color-text-primary);transition:all var(--tg-duration-fast)}.tg-qs__trigger:hover{border-color:var(--tg-color-primary);background:var(--tg-color-primary-subtle)}.tg-qs__dropdown{position:absolute;top:100%;left:0;margin-top:var(--tg-spacing-1);width:18rem;background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-xl);box-shadow:var(--tg-shadow-lg);z-index:1000;overflow:hidden}.tg-qs__search{display:block;width:100%;padding:var(--tg-spacing-3);border:none;border-bottom:1px solid var(--tg-color-border);outline:none;font-size:var(--tg-font-size-sm);font-family:inherit;background:transparent;color:var(--tg-color-text-primary)}.tg-qs__list{list-style:none;padding:var(--tg-spacing-1) 0;margin:0;max-height:16rem;overflow-y:auto}.tg-qs__item{display:flex;align-items:center;gap:var(--tg-spacing-2);padding:var(--tg-spacing-2) var(--tg-spacing-3);cursor:pointer;transition:background var(--tg-duration-fast)}.tg-qs__item:hover{background:var(--tg-color-primary-subtle)}.tg-qs__icon{font-size:1.25rem;flex-shrink:0}.tg-qs__label{display:block;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-qs__sub{display:block;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary)}";export{o as tg_quick_switcher}
|