@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 @@
|
|
|
1
|
+
import{p as t,H as e,c as a,h as r,a as o,t as i}from"./index.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgChange=a(this,"tgChange"),this.placeholder="JJ/MM/AAAA",this.disabled=!1,this.invalid=!1,this.size="md",this.open=!1,this.viewDate=new Date,this.prevMonth=()=>{const t=new Date(this.viewDate);t.setMonth(t.getMonth()-1),this.viewDate=t},this.nextMonth=()=>{const t=new Date(this.viewDate);t.setMonth(t.getMonth()+1),this.viewDate=t}}onDocClick(){this.open=!1}daysInMonth(t,e){return new Date(t,e+1,0).getDate()}firstDow(t,e){return new Date(t,e,1).getDay()}selectDay(t){const e=this.viewDate.getFullYear(),a=(this.viewDate.getMonth()+1+"").padStart(2,"0");this.tgChange.emit(e+"-"+a+"-"+(t+"").padStart(2,"0")),this.open=!1}formatDisplay(){if(!this.value)return"";const t=this.value.split("-");return t[2]+"/"+t[1]+"/"+t[0]}render(){const t=this.viewDate.getFullYear(),e=this.viewDate.getMonth(),a=this.daysInMonth(t,e),i=this.firstDow(t,e),s=[];for(let t=0;t<i;t++)s.push(null);for(let t=1;t<=a;t++)s.push(t);return r(o,{key:"1bdb0e804ddd590b60b2babcee9189ccfc8103b0"},r("div",{key:"5a7506eabbc0cefded2504d5266eb3a1ddfe525f",class:"tg-date-picker tg-date-picker--"+this.size,onClick:t=>t.stopPropagation()},this.label&&r("label",{key:"d97ca1c91f0a1d2aef7f4ffabd1704621f702b76",class:"tg-dp__label"},this.label),r("div",{key:"fe526741305cebfe28998b3571e036971de8bac2",class:{"tg-dp__input-wrap":!0,"tg-dp__input-wrap--invalid":this.invalid},onClick:()=>{this.disabled||(this.open=!this.open)}},r("svg",{key:"65662ba0e277a24d7872564383f57d9e62a6af91",class:"tg-dp__icon",viewBox:"0 0 20 20",fill:"currentColor",width:"16",height:"16"},r("path",{key:"32dc549db6c1176eb768b93d9b8f9229bfb50d04","fill-rule":"evenodd",d:"M5.75 2a.75.75 0 01.75.75V4h7V2.75a.75.75 0 011.5 0V4h.25A2.75 2.75 0 0118 6.75v8.5A2.75 2.75 0 0115.25 18H4.75A2.75 2.75 0 012 15.25v-8.5A2.75 2.75 0 014.75 4H5V2.75A.75.75 0 015.75 2zm-1 5.5a.75.75 0 000 1.5h10.5a.75.75 0 000-1.5H4.75z"})),r("input",{key:"4042c9d0da06a27715fe0f90a02d327b53c64942",class:"tg-dp__input",type:"text",readonly:!0,value:this.formatDisplay(),placeholder:this.placeholder,disabled:this.disabled})),this.open&&r("div",{key:"c197780bc0024a4dd861ee916596fd46e83aaceb",class:"tg-dp__calendar"},r("div",{key:"1e0f610b1e5334f44c6cc986efe2dc054a9bc91c",class:"tg-dp__nav"},r("button",{key:"194e3c5829de2c81497a453ff0f3e32229e1b8eb",class:"tg-dp__nav-btn",type:"button",onClick:this.prevMonth},"‹"),r("span",{key:"7976fef62f152f1707f9aa8bd263ea6ca440b27b",class:"tg-dp__month-year"},["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"][e]," ",t),r("button",{key:"ffe86d738629bfce856af063efb4c4fe333ff81f",class:"tg-dp__nav-btn",type:"button",onClick:this.nextMonth},"›")),r("div",{key:"1392d14a55be0f9761f48b63dfaf5ed87c576de9",class:"tg-dp__weekdays"},["Di","Lu","Ma","Me","Je","Ve","Sa"].map((t=>r("span",{class:"tg-dp__wd"},t)))),r("div",{key:"a238b5c68e95aaba5d09e5eb8926414ccf9f3ff7",class:"tg-dp__days"},s.map((a=>a?r("button",{class:{"tg-dp__day":!0,"tg-dp__day--sel":this.value===t+"-"+(e+1+"").padStart(2,"0")+"-"+(a+"").padStart(2,"0"),"tg-dp__day--today":(new Date).getDate()===a&&(new Date).getMonth()===e&&(new Date).getFullYear()===t},type:"button",onClick:()=>this.selectDay(a)},a):r("span",{class:"tg-dp__day tg-dp__day--empty"}))))),this.errorText&&r("p",{key:"b2806b9a78c219aeb93df813b1154359b9b8622d",class:"tg-dp__error"},this.errorText),!this.errorText&&this.helperText&&r("p",{key:"5dd972b9d8229e6aa5c8c8a8ada81e302c375518",class:"tg-dp__helper"},this.helperText)))}static get style(){return":host{display:block}.tg-date-picker{position:relative;font-family:var(--tg-font-family-sans)}.tg-dp__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-dp__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-dp__input-wrap:focus-within{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-dp__input-wrap--invalid{border-color:var(--tg-color-danger)}.tg-dp__icon{color:var(--tg-color-text-secondary);flex-shrink:0}.tg-dp__input{flex:1;border:none;outline:none;background:transparent;color:var(--tg-color-text-primary);font-family:inherit;cursor:pointer}.tg-date-picker--sm .tg-dp__input{height:2rem;font-size:var(--tg-font-size-xs)}.tg-date-picker--md .tg-dp__input{height:2.5rem;font-size:var(--tg-font-size-sm)}.tg-date-picker--lg .tg-dp__input{height:3rem;font-size:var(--tg-font-size-md)}.tg-dp__input::placeholder{color:var(--tg-color-text-disabled)}.tg-dp__calendar{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-lg);z-index:1000;padding:var(--tg-spacing-3);min-width:280px;animation:tg-dp-enter var(--tg-duration-fast) var(--tg-ease-out)}@keyframes tg-dp-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.tg-dp__nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--tg-spacing-2)}.tg-dp__nav-btn{background:none;border:none;cursor:pointer;font-size:1.25rem;color:var(--tg-color-text-primary);padding:var(--tg-spacing-1);border-radius:var(--tg-radius-md);transition:background var(--tg-duration-fast)}.tg-dp__nav-btn:hover{background:var(--tg-color-primary-subtle)}.tg-dp__month-year{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-semibold)}.tg-dp__weekdays{display:grid;grid-template-columns:repeat(7, 1fr);margin-bottom:var(--tg-spacing-1)}.tg-dp__wd{text-align:center;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);font-weight:var(--tg-font-weight-medium);padding:var(--tg-spacing-1) 0}.tg-dp__days{display:grid;grid-template-columns:repeat(7, 1fr);gap:2px}.tg-dp__day{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:auto;border:none;background:none;cursor:pointer;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-primary);border-radius:var(--tg-radius-md);transition:background var(--tg-duration-fast)}.tg-dp__day:hover{background:var(--tg-color-primary-subtle)}.tg-dp__day--sel{background:var(--tg-color-primary);color:var(--tg-color-primary-on);font-weight:var(--tg-font-weight-semibold)}.tg-dp__day--today{border:1px solid var(--tg-color-primary)}.tg-dp__day--empty{cursor:default}.tg-dp__error{margin:var(--tg-spacing-1) 0 0;font-size:var(--tg-font-size-xs);color:var(--tg-color-danger)}.tg-dp__helper{margin:var(--tg-spacing-1) 0 0;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary)}"}},[1,"tg-date-picker",{label:[1],value:[1],placeholder:[1],disabled:[4],invalid:[4],helperText:[1,"helper-text"],errorText:[1,"error-text"],size:[1],open:[32],viewDate:[32]},[[4,"click","onDocClick"]]]);function d(){"undefined"!=typeof customElements&&["tg-date-picker"].forEach((t=>{"tg-date-picker"===t&&(customElements.get(i(t))||customElements.define(i(t),s))}))}d();const n=s,c=d;export{n as TgDatePicker,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgEmptyState extends Components.TgEmptyState, HTMLElement {}
|
|
4
|
+
export const TgEmptyState: {
|
|
5
|
+
prototype: TgEmptyState;
|
|
6
|
+
new (): TgEmptyState;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,h as a,a as s,t as i}from"./index.js";const r=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.heading="",this.variant="default"}render(){return a(s,{key:"d944e9a58cddd66f6219051f03796f6aa57d99f2"},a("div",{key:"2f4dbe36de5e2de74ef26c21e836cd44c3d54268",class:"tg-es tg-es--"+this.variant},this.icon&&a("div",{key:"c2ee8e4d1efa67ddb57a9ad9578fd2ac308a84e4",class:"tg-es__icon"},this.icon),a("slot",{key:"88a9a65a7a33a12c534420a7c8cead7359293dbd",name:"illustration"}),a("h3",{key:"d0e4e54fdce2b3c0c508f858f3f8748d741da683",class:"tg-es__heading"},this.heading),this.description&&a("p",{key:"ff6e9dc56b7d0952ee375639df242737490a9bfc",class:"tg-es__desc"},this.description),this.actionLabel&&a("button",{key:"76d760c3aa4eb844639156a333635ac277ff960d",class:"tg-es__action",type:"button"},this.actionLabel),a("slot",{key:"af147b503e0736ad1de68def15514799e1f8fbf2"})))}static get style(){return":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)}"}},[257,"tg-empty-state",{icon:[1],heading:[1],description:[1],actionLabel:[1,"action-label"],variant:[1]}]);function n(){"undefined"!=typeof customElements&&["tg-empty-state"].forEach((t=>{"tg-empty-state"===t&&(customElements.get(i(t))||customElements.define(i(t),r))}))}n();const o=r,c=n;export{o as TgEmptyState,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgExpandableRow extends Components.TgExpandableRow, HTMLElement {}
|
|
4
|
+
export const TgExpandableRow: {
|
|
5
|
+
prototype: TgExpandableRow;
|
|
6
|
+
new (): TgExpandableRow;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,H as t,h as a,a as r,t as o}from"./index.js";const s=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.header="",this.expanded=!1}render(){return a(r,{key:"265ad774c81210f43635085f8891f0aba5bf305f"},a("div",{key:"9d0f0fbe35d033abe53d49c34fc29010a1fff3e6",class:{"tg-er":!0,"tg-er--open":this.expanded}},a("div",{key:"8fd0aed7ffa9221024fa33ff8508ed33764a2e16",class:"tg-er__header",onClick:()=>{this.expanded=!this.expanded}},this.icon&&a("span",{key:"27aa57c9e0c28a49f4fbd6610296c2cba1d8e9b3",class:"tg-er__icon"},this.icon),a("div",{key:"916ee17fc8df06f0a7691a2415c84ee5e9e0ab1d",class:"tg-er__text"},a("span",{key:"6730a2d337f3bb278a11683e4c36c7fa19aa652b",class:"tg-er__title"},this.header),this.subtext&&a("span",{key:"f3ce90306dc584cd19f1a5f950ddb861acb1761c",class:"tg-er__sub"},this.subtext)),a("span",{key:"10d999cde3027935a97ebfa50781518eec9abfac",class:{"tg-er__chevron":!0,"tg-er__chevron--open":this.expanded}},a("svg",{key:"99db2edc13b678d2b3b68f96a900e026904f0a0f",viewBox:"0 0 20 20",fill:"currentColor",width:"16",height:"16"},a("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&&a("div",{key:"443203e99952b3fcf307f8b6527e0108a9e8ee23",class:"tg-er__body"},a("slot",{key:"c344a5dda39a42ab4e62498eb8f9326b768364fa"}))))}static get style(){return":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}}"}},[257,"tg-expandable-row",{header:[1],subtext:[1],icon:[1],expanded:[32]}]);function i(){"undefined"!=typeof customElements&&["tg-expandable-row"].forEach((e=>{"tg-expandable-row"===e&&(customElements.get(o(e))||customElements.define(o(e),s))}))}i();const d=s,c=i;export{d as TgExpandableRow,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgFab extends Components.TgFab, HTMLElement {}
|
|
4
|
+
export const TgFab: {
|
|
5
|
+
prototype: TgFab;
|
|
6
|
+
new (): TgFab;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,c as e,h as r,a as i,t as s}from"./index.js";const o=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgClick=e(this,"tgClick"),this.variant="primary",this.size="md",this.position="bottom-right",this.fixed=!0}render(){return r(i,{key:"6dd636b4f00a9e639a1c16e116a3d1baca5116f4"},r("button",{key:"37a5641cc8f781ecdf7d1e7a2f8571a553c66d71",class:"tg-fab tg-fab--"+this.variant+" tg-fab--"+this.size+(this.fixed?" tg-fab--fixed tg-fab--"+this.position:""),type:"button",onClick:()=>this.tgClick.emit()},this.icon&&r("span",{key:"8d327d220b24a43fdac63984e014b9a10da0c141",class:"tg-fab__icon"},this.icon),this.label&&r("span",{key:"df06e983206107d5d80f3a184576447152e4be40",class:"tg-fab__label"},this.label),!this.icon&&!this.label&&r("svg",{key:"31e5b6735e0aac2bc6d958a489e6f9beaa6ea75d",viewBox:"0 0 20 20",fill:"currentColor",width:"20",height:"20"},r("path",{key:"52fe468dd13cc4978ee607a3f3886e562cfefa29",d:"M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z"}))))}static get style(){return":host{display:inline-flex}.tg-fab{display:inline-flex;align-items:center;justify-content:center;gap:var(--tg-spacing-2);border:none;border-radius:var(--tg-radius-full);cursor:pointer;font-family:var(--tg-font-family-sans);font-weight:var(--tg-font-weight-medium);transition:all var(--tg-duration-fast);box-shadow:var(--tg-shadow-lg)}.tg-fab:hover{transform:scale(1.05);box-shadow:var(--tg-shadow-xl)}.tg-fab:active{transform:scale(0.95)}.tg-fab--sm{width:2.5rem;height:2.5rem;font-size:var(--tg-font-size-xs)}.tg-fab--md{min-width:3rem;height:3rem;padding:0 var(--tg-spacing-3);font-size:var(--tg-font-size-sm)}.tg-fab--lg{min-width:3.5rem;height:3.5rem;padding:0 var(--tg-spacing-4);font-size:var(--tg-font-size-md)}.tg-fab--primary{background:var(--tg-color-primary);color:var(--tg-color-primary-on)}.tg-fab--secondary{background:var(--tg-color-surface-raised);color:var(--tg-color-text-primary);border:1px solid var(--tg-color-border)}.tg-fab--success{background:var(--tg-color-success);color:white}.tg-fab--danger{background:var(--tg-color-danger);color:white}.tg-fab--fixed{position:fixed;z-index:1000}.tg-fab--bottom-right{bottom:var(--tg-spacing-6);right:var(--tg-spacing-6)}.tg-fab--bottom-left{bottom:var(--tg-spacing-6);left:var(--tg-spacing-6)}.tg-fab--bottom-center{bottom:var(--tg-spacing-6);left:50%;transform:translateX(-50%)}.tg-fab__icon{font-size:1.25em}"}},[1,"tg-fab",{icon:[1],label:[1],variant:[1],size:[1],position:[1],fixed:[4]}]);function g(){"undefined"!=typeof customElements&&["tg-fab"].forEach((t=>{"tg-fab"===t&&(customElements.get(s(t))||customElements.define(s(t),o))}))}g();const n=o,f=g;export{n as TgFab,f as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgFileUpload extends Components.TgFileUpload, HTMLElement {}
|
|
4
|
+
export const TgFileUpload: {
|
|
5
|
+
prototype: TgFileUpload;
|
|
6
|
+
new (): TgFileUpload;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,H as t,c as i,h as o,a as r,t as a}from"./index.js";const l=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.tgFilesChange=i(this,"tgFilesChange"),this.multiple=!1,this.maxSize=10,this.maxFiles=5,this.label="Déposez vos fichiers ici",this.files=[],this.dragActive=!1,this.error=null,this.addFiles=e=>{if(!e)return;const t=Array.from(e),i=this.validate(t);if(i)return void(this.error=i);this.error=null;const o=t.map((e=>({file:e,id:`${Date.now()}-${Math.random().toString(36).slice(2,8)}`})));this.files=[...this.files,...o],this.tgFilesChange.emit(this.files.map((e=>e.file)))},this.removeFile=e=>{this.files=this.files.filter((t=>t.id!==e)),this.error=null,this.tgFilesChange.emit(this.files.map((e=>e.file)))},this.handleDrop=e=>{var t,i;e.preventDefault(),this.dragActive=!1,this.addFiles(null!==(i=null===(t=e.dataTransfer)||void 0===t?void 0:t.files)&&void 0!==i?i:null)},this.handleDragOver=e=>{e.preventDefault(),this.dragActive=!0},this.handleDragLeave=()=>{this.dragActive=!1}}formatSize(e){return e<1024?e+" B":e<1048576?(e/1024).toFixed(1)+" KB":(e/1048576).toFixed(1)+" MB"}validate(e){for(const t of e)if(t.size>1048576*this.maxSize)return`Le fichier "${t.name}" dépasse la taille maximale de ${this.maxSize} Mo`;return this.files.length+e.length>this.maxFiles?`Maximum ${this.maxFiles} fichier${this.maxFiles>1?"s":""} autorisé${this.maxFiles>1?"s":""}`:null}render(){return o(r,{key:"77cf3751962242d553184585a76a7f87bf736df7"},o("div",{key:"552c2b59d032b752bd6d6924e21ec7700a3da16e",class:"tg-file-upload"},o("div",{key:"e26907046c0bda2fe4a2c5a490248d55b7e340bf",class:{"tg-file-upload__dropzone":!0,"tg-file-upload__dropzone--active":this.dragActive,"tg-file-upload__dropzone--error":!!this.error},onDrop:this.handleDrop,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onClick:()=>this.inputRef.click()},o("div",{key:"affad26d9f57aaca4abc5e71810cf80d98272807",class:"tg-file-upload__icon",innerHTML:'<svg viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 32l0 4a4 4 0 004 4h24a4 4 0 004-4v-4"/><polyline points="16 16 24 8 32 16"/><line x1="24" y1="8" x2="24" y2="32"/></svg>'}),o("div",{key:"be3e1fdc89bed47844e280d8116c4d3b9c11e342",class:"tg-file-upload__text"},o("strong",{key:"7fa44dba9212c9622eab4a35e7d6e1e78985c222"},"Cliquez pour choisir")," ou glissez-déposez"),this.hint&&o("div",{key:"7be94286d4723c79738348b7a18f29de48df8365",class:"tg-file-upload__hint"},this.hint)),o("input",Object.assign({key:"176b2e8ec8cd4fa436de45e6d1b94e482c8359c6",class:"tg-file-upload__input",type:"file"},this.accept?{accept:this.accept}:{},{multiple:this.multiple,ref:e=>this.inputRef=e,onChange:e=>this.addFiles(e.target.files)})),this.error&&o("div",{key:"8fffd203e887c00f9574b39477104d3237285bd6",class:"tg-file-upload__error"},this.error),this.files.length>0&&o("div",{key:"686f996491f2a54ed8c2ae760d88337abd77cdb9",class:"tg-file-upload__list"},this.files.map((e=>o("div",{class:"tg-file-upload__file",key:e.id},o("div",{class:"tg-file-upload__file-icon",innerHTML:'<svg viewBox="0 0 18 18" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M10 2H5a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7l-5-5z"/><polyline points="10 2 10 7 15 7"/></svg>'}),o("div",{class:"tg-file-upload__file-info"},o("div",{class:"tg-file-upload__file-name"},e.file.name),o("div",{class:"tg-file-upload__file-size"},this.formatSize(e.file.size))),o("button",{class:"tg-file-upload__file-remove",onClick:()=>this.removeFile(e.id),"aria-label":"Supprimer",innerHTML:'<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><line x1="4" y1="4" x2="12" y2="12"/><line x1="12" y1="4" x2="4" y2="12"/></svg>'})))))))}get el(){return this}static get style(){return":host{display:block}.tg-file-upload{display:flex;flex-direction:column;gap:var(--tg-spacing-sm, 12px);font-family:var(--tg-font-family, sans-serif)}.tg-file-upload__dropzone{border:2px dashed var(--tg-color-neutral-300, #d1d5db);border-radius:var(--tg-radius-lg, 12px);padding:var(--tg-spacing-xl, 32px) var(--tg-spacing-lg, 24px);text-align:center;cursor:pointer;transition:border-color var(--tg-duration-fast, 150ms), background var(--tg-duration-fast, 150ms);background:var(--tg-color-neutral-50, #f9fafb)}.tg-file-upload__dropzone:hover{border-color:var(--tg-color-primary, #00853F);background:var(--tg-color-primary-50, #ecfdf5)}.tg-file-upload__dropzone--active{border-color:var(--tg-color-primary, #00853F);background:var(--tg-color-primary-50, #ecfdf5);border-style:solid}.tg-file-upload__dropzone--error{border-color:var(--tg-color-danger, #dc2626);background:#fef2f2}.tg-file-upload__icon{width:48px;height:48px;margin:0 auto var(--tg-spacing-sm, 12px);color:var(--tg-color-neutral-400, #9ca3af);transition:color var(--tg-duration-fast, 150ms)}.tg-file-upload__dropzone:hover .tg-file-upload__icon,.tg-file-upload__dropzone--active .tg-file-upload__icon{color:var(--tg-color-primary, #00853F)}.tg-file-upload__icon svg{width:100%;height:100%}.tg-file-upload__text{font-size:var(--tg-font-size-sm, 0.8125rem);color:var(--tg-color-text-secondary, #6b7280)}.tg-file-upload__text strong{color:var(--tg-color-primary, #00853F);font-weight:var(--tg-font-weight-semibold, 600)}.tg-file-upload__hint{font-size:0.75rem;color:var(--tg-color-neutral-400, #9ca3af);margin-top:var(--tg-spacing-2xs, 4px)}.tg-file-upload__list{display:flex;flex-direction:column;gap:var(--tg-spacing-xs, 8px)}.tg-file-upload__file{display:flex;align-items:center;gap:var(--tg-spacing-sm, 12px);padding:var(--tg-spacing-sm, 12px);background:var(--tg-color-surface, #fff);border:1px solid var(--tg-color-neutral-200, #e5e7eb);border-radius:var(--tg-radius-md, 8px);animation:tg-file-upload-in var(--tg-duration-normal, 200ms) var(--tg-ease-out, ease-out)}@keyframes tg-file-upload-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.tg-file-upload__file-icon{width:36px;height:36px;border-radius:var(--tg-radius-md, 8px);background:var(--tg-color-primary-50, #ecfdf5);color:var(--tg-color-primary, #00853F);display:flex;align-items:center;justify-content:center;flex-shrink:0}.tg-file-upload__file-icon svg{width:18px;height:18px}.tg-file-upload__file-info{flex:1;min-width:0}.tg-file-upload__file-name{font-size:var(--tg-font-size-sm, 0.8125rem);font-weight:var(--tg-font-weight-medium, 500);color:var(--tg-color-text, #111827);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tg-file-upload__file-size{font-size:0.75rem;color:var(--tg-color-text-secondary, #6b7280)}.tg-file-upload__file-remove{appearance:none;border:none;background:transparent;cursor:pointer;color:var(--tg-color-text-secondary, #6b7280);padding:var(--tg-spacing-2xs, 4px);border-radius:var(--tg-radius-sm, 4px);display:flex;align-items:center;justify-content:center;transition:color var(--tg-duration-fast, 150ms), background var(--tg-duration-fast, 150ms);flex-shrink:0}.tg-file-upload__file-remove:hover{color:var(--tg-color-danger, #dc2626);background:#fef2f2}.tg-file-upload__file-remove:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-file-upload__file-remove svg{width:16px;height:16px}.tg-file-upload__error{font-size:0.75rem;color:var(--tg-color-danger, #dc2626);padding:0 var(--tg-spacing-2xs, 4px)}.tg-file-upload__input{display:none}"}},[1,"tg-file-upload",{accept:[1],multiple:[4],maxSize:[2,"max-size"],maxFiles:[2,"max-files"],label:[1],hint:[1],files:[32],dragActive:[32],error:[32]}]);function s(){"undefined"!=typeof customElements&&["tg-file-upload"].forEach((e=>{"tg-file-upload"===e&&(customElements.get(a(e))||customElements.define(a(e),l))}))}s();const n=l,d=s;export{n as TgFileUpload,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgGlobalLoader extends Components.TgGlobalLoader, HTMLElement {}
|
|
4
|
+
export const TgGlobalLoader: {
|
|
5
|
+
prototype: TgGlobalLoader;
|
|
6
|
+
new (): TgGlobalLoader;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as r,h as e,a,t as l}from"./index.js";const s=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.active=!1,this.variant="bar"}render(){return this.active?e(a,null,"bar"===this.variant?e("div",{class:"tg-gl-bar"},e("div",{class:"tg-gl-bar__track"})):e("div",{class:"tg-gl-overlay"},e("div",{class:"tg-gl-overlay__spinner"}),this.label&&e("span",{class:"tg-gl-overlay__label"},this.label))):e(a,null)}static get style(){return":host{display:contents}.tg-gl-bar{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;overflow:hidden}.tg-gl-bar__track{width:40%;height:100%;background:var(--tg-color-primary);border-radius:var(--tg-radius-full);animation:tg-gl-slide 1.2s ease-in-out infinite}@keyframes tg-gl-slide{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}.tg-gl-overlay{position:fixed;inset:0;z-index:99999;background:rgba(255,255,255,0.85);backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--tg-spacing-3);font-family:var(--tg-font-family-sans)}.tg-gl-overlay__spinner{width:2.5rem;height:2.5rem;border:3px solid var(--tg-color-border);border-top-color:var(--tg-color-primary);border-radius:50%;animation:tg-gl-spin 0.7s linear infinite}@keyframes tg-gl-spin{to{transform:rotate(360deg)}}.tg-gl-overlay__label{font-size:var(--tg-font-size-sm);color:var(--tg-color-text-secondary)}"}},[1,"tg-global-loader",{active:[4],label:[1],variant:[1]}]);function i(){"undefined"!=typeof customElements&&["tg-global-loader"].forEach((t=>{"tg-global-loader"===t&&(customElements.get(l(t))||customElements.define(l(t),s))}))}i();const o=s,n=i;export{o as TgGlobalLoader,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgHeatmap extends Components.TgHeatmap, HTMLElement {}
|
|
4
|
+
export const TgHeatmap: {
|
|
5
|
+
prototype: TgHeatmap;
|
|
6
|
+
new (): TgHeatmap;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,h as e,a as r,t as s}from"./index.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.data=[],this.xLabels=[],this.yLabels=[],this.colorMin="#f0fdf4",this.colorMax="#166534"}get grid(){if("string"==typeof this.data)try{return JSON.parse(this.data)}catch(t){return[]}return this.data}get xl(){if("string"==typeof this.xLabels)try{return JSON.parse(this.xLabels)}catch(t){return[]}return this.xLabels}get yl(){if("string"==typeof this.yLabels)try{return JSON.parse(this.yLabels)}catch(t){return[]}return this.yLabels}get maxVal(){return Math.max(...this.grid.flatMap((t=>t)),1)}cellColor(t){return"rgba(22, 101, 52, "+(.15+t/this.maxVal*.85).toFixed(2)+")"}render(){var t;return e(r,{key:"29b99401781ab130feadedf8d0205cc95ff90400"},e("div",{key:"4e74b38344b353c7121789124c64b8a641cc59f9",class:"tg-heatmap"},this.heading&&e("h3",{key:"bb8fe84d77a651150b2dfc3a7337d1749766a565",class:"tg-heatmap__title"},this.heading),e("div",{key:"df74fa440f9803a8432ff18ab06118cfdb60efbb",class:"tg-heatmap__grid",style:{gridTemplateColumns:(this.yl.length?"4rem ":"")+"repeat("+(this.xl.length||(null===(t=this.grid[0])||void 0===t?void 0:t.length)||1)+", 1fr)"}},this.yl.length>0&&e("div",{key:"33bc2dea9ad7d048d880772bba8dc40b471d86c3",class:"tg-heatmap__corner"}),this.xl.map((t=>e("div",{class:"tg-heatmap__xlabel"},t))),this.grid.map(((t,a)=>[this.yl[a]?e("div",{class:"tg-heatmap__ylabel"},this.yl[a]):null,...t.map((t=>e("div",{class:"tg-heatmap__cell",style:{background:this.cellColor(t)},title:t+""},t)))])))))}static get style(){return":host{display:block}.tg-heatmap{font-family:var(--tg-font-family-sans)}.tg-heatmap__title{margin:0 0 var(--tg-spacing-3);font-size:var(--tg-font-size-md);font-weight:var(--tg-font-weight-semibold);color:var(--tg-color-text-primary)}.tg-heatmap__grid{display:grid;gap:2px}.tg-heatmap__corner{background:transparent}.tg-heatmap__xlabel{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);text-align:center;padding:var(--tg-spacing-1)}.tg-heatmap__ylabel{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);display:flex;align-items:center;padding-right:var(--tg-spacing-2)}.tg-heatmap__cell{display:flex;align-items:center;justify-content:center;padding:var(--tg-spacing-2);font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary);border-radius:var(--tg-radius-sm);min-height:2rem;transition:transform var(--tg-duration-fast)}.tg-heatmap__cell:hover{transform:scale(1.05)}"}},[1,"tg-heatmap",{data:[1],xLabels:[1,"x-labels"],yLabels:[1,"y-labels"],colorMin:[1,"color-min"],colorMax:[1,"color-max"],heading:[1]}]);function n(){"undefined"!=typeof customElements&&["tg-heatmap"].forEach((t=>{"tg-heatmap"===t&&(customElements.get(s(t))||customElements.define(s(t),i))}))}n();const l=i,o=n;export{l as TgHeatmap,o as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgImageGallery extends Components.TgImageGallery, HTMLElement {}
|
|
4
|
+
export const TgImageGallery: {
|
|
5
|
+
prototype: TgImageGallery;
|
|
6
|
+
new (): TgImageGallery;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as i,h as e,a,t as s}from"./index.js";const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.images=[],this.columns=3,this.lightboxIndex=-1}get parsed(){if("string"==typeof this.images)try{return JSON.parse(this.images)}catch(t){return[]}return this.images}render(){const t=this.parsed;return e(a,{key:"54f0a5f4c8cb69c7601f751a6e3a4fa9c039aa03"},e("div",{key:"43db45820a7a66b647aec8f22d8b1237e7937ea0",class:"tg-ig",style:{gridTemplateColumns:"repeat("+this.columns+", 1fr)"}},t.map(((t,i)=>e("div",{class:"tg-ig__item",onClick:()=>{this.lightboxIndex=i}},e("img",{class:"tg-ig__img",src:t.src,alt:t.alt||"",loading:"lazy"}),t.caption&&e("span",{class:"tg-ig__caption"},t.caption))))),this.lightboxIndex>=0&&e("div",{key:"34f7696e87ffb3032535406680dbbc356d53c473",class:"tg-ig__lightbox",onClick:()=>{this.lightboxIndex=-1}},e("button",{key:"af12d664a0067352ca81546308a49fbfb2fcc9e3",class:"tg-ig__lb-close",type:"button","aria-label":"Close"},"\\u00d7"),this.lightboxIndex>0&&e("button",{key:"a0850fa101999ceb4449f013439f0d4b6b0e605d",class:"tg-ig__lb-prev",type:"button",onClick:t=>{t.stopPropagation(),this.lightboxIndex--}},"\\u2039"),e("img",{key:"b5c77f37b9cbbad132bfddedaa9e01c6537679f3",class:"tg-ig__lb-img",src:t[this.lightboxIndex].src,alt:t[this.lightboxIndex].alt||"",onClick:t=>t.stopPropagation()}),this.lightboxIndex<t.length-1&&e("button",{key:"b0e845547338cde60e62d1b860884694068bc4a1",class:"tg-ig__lb-next",type:"button",onClick:t=>{t.stopPropagation(),this.lightboxIndex++}},"\\u203a"),t[this.lightboxIndex].caption&&e("p",{key:"ff6ed839f25df6052c42ffcf7257577d2bd27740",class:"tg-ig__lb-caption"},t[this.lightboxIndex].caption)))}static get style(){return":host{display:block}.tg-ig{display:grid;gap:var(--tg-spacing-2);font-family:var(--tg-font-family-sans)}.tg-ig__item{position:relative;overflow:hidden;border-radius:var(--tg-radius-lg);cursor:pointer;aspect-ratio:1}.tg-ig__item:hover .tg-ig__img{transform:scale(1.05)}.tg-ig__img{width:100%;height:100%;object-fit:cover;transition:transform var(--tg-duration-normal)}.tg-ig__caption{position:absolute;bottom:0;left:0;right:0;padding:var(--tg-spacing-2);background:linear-gradient(transparent, rgba(0,0,0,0.6));color:white;font-size:var(--tg-font-size-xs)}.tg-ig__lightbox{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,0.9);display:flex;align-items:center;justify-content:center}.tg-ig__lb-close{position:absolute;top:var(--tg-spacing-4);right:var(--tg-spacing-4);background:none;border:none;color:white;font-size:2rem;cursor:pointer;z-index:1}.tg-ig__lb-img{max-width:90vw;max-height:85vh;object-fit:contain;border-radius:var(--tg-radius-lg)}.tg-ig__lb-prev,.tg-ig__lb-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,0.1);border:none;color:white;font-size:2rem;padding:var(--tg-spacing-2) var(--tg-spacing-3);cursor:pointer;border-radius:var(--tg-radius-lg)}.tg-ig__lb-prev{left:var(--tg-spacing-4)}.tg-ig__lb-next{right:var(--tg-spacing-4)}.tg-ig__lb-caption{position:absolute;bottom:var(--tg-spacing-4);text-align:center;width:100%;color:white;font-size:var(--tg-font-size-sm)}"}},[1,"tg-image-gallery",{images:[1],columns:[2],lightboxIndex:[32]}]);function r(){"undefined"!=typeof customElements&&["tg-image-gallery"].forEach((t=>{"tg-image-gallery"===t&&(customElements.get(s(t))||customElements.define(s(t),g))}))}r();const o=g,n=r;export{o as TgImageGallery,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgInput extends Components.TgInput, HTMLElement {}
|
|
4
|
+
export const TgInput: {
|
|
5
|
+
prototype: TgInput;
|
|
6
|
+
new (): TgInput;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,c as r,h as i,a,t as o}from"./index.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgChange=r(this,"tgChange"),this.tgFocus=r(this,"tgFocus"),this.tgBlur=r(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,r="password"===this.type&&this.passwordVisible?"text":this.type;return i(a,{key:"39e10a36aa30f6714c47e2d7071a1b4e8a40cc95"},i("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&&i("label",{key:"593efd7e643d2853bf92990a20daa6fb34e84dfa",class:"tg-input__label",htmlFor:this.inputId},this.label,this.required&&i("span",{key:"6c58fd8c27e6859b44654b4f9bc0fe1e0a601cda",class:"tg-input__required","aria-hidden":"true"}," *")),i("div",{key:"5103029e9374a63a3739a4f737d6dfa4a3af2d19",class:"tg-input__field-wrapper"},i("slot",{key:"b5e7b13ee91f87115b1f391eccd95012a18d5fe2",name:"icon-start"}),i("input",{key:"8909c5ec22eed69d23b65663c5fd4bc3e6e376b7",id:this.inputId,class:"tg-input__field",type:r,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&&i("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?i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i("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"}),i("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"})):i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},i("path",{d:"M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),i("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"}))),i("slot",{key:"6ca491e27e06a60b80a721194f0be211efba72cb",name:"icon-end"})),e&&i("p",{key:"9c395300d317050bdb30b0c45a3e0ea10148b955",id:this.inputId+"-error",class:"tg-input__error",role:"alert"},i("svg",{key:"4dde577fba2b01b4df4289ab4024a9ec3d0bea4b",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true"},i("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&&i("p",{key:"684ca4c4b93f22aaf25e53b21f68c797e5c22454",id:this.inputId+"-helper",class:"tg-input__helper"},this.helperText)))}static get style(){return":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)}"}},[257,"tg-input",{type:[1],label:[1],placeholder:[1],value:[1537],helperText:[1,"helper-text"],error:[1],required:[516],disabled:[516],readonly:[516],fullWidth:[516,"full-width"],size:[513],inputId:[1,"input-id"],passwordVisible:[32]}]);function s(){"undefined"!=typeof customElements&&["tg-input"].forEach((t=>{"tg-input"===t&&(customElements.get(o(t))||customElements.define(o(t),l))}))}s();const n=l,d=s;export{n as TgInput,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgKanbanBoard extends Components.TgKanbanBoard, HTMLElement {}
|
|
4
|
+
export const TgKanbanBoard: {
|
|
5
|
+
prototype: TgKanbanBoard;
|
|
6
|
+
new (): TgKanbanBoard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,c as r,h as s,a as o,t as g}from"./index.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgCardClick=r(this,"tgCardClick"),this.columns=[]}get parsed(){if("string"==typeof this.columns)try{return JSON.parse(this.columns)}catch(t){return[]}return this.columns}render(){return s(o,{key:"3f837f4ad3e240f95aad5ba3ffa631d0cd1f3d5f"},s("div",{key:"d2200c09dbd8133a0deba07836c7ac9f02370835",class:"tg-kb"},this.parsed.map((t=>s("div",{class:"tg-kb__col"},s("div",{class:"tg-kb__col-header"},s("span",{class:"tg-kb__col-dot",style:t.color?{background:t.color}:{}}),s("h3",{class:"tg-kb__col-title"},t.title),s("span",{class:"tg-kb__col-count"},t.cards.length)),s("div",{class:"tg-kb__cards"},t.cards.map((a=>s("div",{class:"tg-kb__card",onClick:()=>this.tgCardClick.emit({columnId:t.id,cardId:a.id})},a.tag&&s("span",{class:"tg-kb__card-tag"},a.tag),s("h4",{class:"tg-kb__card-title"},a.title),a.description&&s("p",{class:"tg-kb__card-desc"},a.description),a.assignee&&s("div",{class:"tg-kb__card-assignee"},a.assignee))))))))))}static get style(){return":host{display:block}.tg-kb{display:flex;gap:var(--tg-spacing-4);overflow-x:auto;padding-bottom:var(--tg-spacing-2);font-family:var(--tg-font-family-sans)}.tg-kb__col{flex:0 0 18rem;background:var(--tg-color-surface-sunken);border-radius:var(--tg-radius-xl);padding:var(--tg-spacing-3)}.tg-kb__col-header{display:flex;align-items:center;gap:var(--tg-spacing-2);margin-bottom:var(--tg-spacing-3)}.tg-kb__col-dot{width:0.625rem;height:0.625rem;border-radius:50%;background:var(--tg-color-primary);flex-shrink:0}.tg-kb__col-title{margin:0;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-semibold);flex:1}.tg-kb__col-count{font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);background:var(--tg-color-surface-raised);padding:2px var(--tg-spacing-2);border-radius:var(--tg-radius-full)}.tg-kb__cards{display:flex;flex-direction:column;gap:var(--tg-spacing-2)}.tg-kb__card{background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-lg);padding:var(--tg-spacing-3);cursor:pointer;transition:box-shadow var(--tg-duration-fast), transform var(--tg-duration-fast)}.tg-kb__card:hover{box-shadow:var(--tg-shadow-md);transform:translateY(-1px)}.tg-kb__card-tag{display:inline-block;font-size:var(--tg-font-size-xs);padding:1px var(--tg-spacing-2);border-radius:var(--tg-radius-full);background:var(--tg-color-primary-subtle);color:var(--tg-color-primary);margin-bottom:var(--tg-spacing-1-5);font-weight:var(--tg-font-weight-medium)}.tg-kb__card-title{margin:0;font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-kb__card-desc{margin:var(--tg-spacing-1) 0 0;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);line-height:var(--tg-line-height-relaxed)}.tg-kb__card-assignee{margin-top:var(--tg-spacing-2);font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary)}"}},[1,"tg-kanban-board",{columns:[1]}]);function e(){"undefined"!=typeof customElements&&["tg-kanban-board"].forEach((t=>{"tg-kanban-board"===t&&(customElements.get(g(t))||customElements.define(g(t),i))}))}e();const c=i,n=e;export{c as TgKanbanBoard,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgKpiCard extends Components.TgKpiCard, HTMLElement {}
|
|
4
|
+
export const TgKpiCard: {
|
|
5
|
+
prototype: TgKpiCard;
|
|
6
|
+
new (): TgKpiCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,h as e,a as r,t as i}from"./index.js";const s=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.heading="",this.value="",this.variant="default"}render(){return e(r,{key:"59a6b36432315e5fa734c9692f77b9d992c3cdb4"},e("div",{key:"761450ae5065d82379e7bd020244709b214bdf76",class:"tg-kpi tg-kpi--"+this.variant},e("div",{key:"c9f9d54951bf507128b6acc7ddd3638b57dabec1",class:"tg-kpi__header"},this.icon&&e("span",{key:"daf8d996d601e5064b58da5a8381a96eb3bc2bdc",class:"tg-kpi__icon"},this.icon),e("span",{key:"df039f3a57f0d6e7536579ab0d3e54892e9de19a",class:"tg-kpi__title"},this.heading)),e("div",{key:"d75dde0f1857d31bfa66b9f82ea8b3b3c4f2b6c9",class:"tg-kpi__body"},e("span",{key:"e68fe293bc795a2ca90f88972da6c2f08b86e30f",class:"tg-kpi__value"},this.value),this.unit&&e("span",{key:"6cafc1dbe979dc0e74cb8d116f048c19edd65bb2",class:"tg-kpi__unit"},this.unit)),this.trend&&e("div",{key:"1e9b6ce2fb01c19a01df0a6aeae3522782ddb21f",class:"tg-kpi__trend tg-kpi__trend--"+this.trend},e("span",{key:"55300f6c15a71fb63f5f5a5a26642a68ddbec5d5",class:"tg-kpi__trend-arrow"},"up"===this.trend?"↑":"down"===this.trend?"↓":"→"),this.trendValue&&e("span",{key:"921388ed870275169e331d0e664091a99577fc46",class:"tg-kpi__trend-val"},this.trendValue))))}static get style(){return":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)}"}},[1,"tg-kpi-card",{heading:[1],value:[1],unit:[1],trend:[1],trendValue:[1,"trend-value"],icon:[1],variant:[1]}]);function o(){"undefined"!=typeof customElements&&["tg-kpi-card"].forEach((t=>{"tg-kpi-card"===t&&(customElements.get(i(t))||customElements.define(i(t),s))}))}o();const g=s,d=o;export{g as TgKpiCard,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgLiveBadge extends Components.TgLiveBadge, HTMLElement {}
|
|
4
|
+
export const TgLiveBadge: {
|
|
5
|
+
prototype: TgLiveBadge;
|
|
6
|
+
new (): TgLiveBadge;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as o,d as s}from"./p-DcG1qXzH.js";const p=o,r=s;export{p as TgLiveBadge,r as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgLoginForm extends Components.TgLoginForm, HTMLElement {}
|
|
4
|
+
export const TgLoginForm: {
|
|
5
|
+
prototype: TgLoginForm;
|
|
6
|
+
new (): TgLoginForm;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,c as a,h as r,a as o,t as i}from"./index.js";const s=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgLogin=a(this,"tgLogin"),this.heading="Connexion",this.loading=!1,this.email="",this.password="",this.handleSubmit=t=>{t.preventDefault(),this.tgLogin.emit({email:this.email,password:this.password})}}render(){return r(o,{key:"b4683389c890e1d32044f434268f53e1e019af4f"},r("div",{key:"7306773a637114600431addb51e2ba89ff6eb08c",class:"tg-lf"},this.logo&&r("div",{key:"04c8b07072f23256a18f298391bc52740f06f490",class:"tg-lf__logo"},this.logo),r("h2",{key:"47ecfb023fa7c5e962d58f75cea46ff0f0fdebf3",class:"tg-lf__title"},this.heading),this.subtitle&&r("p",{key:"effc0c05996109765eb6d85aa6213e51932b9b70",class:"tg-lf__subtitle"},this.subtitle),this.error&&r("div",{key:"38e4bfdbb4a58e24b78b1022db4643bf2e975873",class:"tg-lf__error"},this.error),r("form",{key:"4b79ce663b680a20d6aef1315f4bd9fd6e796a3a",class:"tg-lf__form",onSubmit:this.handleSubmit},r("div",{key:"c281a3a248b954276fede1583034f8d97261575b",class:"tg-lf__field"},r("label",{key:"6c0b4cc43142ef2fe26f591f6a5e65a95245d84a",class:"tg-lf__label"},"Email"),r("input",{key:"3183a8d211e8c385b97711f86ee7c532b2249d6b",class:"tg-lf__input",type:"email",value:this.email,placeholder:"nom@exemple.com",autocomplete:"email",onInput:t=>{this.email=t.target.value},required:!0})),r("div",{key:"4e28fd9a15c5d1b356087475f62e7d1816613391",class:"tg-lf__field"},r("label",{key:"3e33adbd530d2794b152af3a4f393b7ef33aa9fc",class:"tg-lf__label"},"Mot de passe"),r("input",{key:"4c1292a6eb18c6d374cf7d60f317f0b943d94c69",class:"tg-lf__input",type:"password",value:this.password,placeholder:"\\u2022\\u2022\\u2022\\u2022\\u2022\\u2022\\u2022\\u2022",autocomplete:"current-password",onInput:t=>{this.password=t.target.value},required:!0})),r("button",{key:"c4409e3003528e874746cec210b7407639280fbd",class:"tg-lf__btn",type:"submit",disabled:this.loading},this.loading?r("span",{class:"tg-lf__spinner"}):"Se connecter")),r("slot",{key:"21d6a4bb469c1c3ea4a360e97de1ca42c4798e02"})))}static get style(){return":host{display:block}.tg-lf{max-width:24rem;margin:0 auto;padding:var(--tg-spacing-8);background:var(--tg-color-surface-raised);border:1px solid var(--tg-color-border);border-radius:var(--tg-radius-2xl);font-family:var(--tg-font-family-sans)}.tg-lf__logo{text-align:center;font-size:2rem;margin-bottom:var(--tg-spacing-4)}.tg-lf__title{margin:0 0 var(--tg-spacing-1);font-size:var(--tg-font-size-xl);font-weight:var(--tg-font-weight-bold);color:var(--tg-color-text-primary);text-align:center;font-family:var(--tg-font-family-display)}.tg-lf__subtitle{margin:0 0 var(--tg-spacing-5);font-size:var(--tg-font-size-sm);color:var(--tg-color-text-secondary);text-align:center}.tg-lf__error{padding:var(--tg-spacing-2) var(--tg-spacing-3);background:var(--tg-color-danger-subtle);color:var(--tg-color-danger);border-radius:var(--tg-radius-lg);font-size:var(--tg-font-size-sm);margin-bottom:var(--tg-spacing-4)}.tg-lf__form{display:flex;flex-direction:column;gap:var(--tg-spacing-4)}.tg-lf__field{display:flex;flex-direction:column;gap:var(--tg-spacing-1-5)}.tg-lf__label{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-lf__input{padding:var(--tg-spacing-2-5) var(--tg-spacing-3);border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);font-family:inherit;font-size:var(--tg-font-size-sm);color:var(--tg-color-text-primary);background:var(--tg-color-surface-raised);outline:none;transition:border-color var(--tg-duration-fast), box-shadow var(--tg-duration-fast)}.tg-lf__input:focus{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-lf__btn{padding:var(--tg-spacing-2-5);background:var(--tg-color-primary);color:var(--tg-color-primary-on);border:none;border-radius:var(--tg-radius-lg);font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-semibold);cursor:pointer;transition:filter var(--tg-duration-fast);display:flex;align-items:center;justify-content:center}.tg-lf__btn:hover:not(:disabled){filter:brightness(1.1)}.tg-lf__btn:disabled{opacity:0.7;cursor:wait}.tg-lf__spinner{width:1.25rem;height:1.25rem;border:2px solid rgba(255,255,255,0.3);border-top-color:white;border-radius:50%;animation:tg-lf-spin 0.6s linear infinite}@keyframes tg-lf-spin{to{transform:rotate(360deg)}}"}},[257,"tg-login-form",{heading:[1],subtitle:[1],logo:[1],loading:[4],error:[1],email:[32],password:[32]}]);function l(){"undefined"!=typeof customElements&&["tg-login-form"].forEach((t=>{"tg-login-form"===t&&(customElements.get(i(t))||customElements.define(i(t),s))}))}l();const n=s,g=l;export{n as TgLoginForm,g as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgMegaMenu extends Components.TgMegaMenu, HTMLElement {}
|
|
4
|
+
export const TgMegaMenu: {
|
|
5
|
+
prototype: TgMegaMenu;
|
|
6
|
+
new (): TgMegaMenu;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,h as e,a as r,t as o}from"./index.js";const g=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),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,a=t[this.activeTab];return e(r,{key:"2fe88e550f40cd033df85d4f6a31866d9e3f7ebd"},e("div",{key:"7245fd5e21bd7ae398c00472f1aba4c03eea4a33",class:"tg-mega",onClick:t=>t.stopPropagation()},e("button",{key:"c54f6d55c5a337eca50144f11a5ac30ebad51ed0",class:"tg-mega__trigger",type:"button",onClick:()=>{this.open=!this.open}},e("slot",{key:"7bdc928608dffadc862af62075249ac6afe1c85d",name:"trigger"},"Menu"),e("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"},e("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&&e("div",{key:"484d4184425b2d7f24e7672307822b2778e7fa1d",class:"tg-mega__panel"},t.length>1&&e("div",{key:"f9ea6f620a83c1fb6cbaa9d419361b80e502dcc1",class:"tg-mega__tabs"},t.map(((t,a)=>e("button",{class:{"tg-mega__tab":!0,"tg-mega__tab--active":a===this.activeTab},type:"button",onClick:()=>{this.activeTab=a}},t.label)))),a&&e("div",{key:"8108298cb4d800605bdbeb7c8d22cbf21c0c1518",class:"tg-mega__sections"},a.sections.map((t=>e("div",{class:"tg-mega__section"},e("h4",{class:"tg-mega__sec-title"},t.title),t.items.map((t=>e("a",{class:"tg-mega__item",href:t.href||"#"},t.icon&&e("span",{class:"tg-mega__item-icon"},t.icon),e("div",null,e("span",{class:"tg-mega__item-label"},t.label),t.description&&e("span",{class:"tg-mega__item-desc"},t.description))))))))))))}static get style(){return":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}"}},[257,"tg-mega-menu",{tabs:[1],open:[32],activeTab:[32]},[[4,"click","onDocClick"]]]);function i(){"undefined"!=typeof customElements&&["tg-mega-menu"].forEach((t=>{"tg-mega-menu"===t&&(customElements.get(o(t))||customElements.define(o(t),g))}))}i();const s=g,n=i;export{s as TgMegaMenu,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgModal extends Components.TgModal, HTMLElement {}
|
|
4
|
+
export const TgModal: {
|
|
5
|
+
prototype: TgModal;
|
|
6
|
+
new (): TgModal;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,c as o,h as e,a as s,t as l}from"./index.js";const i=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgClose=o(this,"tgClose"),this.open=!1,this.size="md",this.closeOnBackdrop=!0,this.closeOnEscape=!0,this.exiting=!1,this.close=()=>{this.exiting=!0,setTimeout((()=>{this.exiting=!1,this.open=!1,this.tgClose.emit()}),200)},this.handleBackdropClick=t=>{this.closeOnBackdrop&&t.target.classList.contains("tg-modal__backdrop")&&this.close()}}handleKeydown(t){this.open&&this.closeOnEscape&&"Escape"===t.key&&this.close()}render(){return this.open?e(s,null,e("div",{class:{"tg-modal__backdrop":!0,"tg-modal__backdrop--exiting":this.exiting},onClick:this.handleBackdropClick,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title"},e("div",{class:{"tg-modal__panel":!0,["tg-modal__panel--"+this.size]:!0}},e("div",{class:"tg-modal__header"},this.modalTitle&&e("h2",{class:"tg-modal__title",id:"modal-title"},this.modalTitle),e("button",{class:"tg-modal__close",onClick:this.close,"aria-label":"Fermer"},e("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},e("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),e("line",{x1:"11",y1:"3",x2:"3",y2:"11"})))),e("div",{class:"tg-modal__body"},e("slot",null)),e("div",{class:"tg-modal__footer"},e("slot",{name:"footer"}))))):null}static get style(){return":host{display:contents}.tg-modal__backdrop{position:fixed;inset:0;background:rgba(0, 0, 0, 0.5);backdrop-filter:blur(4px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:var(--tg-spacing-lg);animation:tg-modal-backdrop-in var(--tg-duration-normal, 200ms) var(--tg-ease-default, ease) forwards}.tg-modal__backdrop--exiting{animation:tg-modal-backdrop-out var(--tg-duration-normal, 200ms) var(--tg-ease-default, ease) forwards}@keyframes tg-modal-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes tg-modal-backdrop-out{from{opacity:1}to{opacity:0}}.tg-modal__panel{background:var(--tg-color-surface, #fff);border-radius:var(--tg-radius-xl, 16px);box-shadow:var(--tg-shadow-xl, 0 20px 60px rgba(0,0,0,0.15));width:100%;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;animation:tg-modal-panel-in var(--tg-duration-normal, 200ms) var(--tg-ease-out, ease-out) forwards}.tg-modal__backdrop--exiting .tg-modal__panel{animation:tg-modal-panel-out var(--tg-duration-fast, 150ms) var(--tg-ease-in, ease-in) forwards}.tg-modal__panel--sm{max-width:400px}.tg-modal__panel--md{max-width:560px}.tg-modal__panel--lg{max-width:720px}.tg-modal__panel--xl{max-width:960px}.tg-modal__panel--full{max-width:100%;max-height:100vh;height:100vh;border-radius:0}@keyframes tg-modal-panel-in{from{opacity:0;transform:scale(0.95) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes tg-modal-panel-out{from{opacity:1;transform:scale(1) translateY(0)}to{opacity:0;transform:scale(0.95) translateY(8px)}}.tg-modal__header{display:flex;align-items:center;justify-content:space-between;padding:var(--tg-spacing-lg, 24px) var(--tg-spacing-lg, 24px) var(--tg-spacing-sm, 12px);gap:var(--tg-spacing-sm, 12px)}.tg-modal__title{font-family:var(--tg-font-family, sans-serif);font-size:var(--tg-font-size-lg, 1.125rem);font-weight:var(--tg-font-weight-semibold, 600);color:var(--tg-color-text, #111827);margin:0;line-height:1.3}.tg-modal__close{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);transition:background var(--tg-duration-fast, 150ms), color var(--tg-duration-fast, 150ms);display:flex;align-items:center;justify-content:center;flex-shrink:0}.tg-modal__close:hover{background:var(--tg-color-neutral-100, #f3f4f6);color:var(--tg-color-text, #111827)}.tg-modal__close:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-modal__close svg{width:16px;height:16px}.tg-modal__body{padding:var(--tg-spacing-sm, 12px) var(--tg-spacing-lg, 24px);overflow-y:auto;flex:1;font-family:var(--tg-font-family, sans-serif);font-size:var(--tg-font-size-md, 0.875rem);color:var(--tg-color-text-secondary, #6b7280);line-height:1.6}.tg-modal__footer{padding:var(--tg-spacing-sm, 12px) var(--tg-spacing-lg, 24px) var(--tg-spacing-lg, 24px);display:flex;align-items:center;justify-content:flex-end;gap:var(--tg-spacing-sm, 12px)}"}},[257,"tg-modal",{open:[1028],modalTitle:[1,"modal-title"],size:[1],closeOnBackdrop:[4,"close-on-backdrop"],closeOnEscape:[4,"close-on-escape"],exiting:[32]},[[8,"keydown","handleKeydown"]]]);function r(){"undefined"!=typeof customElements&&["tg-modal"].forEach((t=>{"tg-modal"===t&&(customElements.get(l(t))||customElements.define(l(t),i))}))}r();const n=i,d=r;export{n as TgModal,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgModelSelector extends Components.TgModelSelector, HTMLElement {}
|
|
4
|
+
export const TgModelSelector: {
|
|
5
|
+
prototype: TgModelSelector;
|
|
6
|
+
new (): TgModelSelector;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as r,c as o,h as s,a as e,t as a}from"./index.js";const i=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgChange=o(this,"tgChange"),this.models=[],this.open=!1}get parsed(){if("string"==typeof this.models)try{return JSON.parse(this.models)}catch(t){return[]}return this.models}get selected(){return this.parsed.find((t=>t.id===this.value))}onDocClick(){this.open=!1}render(){const t=this.selected;return s(e,{key:"8f2110c45d3a41c21b318ea4aee2b9df97f6c64e"},s("div",{key:"548a1c12ff3e4ca389bd9af9c7b3918284ecdf07",class:"tg-ms",onClick:t=>t.stopPropagation()},s("button",{key:"64c22f0895e04c5852124bb9fc50a9075aa85e89",class:"tg-ms__trigger",type:"button",onClick:()=>{this.open=!this.open}},s("span",{key:"07d0f36c53a428721beac440fb3746cd621db3e6",class:"tg-ms__current"},t?t.name:"Sélectionner un modèle"),s("svg",{key:"19dadd4c8fe6ad05288aa753c095e8eef896e5de",class:{"tg-ms__chev":!0,"tg-ms__chev--open":this.open},viewBox:"0 0 20 20",fill:"currentColor",width:"14",height:"14"},s("path",{key:"7c3ee88b2ae95fcdc4ba9769033d92fbdb2b7dd4","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&&s("div",{key:"328b12c238fdf9806d30e841a3ff7517fee2488e",class:"tg-ms__dropdown"},this.parsed.map((t=>s("button",{class:{"tg-ms__option":!0,"tg-ms__option--sel":t.id===this.value},type:"button",onClick:()=>{this.tgChange.emit(t.id),this.open=!1}},s("div",{class:"tg-ms__opt-main"},s("span",{class:"tg-ms__opt-name"},t.name),t.badge&&s("span",{class:"tg-ms__opt-badge"},t.badge)),t.provider&&s("span",{class:"tg-ms__opt-provider"},t.provider),t.description&&s("span",{class:"tg-ms__opt-desc"},t.description)))))))}static get style(){return":host{display:inline-block;position:relative}.tg-ms{font-family:var(--tg-font-family-sans)}.tg-ms__trigger{display:inline-flex;align-items:center;gap:var(--tg-spacing-2);padding:var(--tg-spacing-2) var(--tg-spacing-3);border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);background:var(--tg-color-surface-raised);cursor:pointer;font-size:var(--tg-font-size-sm);color:var(--tg-color-text-primary);transition:border-color var(--tg-duration-fast)}.tg-ms__trigger:hover{border-color:var(--tg-color-primary)}.tg-ms__chev{transition:transform var(--tg-duration-fast);color:var(--tg-color-text-secondary)}.tg-ms__chev--open{transform:rotate(180deg)}.tg-ms__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-xl);box-shadow:var(--tg-shadow-lg);z-index:1000;padding:var(--tg-spacing-1);min-width:16rem}.tg-ms__option{display:block;width:100%;text-align:left;padding:var(--tg-spacing-2-5) var(--tg-spacing-3);border:none;background:none;cursor:pointer;border-radius:var(--tg-radius-lg);transition:background var(--tg-duration-fast)}.tg-ms__option:hover{background:var(--tg-color-primary-subtle)}.tg-ms__option--sel{background:var(--tg-color-primary-subtle)}.tg-ms__opt-main{display:flex;align-items:center;gap:var(--tg-spacing-2)}.tg-ms__opt-name{font-size:var(--tg-font-size-sm);font-weight:var(--tg-font-weight-medium);color:var(--tg-color-text-primary)}.tg-ms__opt-badge{font-size:var(--tg-font-size-xs);padding:1px var(--tg-spacing-1-5);background:var(--tg-color-primary);color:white;border-radius:var(--tg-radius-full)}.tg-ms__opt-provider{display:block;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-secondary);margin-top:2px}.tg-ms__opt-desc{display:block;font-size:var(--tg-font-size-xs);color:var(--tg-color-text-disabled);margin-top:2px}"}},[1,"tg-model-selector",{models:[1],value:[1],open:[32]},[[4,"click","onDocClick"]]]);function n(){"undefined"!=typeof customElements&&["tg-model-selector"].forEach((t=>{"tg-model-selector"===t&&(customElements.get(a(t))||customElements.define(a(t),i))}))}n();const g=i,c=n;export{g as TgModelSelector,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgMultiSelect extends Components.TgMultiSelect, HTMLElement {}
|
|
4
|
+
export const TgMultiSelect: {
|
|
5
|
+
prototype: TgMultiSelect;
|
|
6
|
+
new (): TgMultiSelect;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,c as r,h as i,a as s,t as a}from"./index.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgChange=r(this,"tgChange"),this.placeholder="Sélectionner…",this.options=[],this.value=[],this.disabled=!1,this.invalid=!1,this.size="md",this.open=!1,this.query=""}get parsed(){if("string"==typeof this.options)try{return JSON.parse(this.options)}catch(t){return[]}return this.options}get selected(){if("string"==typeof this.value)try{return JSON.parse(this.value)}catch(t){return[]}return this.value}get filtered(){const t=this.query.toLowerCase();return t?this.parsed.filter((e=>e.label.toLowerCase().includes(t))):this.parsed}handleDocClick(){this.open=!1}toggle(t){const e=[...this.selected],r=e.indexOf(t);r>=0?e.splice(r,1):e.push(t),this.tgChange.emit(e)}removeTag(t,e){e.stopPropagation(),this.toggle(t)}render(){const t=this.selected;return i(s,{key:"548bf9ea41d5fa1ff51d869b148a179cc501bb96"},i("div",{key:"8988934df274adf78ba6f4f752000778bbe97fb6",class:"tg-multi-select tg-multi-select--"+this.size,onClick:t=>t.stopPropagation()},this.label&&i("label",{key:"e989f8e6c2b88e88799611f90b0e44147f7c1572",class:"tg-multi-select__label"},this.label),i("div",{key:"9406b5553070f26d382c1616ae1c57d54fb3b901",class:{"tg-multi-select__trigger":!0,"tg-multi-select__trigger--invalid":this.invalid},onClick:()=>{this.disabled||(this.open=!this.open)}},i("div",{key:"52cb0629e1cad93a658f5c8424fc61f7c45a7e45",class:"tg-multi-select__tags"},t.map((t=>{const e=this.parsed.find((e=>e.value===t));return e?i("span",{class:"tg-multi-select__tag"},e.label,i("button",{class:"tg-multi-select__tag-x",onClick:e=>this.removeTag(t,e),"aria-label":"Remove"},"×")):null})),0===t.length&&i("span",{key:"e3a3199568660cf137342296c60469a6c1462091",class:"tg-multi-select__placeholder"},this.placeholder)),i("svg",{key:"77d039d5e8b7855cd6ebbc8eac77f58116c047b7",class:{"tg-multi-select__chevron":!0,"tg-multi-select__chevron--open":this.open},viewBox:"0 0 20 20",fill:"currentColor",width:"16",height:"16"},i("path",{key:"d131d4a08a08b3467d1c5f858fe9f01694b91634","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&&i("div",{key:"e1657df38bdd49fa56374c431b8067d91e2ba1e6",class:"tg-multi-select__dropdown"},i("input",{key:"856b4e1c81e9e4d163de7c9ef6755f90cf2a51cd",class:"tg-multi-select__search",type:"text",placeholder:"Filtrer…",value:this.query,onInput:t=>{this.query=t.target.value}}),i("ul",{key:"46524a4605e630187654060e8073e8d38159d536",class:"tg-multi-select__list",role:"listbox"},this.filtered.map((e=>i("li",{class:{"tg-multi-select__option":!0,"tg-multi-select__option--selected":t.includes(e.value)},role:"option",onClick:()=>this.toggle(e.value)},i("span",{class:"tg-multi-select__check"},t.includes(e.value)?"✓":""),e.label)))))))}static get style(){return":host{display:block}.tg-multi-select{position:relative;font-family:var(--tg-font-family-sans)}.tg-multi-select__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-multi-select__trigger{display:flex;align-items:center;min-height:2.5rem;padding:var(--tg-spacing-1) var(--tg-spacing-2);border:1px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);background:var(--tg-color-surface-raised);cursor:pointer;transition:border-color var(--tg-duration-fast), box-shadow var(--tg-duration-fast)}.tg-multi-select__trigger:focus-within{border-color:var(--tg-color-border-focus);box-shadow:var(--tg-focus-ring)}.tg-multi-select__trigger--invalid{border-color:var(--tg-color-danger)}.tg-multi-select__tags{display:flex;flex-wrap:wrap;gap:var(--tg-spacing-1);flex:1}.tg-multi-select__tag{display:inline-flex;align-items:center;gap:var(--tg-spacing-1);padding:2px var(--tg-spacing-2);background:var(--tg-color-primary-subtle);color:var(--tg-color-primary);border-radius:var(--tg-radius-full);font-size:var(--tg-font-size-xs);font-weight:var(--tg-font-weight-medium)}.tg-multi-select__tag-x{background:none;border:none;cursor:pointer;color:inherit;font-size:1rem;line-height:1;padding:0;opacity:0.6}.tg-multi-select__tag-x:hover{opacity:1}.tg-multi-select__placeholder{color:var(--tg-color-text-disabled);font-size:var(--tg-font-size-sm);padding:var(--tg-spacing-0-5) 0}.tg-multi-select__chevron{flex-shrink:0;color:var(--tg-color-text-secondary);transition:transform var(--tg-duration-fast)}.tg-multi-select__chevron--open{transform:rotate(180deg)}.tg-multi-select__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;animation:tg-ms-enter var(--tg-duration-fast) var(--tg-ease-out)}@keyframes tg-ms-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.tg-multi-select__search{display:block;width:100%;padding:var(--tg-spacing-2) var(--tg-spacing-3);border:none;border-bottom:1px solid var(--tg-color-border);outline:none;font-family:inherit;font-size:var(--tg-font-size-sm);background:transparent;color:var(--tg-color-text-primary)}.tg-multi-select__search::placeholder{color:var(--tg-color-text-disabled)}.tg-multi-select__list{list-style:none;padding:var(--tg-spacing-1) 0;margin:0;max-height:14rem;overflow-y:auto}.tg-multi-select__option{display:flex;align-items:center;gap:var(--tg-spacing-2);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-multi-select__option:hover{background:var(--tg-color-primary-subtle)}.tg-multi-select__option--selected{color:var(--tg-color-primary);font-weight:var(--tg-font-weight-medium)}.tg-multi-select__check{width:1rem;text-align:center;color:var(--tg-color-primary)}"}},[1,"tg-multi-select",{label:[1],placeholder:[1],options:[1],value:[1],disabled:[4],invalid:[4],size:[1],open:[32],query:[32]},[[4,"click","handleDocClick"]]]);function l(){"undefined"!=typeof customElements&&["tg-multi-select"].forEach((t=>{"tg-multi-select"===t&&(customElements.get(a(t))||customElements.define(a(t),o))}))}l();const c=o,n=l;export{c as TgMultiSelect,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgNavbar extends Components.TgNavbar, HTMLElement {}
|
|
4
|
+
export const TgNavbar: {
|
|
5
|
+
prototype: TgNavbar;
|
|
6
|
+
new (): TgNavbar;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as a,H as t,h as e,a as r,t as n}from"./index.js";const o=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.items=[],this.sticky=!1,this.bordered=!1,this.mobileOpen=!1,this.toggleMobile=()=>{this.mobileOpen=!this.mobileOpen}}get parsedItems(){if("string"==typeof this.items)try{return JSON.parse(this.items)}catch(a){return[]}return this.items}render(){var a;const t=this.parsedItems;return e(r,{key:"fcfdd7b1e4580338d8c5532bca9b70de0c0a78b1"},e("header",{key:"e7cbb40afd97b6ea08ed5b861a151bc244f0d5e6",class:{"tg-navbar":!0,"tg-navbar--sticky":this.sticky,"tg-navbar--bordered":this.bordered}},e("a",{key:"fd6204d0934682c7fb139155021436c8a9f1ae22",class:"tg-navbar__brand",href:"/"},this.logoSrc&&e("img",{key:"307f3c79b2cc4129180de15b27e3e7bf92fc731c",class:"tg-navbar__logo",src:this.logoSrc,alt:null!==(a=this.brand)&&void 0!==a?a:""}),this.brand&&e("span",{key:"ae8a249aa898be2dc6b4ae0ae1144d7510e2be6b"},this.brand)),e("nav",{key:"44e66cf6fa64ee023207b87e7cef5c743b558545"},e("ul",{key:"4963f3f8aea40d7db823008005db9e11ef63ccdb",class:"tg-navbar__nav"},t.map((a=>e("li",null,e("a",{class:{"tg-navbar__link":!0,"tg-navbar__link--active":!!a.active},href:a.href},a.label)))))),e("div",{key:"8b1b1a0a6cda63bac4f3cc32e3eb0dc319263b74",class:"tg-navbar__actions"},e("slot",{key:"86e277aa8f189f32d897c9685b7329688e08c016",name:"actions"})),e("button",{key:"8fc67825906b0c3bd6e1c4d4c87d5853b6583be8",class:"tg-navbar__toggle",onClick:this.toggleMobile,"aria-label":this.mobileOpen?"Fermer le menu":"Ouvrir le menu",innerHTML:this.mobileOpen?'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="5" y1="5" x2="19" y2="19"/><line x1="19" y1="5" x2="5" y2="19"/></svg>':'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>'}),e("div",{key:"f65a73d3099622d822b5592972643d349cdf600e",class:{"tg-navbar__mobile-menu":!0,"tg-navbar__mobile-menu--open":this.mobileOpen}},t.map((a=>e("a",{class:{"tg-navbar__link":!0,"tg-navbar__link--active":!!a.active},href:a.href},a.label))),e("slot",{key:"25122d84b212d01cc9e2408005dabafc15895a56",name:"mobile-actions"}))))}static get style(){return":host{display:block}.tg-navbar{display:flex;align-items:center;justify-content:space-between;padding:0 var(--tg-spacing-lg, 24px);height:64px;background:var(--tg-color-surface, #fff);border-bottom:1px solid var(--tg-color-neutral-100, #f3f4f6);font-family:var(--tg-font-family, sans-serif);position:relative;z-index:100}.tg-navbar--sticky{position:sticky;top:0;backdrop-filter:blur(12px);background:rgba(255, 255, 255, 0.85)}.tg-navbar--bordered{box-shadow:var(--tg-shadow-sm, 0 1px 3px rgba(0,0,0,0.08))}.tg-navbar__brand{display:flex;align-items:center;gap:var(--tg-spacing-sm, 12px);text-decoration:none;color:var(--tg-color-text, #111827);font-weight:var(--tg-font-weight-bold, 700);font-size:var(--tg-font-size-lg, 1.125rem);flex-shrink:0}.tg-navbar__brand:focus-visible{outline:none;box-shadow:var(--tg-focus-ring);border-radius:var(--tg-radius-sm, 4px)}.tg-navbar__logo{height:32px;width:auto}.tg-navbar__nav{display:flex;align-items:center;gap:var(--tg-spacing-2xs, 4px);list-style:none;padding:0;margin:0}.tg-navbar__link{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);padding:var(--tg-spacing-xs, 8px) var(--tg-spacing-sm, 12px);border-radius:var(--tg-radius-md, 8px);transition:color var(--tg-duration-fast, 150ms), background var(--tg-duration-fast, 150ms)}.tg-navbar__link:hover{color:var(--tg-color-text, #111827);background:var(--tg-color-neutral-50, #f9fafb)}.tg-navbar__link--active{color:var(--tg-color-primary, #00853F);background:var(--tg-color-primary-50, #ecfdf5)}.tg-navbar__link:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-navbar__actions{display:flex;align-items:center;gap:var(--tg-spacing-xs, 8px);flex-shrink:0}.tg-navbar__toggle{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, #111827);display:none}.tg-navbar__toggle svg{width:24px;height:24px}.tg-navbar__toggle:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-navbar__mobile-menu{display:none;position:absolute;top:100%;left:0;right:0;background:var(--tg-color-surface, #fff);border-bottom:1px solid var(--tg-color-neutral-100, #f3f4f6);box-shadow:var(--tg-shadow-lg, 0 10px 30px rgba(0,0,0,0.1));padding:var(--tg-spacing-sm, 12px);flex-direction:column}.tg-navbar__mobile-menu--open{display:flex}.tg-navbar__mobile-menu .tg-navbar__link{width:100%;display:block}@media (max-width: 768px){.tg-navbar__nav{display:none}.tg-navbar__toggle{display:flex}}"}},[257,"tg-navbar",{brand:[1],logoSrc:[1,"logo-src"],items:[1],sticky:[4],bordered:[4],mobileOpen:[32]}]);function i(){"undefined"!=typeof customElements&&["tg-navbar"].forEach((a=>{"tg-navbar"===a&&(customElements.get(n(a))||customElements.define(n(a),o))}))}i();const s=o,g=i;export{s as TgNavbar,g as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgOtpInput extends Components.TgOtpInput, HTMLElement {}
|
|
4
|
+
export const TgOtpInput: {
|
|
5
|
+
prototype: TgOtpInput;
|
|
6
|
+
new (): TgOtpInput;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as o,c as i,h as e,a as s,t as r}from"./index.js";const a=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgComplete=i(this,"tgComplete"),this.tgChange=i(this,"tgChange"),this.length=6,this.disabled=!1,this.invalid=!1,this.masked=!1,this.values=[],this.handlePaste=t=>{var o,i,e;t.preventDefault();const s=null!==(e=null===(i=null===(o=t.clipboardData)||void 0===o?void 0:o.getData("text"))||void 0===i?void 0:i.replace(/\D/g,"").slice(0,this.length))&&void 0!==e?e:"",r=[...this.values];for(let t=0;t<s.length;t++)r[t]=s[t];this.values=r,this.tgChange.emit(r.join("")),r.every((t=>""!==t))&&this.tgComplete.emit(r.join(""))}}componentWillLoad(){this.values=Array(this.length).fill("")}handleInput(t,o){var i;const e=o.target.value.replace(/\D/g,"").slice(-1),s=[...this.values];if(s[t]=e,this.values=s,this.tgChange.emit(s.join("")),e&&t<this.length-1){const o=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelectorAll("input")[t+1];null==o||o.focus()}s.every((t=>""!==t))&&this.tgComplete.emit(s.join(""))}handleKeyDown(t,o){var i;if("Backspace"===o.key&&!this.values[t]&&t>0){const o=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelectorAll("input")[t-1];null==o||o.focus()}}render(){return e(s,{key:"0ea9887bdd561677f2ef85113ad0d9f0addb6c9c"},e("div",{key:"29b8ca81b85443d38908992d9920d8913dd7b2ed",class:"tg-otp"},this.label&&e("label",{key:"bf00d9988ff2247acc337ba24e5d5981489b4c24",class:"tg-otp__label"},this.label),e("div",{key:"0c55704aebdb1c0e90145a9d3182c38047e4cefb",class:"tg-otp__fields"},this.values.map(((t,o)=>e("input",{class:{"tg-otp__field":!0,"tg-otp__field--invalid":this.invalid,"tg-otp__field--filled":""!==t},type:this.masked?"password":"text",inputMode:"numeric",maxLength:1,value:t,disabled:this.disabled,onInput:t=>this.handleInput(o,t),onKeyDown:t=>this.handleKeyDown(o,t),onPaste:this.handlePaste,"aria-label":"Digit "+(o+1)})))),this.errorText&&e("p",{key:"70e5b44970471655e8499f77ee0fb0e527e4d97b",class:"tg-otp__error"},this.errorText)))}get el(){return this}static get style(){return":host{display:block}.tg-otp{font-family:var(--tg-font-family-sans)}.tg-otp__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-2)}.tg-otp__fields{display:flex;gap:var(--tg-spacing-2)}.tg-otp__field{width:2.75rem;height:3rem;text-align:center;font-size:var(--tg-font-size-xl);font-weight:var(--tg-font-weight-semibold);font-family:var(--tg-font-family-mono);color:var(--tg-color-text-primary);background:var(--tg-color-surface-raised);border:2px solid var(--tg-color-border-strong);border-radius:var(--tg-radius-lg);outline:none;transition:border-color var(--tg-duration-fast), box-shadow var(--tg-duration-fast)}.tg-otp__field:focus{border-color:var(--tg-color-primary);box-shadow:var(--tg-focus-ring)}.tg-otp__field--filled{border-color:var(--tg-color-primary)}.tg-otp__field--invalid{border-color:var(--tg-color-danger)}.tg-otp__field:disabled{opacity:0.5;cursor:not-allowed}.tg-otp__error{margin:var(--tg-spacing-2) 0 0;font-size:var(--tg-font-size-xs);color:var(--tg-color-danger)}"}},[1,"tg-otp-input",{length:[2],label:[1],disabled:[4],invalid:[4],errorText:[1,"error-text"],masked:[4],values:[32]}]);function l(){"undefined"!=typeof customElements&&["tg-otp-input"].forEach((t=>{"tg-otp-input"===t&&(customElements.get(r(t))||customElements.define(r(t),a))}))}l();const n=a,d=l;export{n as TgOtpInput,d as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgPagination extends Components.TgPagination, HTMLElement {}
|
|
4
|
+
export const TgPagination: {
|
|
5
|
+
prototype: TgPagination;
|
|
6
|
+
new (): TgPagination;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as a,c as n,h as i,a as e,t as o}from"./index.js";const r=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgPageChange=n(this,"tgPageChange"),this.currentPage=1,this.totalPages=1,this.siblingCount=1,this.goTo=t=>{t<1||t>this.totalPages||t===this.currentPage||(this.currentPage=t,this.tgPageChange.emit(t))}}getRange(){const t=this.totalPages,a=this.currentPage,n=this.siblingCount;if(t<=7)return Array.from({length:t},((t,a)=>a+1));const i=Math.max(a-n,2),e=Math.min(a+n,t-1),o=e<t-1,r=[1];i>2&&r.push("...");for(let t=i;t<=e;t++)r.push(t);return o&&r.push("..."),r.push(t),r}render(){const t=this.getRange();return i(e,{key:"d31881cd7e9a8eb213eef62334f3172707c0a021"},i("nav",{key:"6ce78ba6a430c51891c3f817cc96ff2a11fc2ea4",class:"tg-pagination","aria-label":"Pagination"},i("button",{key:"3c3d0ed57dfda0fd5c8f9367f9b1c411e9c02da1",class:"tg-pagination__btn",disabled:this.currentPage<=1,onClick:()=>this.goTo(this.currentPage-1),"aria-label":"Page précédente",innerHTML:'<svg viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><polyline points="9 3 5 7 9 11"/></svg>'}),t.map((t=>"..."===t?i("span",{class:"tg-pagination__ellipsis"},"…"):i("button",{class:{"tg-pagination__btn":!0,"tg-pagination__btn--active":t===this.currentPage},"aria-current":t===this.currentPage?"page":void 0,onClick:()=>this.goTo(t)},t))),i("button",{key:"f2f800639e489e518f606e6ea186eaf5e02abd3f",class:"tg-pagination__btn",disabled:this.currentPage>=this.totalPages,onClick:()=>this.goTo(this.currentPage+1),"aria-label":"Page suivante",innerHTML:'<svg viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><polyline points="5 3 9 7 5 11"/></svg>'})))}static get style(){return":host{display:block}.tg-pagination{display:flex;align-items:center;gap:var(--tg-spacing-2xs, 4px);font-family:var(--tg-font-family, sans-serif)}.tg-pagination__btn{appearance:none;border:1px solid var(--tg-color-neutral-200, #e5e7eb);background:var(--tg-color-surface, #fff);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 var(--tg-spacing-xs, 8px);border-radius:var(--tg-radius-md, 8px);font-family:inherit;font-size:var(--tg-font-size-sm, 0.8125rem);font-weight:var(--tg-font-weight-medium, 500);color:var(--tg-color-text, #111827);transition:background var(--tg-duration-fast, 150ms), border-color var(--tg-duration-fast, 150ms), color var(--tg-duration-fast, 150ms);font-variant-numeric:tabular-nums}.tg-pagination__btn:hover:not(:disabled){background:var(--tg-color-neutral-50, #f9fafb);border-color:var(--tg-color-neutral-300, #d1d5db)}.tg-pagination__btn:focus-visible{outline:none;box-shadow:var(--tg-focus-ring)}.tg-pagination__btn:disabled{opacity:0.4;cursor:not-allowed}.tg-pagination__btn--active{background:var(--tg-color-primary, #00853F);border-color:var(--tg-color-primary, #00853F);color:#fff}.tg-pagination__btn--active:hover:not(:disabled){background:var(--tg-color-primary-dark, #006B32);border-color:var(--tg-color-primary-dark, #006B32);color:#fff}.tg-pagination__btn svg{width:16px;height:16px}.tg-pagination__ellipsis{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;color:var(--tg-color-text-secondary, #6b7280);font-size:var(--tg-font-size-sm, 0.8125rem);user-select:none}"}},[1,"tg-pagination",{currentPage:[1026,"current-page"],totalPages:[2,"total-pages"],siblingCount:[2,"sibling-count"]}]);function s(){"undefined"!=typeof customElements&&["tg-pagination"].forEach((t=>{"tg-pagination"===t&&(customElements.get(o(t))||customElements.define(o(t),r))}))}s();const g=r,l=s;export{g as TgPagination,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgPresenceIndicator extends Components.TgPresenceIndicator, HTMLElement {}
|
|
4
|
+
export const TgPresenceIndicator: {
|
|
5
|
+
prototype: TgPresenceIndicator;
|
|
6
|
+
new (): TgPresenceIndicator;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as e,h as r,a as s,t as i}from"./index.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),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,e=t.slice(0,this.max),i=t.length-this.max;return r(s,{key:"0b487e480aa59c5a4ad54397272708545548507d"},r("div",{key:"cea81db6a79f714de8059cf0d3b13193c131befa",class:"tg-pi"},e.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")})))),i>0&&r("div",{key:"b33de0b416fb70e108813b0a988e67781a81c510",class:"tg-pi__more"},"+",i)))}static get style(){return":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)}"}},[1,"tg-presence-indicator",{users:[1],max:[2]}]);function o(){"undefined"!=typeof customElements&&["tg-presence-indicator"].forEach((t=>{"tg-presence-indicator"===t&&(customElements.get(i(t))||customElements.define(i(t),a))}))}o();const n=a,c=o;export{n as TgPresenceIndicator,c as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgProgress extends Components.TgProgress, HTMLElement {}
|
|
4
|
+
export const TgProgress: {
|
|
5
|
+
prototype: TgProgress;
|
|
6
|
+
new (): TgProgress;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as r,H as t,h as s,a as e,t as a}from"./index.js";const i=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.value=0,this.max=100,this.showValue=!1,this.variant="primary",this.size="md",this.indeterminate=!1,this.striped=!1,this.animated=!1,this.circular=!1,this.circularSize=48,this.strokeWidth=4}get pct(){return this.indeterminate?0:Math.min(100,Math.max(0,this.value/this.max*100))}renderLinear(){var r;return s("div",{class:"tg-progress"},(this.label||this.showValue)&&s("div",{class:"tg-progress__label-row"},this.label&&s("span",{class:"tg-progress__label"},this.label),this.showValue&&!this.indeterminate&&s("span",{class:"tg-progress__value"},Math.round(this.pct),"%")),s("div",Object.assign({class:"tg-progress__track tg-progress__track--"+this.size,role:"progressbar"},this.indeterminate?{}:{"aria-valuenow":this.value},{"aria-valuemin":0,"aria-valuemax":this.max,"aria-label":null!==(r=this.label)&&void 0!==r?r:"Progression"}),s("div",{class:{"tg-progress__bar":!0,["tg-progress__bar--"+this.variant]:!0,"tg-progress__bar--indeterminate":this.indeterminate,"tg-progress__bar--striped":this.striped,"tg-progress__bar--animated":this.animated},style:this.indeterminate?{}:{width:this.pct+"%"}})))}renderCircular(){var r;const t=(this.circularSize-this.strokeWidth)/2,e=2*Math.PI*t,a=e-this.pct/100*e,i=.28*this.circularSize;return s("div",Object.assign({class:"tg-progress-circle",role:"progressbar"},this.indeterminate?{}:{"aria-valuenow":this.value},{"aria-valuemin":0,"aria-valuemax":this.max,"aria-label":null!==(r=this.label)&&void 0!==r?r:"Progression",style:{width:this.circularSize+"px",height:this.circularSize+"px"}}),s("svg",{width:this.circularSize,height:this.circularSize},s("circle",{class:"tg-progress-circle__track",cx:this.circularSize/2,cy:this.circularSize/2,r:t,"stroke-width":this.strokeWidth}),s("circle",Object.assign({class:{"tg-progress-circle__bar":!0,["tg-progress-circle__bar--"+this.variant]:!0,"tg-progress-circle__bar--indeterminate":this.indeterminate},cx:this.circularSize/2,cy:this.circularSize/2,r:t,"stroke-width":this.strokeWidth,"stroke-dasharray":""+e},this.indeterminate?{}:{"stroke-dashoffset":""+a}))),this.showValue&&!this.indeterminate&&s("span",{class:"tg-progress-circle__label",style:{fontSize:i+"px"}},Math.round(this.pct),"%"))}render(){return s(e,{key:"545c912ac587f94ade050a356ea3aade15ea98a2"},this.circular?this.renderCircular():this.renderLinear())}static get style(){return":host{display:block;width:100%}.tg-progress{display:flex;flex-direction:column;gap:var(--tg-spacing-xs, 8px)}.tg-progress__label-row{display:flex;align-items:center;justify-content:space-between;font-family:var(--tg-font-family, sans-serif);font-size:var(--tg-font-size-sm, 0.8125rem);color:var(--tg-color-text, #111827)}.tg-progress__label{font-weight:var(--tg-font-weight-medium, 500)}.tg-progress__value{color:var(--tg-color-text-secondary, #6b7280);font-variant-numeric:tabular-nums}.tg-progress__track{width:100%;border-radius:9999px;background:var(--tg-color-neutral-100, #f3f4f6);overflow:hidden}.tg-progress__track--sm{height:4px}.tg-progress__track--md{height:8px}.tg-progress__track--lg{height:12px}.tg-progress__bar{height:100%;border-radius:9999px;transition:width var(--tg-duration-normal, 200ms) var(--tg-ease-out, ease-out);position:relative;overflow:hidden}.tg-progress__bar--primary{background:var(--tg-color-primary, #00853F)}.tg-progress__bar--success{background:var(--tg-color-success, #059669)}.tg-progress__bar--warning{background:var(--tg-color-warning, #d97706)}.tg-progress__bar--danger{background:var(--tg-color-danger, #dc2626)}.tg-progress__bar--info{background:var(--tg-color-info, #2563eb)}.tg-progress__bar--indeterminate{width:40% !important;animation:tg-progress-indeterminate 1.5s var(--tg-ease-default, ease) infinite}@keyframes tg-progress-indeterminate{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}.tg-progress__bar--striped::after{content:'';position:absolute;inset:0;background-image:linear-gradient( 45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent );background-size:1rem 1rem}.tg-progress__bar--animated::after{animation:tg-progress-stripe 1s linear infinite}@keyframes tg-progress-stripe{0%{background-position:1rem 0}100%{background-position:0 0}}.tg-progress-circle{display:inline-flex;align-items:center;justify-content:center;position:relative}.tg-progress-circle svg{transform:rotate(-90deg)}.tg-progress-circle__track{fill:none;stroke:var(--tg-color-neutral-100, #f3f4f6)}.tg-progress-circle__bar{fill:none;stroke-linecap:round;transition:stroke-dashoffset var(--tg-duration-normal, 200ms) var(--tg-ease-out, ease-out)}.tg-progress-circle__bar--primary{stroke:var(--tg-color-primary, #00853F)}.tg-progress-circle__bar--success{stroke:var(--tg-color-success, #059669)}.tg-progress-circle__bar--warning{stroke:var(--tg-color-warning, #d97706)}.tg-progress-circle__bar--danger{stroke:var(--tg-color-danger, #dc2626)}.tg-progress-circle__bar--info{stroke:var(--tg-color-info, #2563eb)}.tg-progress-circle__bar--indeterminate{animation:tg-progress-circle-spin 1.4s linear infinite;stroke-dasharray:80 200}@keyframes tg-progress-circle-spin{0%{stroke-dashoffset:0;transform:rotate(-90deg)}50%{stroke-dashoffset:-80;transform:rotate(90deg)}100%{stroke-dashoffset:-200;transform:rotate(270deg)}}.tg-progress-circle__label{position:absolute;font-family:var(--tg-font-family, sans-serif);font-weight:var(--tg-font-weight-semibold, 600);color:var(--tg-color-text, #111827);font-variant-numeric:tabular-nums}"}},[1,"tg-progress",{value:[2],max:[2],label:[1],showValue:[4,"show-value"],variant:[1],size:[1],indeterminate:[4],striped:[4],animated:[4],circular:[4],circularSize:[2,"circular-size"],strokeWidth:[2,"stroke-width"]}]);function o(){"undefined"!=typeof customElements&&["tg-progress"].forEach((r=>{"tg-progress"===r&&(customElements.get(a(r))||customElements.define(a(r),i))}))}o();const g=i,n=o;export{g as TgProgress,n as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgPromptInput extends Components.TgPromptInput, HTMLElement {}
|
|
4
|
+
export const TgPromptInput: {
|
|
5
|
+
prototype: TgPromptInput;
|
|
6
|
+
new (): TgPromptInput;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,H as i,c as e,h as r,a as o,t as s}from"./index.js";const a=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tgSubmit=e(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(o,{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)))}static get style(){return":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)}"}},[1,"tg-prompt-input",{placeholder:[1],disabled:[4],loading:[4],maxLength:[2,"max-length"],value:[32]}]);function n(){"undefined"!=typeof customElements&&["tg-prompt-input"].forEach((t=>{"tg-prompt-input"===t&&(customElements.get(s(t))||customElements.define(s(t),a))}))}n();const d=a,l=n;export{d as TgPromptInput,l as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TgPullToRefresh extends Components.TgPullToRefresh, HTMLElement {}
|
|
4
|
+
export const TgPullToRefresh: {
|
|
5
|
+
prototype: TgPullToRefresh;
|
|
6
|
+
new (): TgPullToRefresh;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|