udp-stencil-component-library 26.3.0-beta.2 → 26.3.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +12 -12
- package/dist/cjs/address-search_6.cjs.entry.js +18 -18
- package/dist/cjs/advanced-search_12.cjs.entry.js +13 -13
- package/dist/cjs/ag-grid-base_63.cjs.entry.js +404 -164
- package/dist/cjs/ambient-template-grid.cjs.entry.js +16 -16
- package/dist/cjs/api-method-instance-grid.cjs.entry.js +2 -2
- package/dist/cjs/app-bar.cjs.entry.js +1 -1
- package/dist/cjs/chart-container_3.cjs.entry.js +2 -2
- package/dist/cjs/charts-theme-DmrbXz3l.js +386 -0
- package/dist/cjs/check-box.cjs.entry.js +2 -2
- package/dist/cjs/chip-section.cjs.entry.js +2 -2
- package/dist/cjs/date-time-renderer_9.cjs.entry.js +21 -21
- package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
- package/dist/cjs/file-upload_2.cjs.entry.js +5 -5
- package/dist/cjs/filter-conditions_7.cjs.entry.js +5 -5
- package/dist/cjs/form-metadata-display_10.cjs.entry.js +8 -8
- package/dist/cjs/icon-grid.cjs.entry.js +1 -1
- package/dist/cjs/index-G1ccGqOs.js +44 -4
- package/dist/cjs/index.cjs.js +6 -154
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-component_2.cjs.entry.js +2 -2
- package/dist/cjs/primary-action-header_2.cjs.entry.js +4 -4
- package/dist/cjs/question-configs-renderer_4.cjs.entry.js +15 -15
- package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
- package/dist/cjs/resource-timeline-primary-bar.cjs.entry.js +3 -3
- package/dist/cjs/search-method-grid.cjs.entry.js +1 -1
- package/dist/cjs/server-side-grid.cjs.entry.js +1 -1
- package/dist/cjs/side-sheet-container.cjs.entry.js +1 -1
- package/dist/cjs/simple-card.cjs.entry.js +1 -1
- package/dist/cjs/slot-helpers-C-ntX3IL.js +11 -0
- package/dist/cjs/status-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/stencil-chip.cjs.entry.js +2 -2
- package/dist/cjs/stencil-library.cjs.js +1 -1
- package/dist/cjs/stencil-toggle.cjs.entry.js +4 -4
- package/dist/cjs/text-field_2.cjs.entry.js +7 -7
- package/dist/cjs/theme-manager-vLJfQYn8.js +157 -0
- package/dist/cjs/udp-adornment.cjs.entry.js +1 -1
- package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +7 -4
- package/dist/cjs/udp-ag-area-chart.cjs.entry.js +120 -0
- package/dist/cjs/{udp-bar-chart_4.cjs.entry.js → udp-ag-bar-chart_4.cjs.entry.js} +123 -44
- package/dist/cjs/udp-ag-bubble-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-ag-combo-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-ag-donut-chart.cjs.entry.js +118 -0
- package/dist/cjs/udp-ag-line-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-ag-pie-chart.cjs.entry.js +118 -0
- package/dist/cjs/udp-ag-scatter-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-attachment-item_2.cjs.entry.js +1 -1
- package/dist/cjs/udp-bar-chart.cjs.entry.js +41 -0
- package/dist/cjs/udp-calendar-base.cjs.entry.js +44 -71
- package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -3
- package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -3
- package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -3
- package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -3
- package/dist/cjs/udp-card-action-area.cjs.entry.js +1 -1
- package/dist/cjs/udp-card_6.cjs.entry.js +7 -7
- package/dist/cjs/udp-charts-example.cjs.entry.js +14 -1
- package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query-grid.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query.cjs.entry.js +2 -2
- package/dist/cjs/udp-container.cjs.entry.js +2 -2
- package/dist/cjs/udp-dynamic-container-with-menu.cjs.entry.js +1 -1
- package/dist/cjs/udp-dynamic-form.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-file-input.cjs.entry.js +4 -4
- package/dist/cjs/udp-fluent-image.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-inline-edit.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-link.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-location-input.cjs.entry.js +3 -3
- package/dist/cjs/udp-fluent-number-input.cjs.entry.js +99 -0
- package/dist/cjs/udp-fluent-signature-input.cjs.entry.js +4 -4
- package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +2 -2
- package/dist/cjs/udp-forms-list-card.cjs.entry.js +4 -4
- package/dist/cjs/udp-forms-list.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-renderer.cjs.entry.js +1 -1
- package/dist/cjs/udp-kpi-card.cjs.entry.js +1 -1
- package/dist/cjs/udp-kpi-cards.cjs.entry.js +2 -2
- package/dist/cjs/udp-map.cjs.entry.js +3 -3
- package/dist/cjs/udp-menu.cjs.entry.js +1 -1
- package/dist/cjs/udp-page.cjs.entry.js +1 -1
- package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-sidebar-layout.cjs.entry.js +67 -0
- package/dist/cjs/udp-skeleton-loading.cjs.entry.js +1 -1
- package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
- package/dist/cjs/udp-tab.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-connector.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-dot.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/udp-timeline-separator.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline.cjs.entry.js +1 -1
- package/dist/cjs/udp-xy-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +7 -4
- package/dist/collection/components/calendar/udp-calendar-base.js +100 -77
- package/dist/collection/components/calendar/udp-calendar-day.js +10 -9
- package/dist/collection/components/calendar/udp-calendar-month.js +10 -9
- package/dist/collection/components/calendar/udp-calendar-week.js +10 -9
- package/dist/collection/components/calendar/udp-calendar-year.js +10 -9
- package/dist/collection/components/charts/chart-container/chart-container.js +7 -0
- package/dist/collection/components/charts/chart-kpi/chart-kpi.js +6 -1
- package/dist/collection/components/charts/charts-theme.js +380 -0
- package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.js +312 -0
- package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.js +302 -0
- package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.js +308 -0
- package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.js +320 -0
- package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.js +309 -0
- package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.js +314 -0
- package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.js +310 -0
- package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.js +314 -0
- package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +5 -1
- package/dist/collection/components/charts/udp-charts-example.js +15 -2
- package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +5 -1
- package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +5 -1
- package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +5 -1
- package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +6 -1
- package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +6 -1
- package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +5 -1
- package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js +1 -1
- package/dist/collection/components/data-display/badge/udp-badge.js +1 -1
- package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card.js +3 -3
- package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js +1 -1
- package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js +2 -2
- package/dist/collection/components/data-display/chips/udp-chip.js +1 -1
- package/dist/collection/components/data-display/divider/udp-divider.js +1 -1
- package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js +1 -1
- package/dist/collection/components/data-display/headers/udp-column-header.js +1 -1
- package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js +1 -1
- package/dist/collection/components/data-display/hint-panel/hint-panel.js +1 -1
- package/dist/collection/components/data-display/kpi/kpi-list.js +1 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-card.js +1 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-cards.js +2 -2
- package/dist/collection/components/data-display/list-item/list-item.js +2 -2
- package/dist/collection/components/data-display/pop-over/udp-pop-over.js +1 -1
- package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js +1 -1
- package/dist/collection/components/data-display/primary-action-header/primary-action-header.js +2 -2
- package/dist/collection/components/data-display/simple-card/simple-card.js +1 -1
- package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js +2 -2
- package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js +1 -1
- package/dist/collection/components/data-display/udp-avatar/udp-avatar.js +1 -1
- package/dist/collection/components/dialogs/udp-dialog.js +1 -1
- package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js +9 -9
- package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js +1 -1
- package/dist/collection/components/feedback/udp-notification/udp-notification.js +2 -2
- package/dist/collection/components/fluent-ui/autocomplete/udp-autocomplete.js +74 -13
- package/dist/collection/components/fluent-ui/avatar/udp-fluent-avatar.js +1 -1
- package/dist/collection/components/fluent-ui/badge/udp-fluent-badge.js +1 -1
- package/dist/collection/components/fluent-ui/button/udp-fluent-button.js +1 -1
- package/dist/collection/components/fluent-ui/card/udp-fluent-card.js +3 -3
- package/dist/collection/components/fluent-ui/checkbox/udp-fluent-checkbox.js +1 -1
- package/dist/collection/components/fluent-ui/compound-button/udp-compound-button.js +1 -1
- package/dist/collection/components/fluent-ui/counter-badge/udp-fluent-counter-badge.js +1 -1
- package/dist/collection/components/fluent-ui/date-input/udp-date-input.js +61 -11
- package/dist/collection/components/fluent-ui/date-time-input/udp-date-time-input.js +40 -3
- package/dist/collection/components/fluent-ui/dialog/udp-fluent-dialog.js +1 -1
- package/dist/collection/components/fluent-ui/divider/udp-fluent-divider.js +1 -1
- package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.js +1 -1
- package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +63 -12
- package/dist/collection/components/fluent-ui/file-input/udp-fluent-file-input.js +4 -4
- package/dist/collection/components/fluent-ui/icon/icon-grid/icon-grid.js +1 -1
- package/dist/collection/components/fluent-ui/icon-button/udp-fluent-icon-button.js +1 -1
- package/dist/collection/components/fluent-ui/image/udp-fluent-image.js +1 -1
- package/dist/collection/components/fluent-ui/inline-edit/udp-fluent-inline-edit.js +1 -1
- package/dist/collection/components/fluent-ui/link/udp-fluent-link.js +1 -1
- package/dist/collection/components/fluent-ui/location-input/udp-fluent-location-input.js +3 -3
- package/dist/collection/components/fluent-ui/message-bar/udp-message-bar.js +1 -1
- package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.css +68 -0
- package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.js +547 -0
- package/dist/collection/components/fluent-ui/progress-bar/udp-progress-bar.js +1 -1
- package/dist/collection/components/fluent-ui/radio-group/udp-fluent-radio-group.js +1 -1
- package/dist/collection/components/fluent-ui/search-input/udp-search-input.js +3 -3
- package/dist/collection/components/fluent-ui/signature-input/udp-fluent-signature-input.js +4 -4
- package/dist/collection/components/fluent-ui/slider/udp-slider.js +1 -1
- package/dist/collection/components/fluent-ui/spinner/udp-spinner.js +1 -1
- package/dist/collection/components/fluent-ui/switch/udp-fluent-switch.js +1 -1
- package/dist/collection/components/fluent-ui/tablist/udp-fluent-tablist.css +43 -10
- package/dist/collection/components/fluent-ui/text-input/udp-fluent-text-input.js +2 -2
- package/dist/collection/components/fluent-ui/textarea/udp-textarea.js +2 -2
- package/dist/collection/components/fluent-ui/time-input/udp-time-input.js +1 -1
- package/dist/collection/components/fluent-ui/toggle-button/udp-fluent-toggle-button.js +1 -1
- package/dist/collection/components/fluent-ui/tooltip/udp-tooltip.js +2 -2
- package/dist/collection/components/fluent-ui/tree/udp-tree.css +53 -0
- package/dist/collection/components/fluent-ui/tree/udp-tree.js +256 -4
- package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js +1 -1
- package/dist/collection/components/forms/edit-view-form/edit-view-form.js +2 -2
- package/dist/collection/components/forms/form/stencil-form.js +1 -1
- package/dist/collection/components/forms/save-view-form/save-view-form.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js +3 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js +3 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/location-renderer/location-renderer.js +6 -6
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js +7 -7
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/table-columns-renderer/table-columns-renderer.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-question/table-input/table-input.js +1 -1
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js +16 -16
- package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js +2 -2
- package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -1
- package/dist/collection/components/grid/new-grid/ag-grid-base.js +1 -1
- package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +2 -2
- package/dist/collection/components/grid/new-grid/client-side-grid.js +1 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/bulkActions.js +45 -6
- package/dist/collection/components/grid/new-grid/search-method-grid.js +1 -1
- package/dist/collection/components/grid/new-grid/server-side-grid.js +1 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js +1 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +3 -3
- package/dist/collection/components/inputs/address-search/address-search.js +3 -3
- package/dist/collection/components/inputs/checkbox/check-box.js +2 -2
- package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js +2 -2
- package/dist/collection/components/inputs/date-selector/udp-date-selector.js +3 -3
- package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js +3 -3
- package/dist/collection/components/inputs/file-upload/file-upload.js +4 -4
- package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +1 -1
- package/dist/collection/components/inputs/image-upload/image-upload.js +1 -1
- package/dist/collection/components/inputs/numeric-field/numeric-field.js +3 -3
- package/dist/collection/components/inputs/signature-input/signature-input.js +2 -2
- package/dist/collection/components/inputs/tally/tally.js +2 -2
- package/dist/collection/components/inputs/text-area/text-area.js +3 -3
- package/dist/collection/components/inputs/text-field/text-field.js +3 -3
- package/dist/collection/components/inputs/time-selector/udp-time-selector.js +3 -3
- package/dist/collection/components/inputs/toggle/stencil-toggle.js +4 -4
- package/dist/collection/components/inputs/udp-selector/udp-selector.js +4 -4
- package/dist/collection/components/layout/udp-container/udp-container.js +2 -2
- package/dist/collection/components/layout/udp-container-query/udp-container-query.js +2 -2
- package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js +1 -1
- package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -1
- package/dist/collection/components/layout/udp-page/udp-page.js +1 -1
- package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.css +139 -0
- package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.js +264 -0
- package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -1
- package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js +2 -2
- package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js +1 -1
- package/dist/collection/components/loaders/udp-skeleton-loading.js +1 -1
- package/dist/collection/components/map/udp-map/map-component.js +1 -1
- package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js +3 -3
- package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -4
- package/dist/collection/components/map/udp-map/popups/feature-details-popup.js +1 -1
- package/dist/collection/components/map/udp-map/popups/select-layer-popup.js +2 -2
- package/dist/collection/components/map/udp-map/popups/split-line-popup.js +1 -1
- package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js +6 -6
- package/dist/collection/components/map/udp-map/udp-map-toolbar.js +1 -1
- package/dist/collection/components/map/udp-map/udp-map.js +3 -3
- package/dist/collection/components/menu/menu-item/udp-menu-item.js +1 -1
- package/dist/collection/components/menu/udp-menu.js +1 -1
- package/dist/collection/components/new-form/field/udp-field.js +1 -1
- package/dist/collection/components/new-form/form/udp-form-component.js +2 -2
- package/dist/collection/components/stepper/udp-stepper-demo.js +1 -1
- package/dist/collection/components/tabs/tab/tabs/udp-tabs.js +2 -2
- package/dist/collection/components/tabs/tab/udp-tab.js +1 -1
- package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-connector.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-dot.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-item.js +2 -2
- package/dist/collection/components/timeline/udp-timeline-separator.js +1 -1
- package/dist/collection/components/timeline/udp-timeline.js +1 -1
- package/dist/collection/components/toolbars/app-bar/app-bar.js +1 -1
- package/dist/collection/components/util/ghost-render/ghost-render.js +1 -1
- package/dist/collection/components/util/lazy-loader/udp-lazy-loader.js +1 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js +1 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet.js +1 -1
- package/dist/collection/test-pages/test-components-page.js +28 -28
- package/dist/collection/test-pages/test-form.js +4 -4
- package/dist/collection/theme/ag-grid-theme-bridge.js +1 -1
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
- package/dist/components/add-map-feature-popup2.js +1 -1
- package/dist/components/address-search2.js +1 -1
- package/dist/components/ag-grid-base2.js +1 -1
- package/dist/components/ambient-template-grid.js +1 -1
- package/dist/components/api-method-instance-grid.js +1 -1
- package/dist/components/app-bar.js +1 -1
- package/dist/components/chart-kpi2.js +1 -1
- package/dist/components/charts-theme.js +1 -0
- package/dist/components/check-box.js +1 -1
- package/dist/components/chip-section.js +1 -1
- package/dist/components/client-side-grid2.js +1 -1
- package/dist/components/edit-view-form.js +1 -1
- package/dist/components/feature-details-card2.js +1 -1
- package/dist/components/feature-details-popup2.js +1 -1
- package/dist/components/file-upload-renderer2.js +1 -1
- package/dist/components/file-upload2.js +1 -1
- package/dist/components/form-metadata-display-renderer2.js +1 -1
- package/dist/components/form-metadata-display2.js +1 -1
- package/dist/components/ghost-render2.js +1 -1
- package/dist/components/grid-primary-bar2.js +1 -1
- package/dist/components/hint-panel2.js +1 -1
- package/dist/components/icon-grid.js +1 -1
- package/dist/components/image-upload2.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kpi-list2.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/list-options-renderer2.js +1 -1
- package/dist/components/location-renderer2.js +1 -1
- package/dist/components/map-component2.js +1 -1
- package/dist/components/map-toolbar2.js +1 -1
- package/dist/components/numeric-field2.js +1 -1
- package/dist/components/primary-action-header2.js +1 -1
- package/dist/components/question-configs-renderer2.js +1 -1
- package/dist/components/resource-timeline-calendar.js +1 -1
- package/dist/components/resource-timeline-primary-bar2.js +1 -1
- package/dist/components/save-view-form.js +1 -1
- package/dist/components/search-list-item2.js +1 -1
- package/dist/components/search-method-grid2.js +1 -1
- package/dist/components/section-configs-renderer2.js +1 -1
- package/dist/components/select-layer-popup2.js +1 -1
- package/dist/components/server-side-grid2.js +1 -1
- package/dist/components/side-sheet-container2.js +1 -1
- package/dist/components/side-sheet2.js +1 -1
- package/dist/components/signature-input2.js +1 -1
- package/dist/components/signature-renderer2.js +1 -1
- package/dist/components/simple-card.js +1 -1
- package/dist/components/split-line-popup2.js +1 -1
- package/dist/components/status-chip2.js +1 -1
- package/dist/components/stencil-chip2.js +1 -1
- package/dist/components/stencil-form2.js +1 -1
- package/dist/components/stencil-toggle2.js +1 -1
- package/dist/components/table-columns-renderer2.js +1 -1
- package/dist/components/table-input2.js +1 -1
- package/dist/components/tally.js +1 -1
- package/dist/components/test-components-page.js +1 -1
- package/dist/components/test-form2.js +1 -1
- package/dist/components/text-area2.js +1 -1
- package/dist/components/text-field2.js +1 -1
- package/dist/components/text-input-renderer2.js +1 -1
- package/dist/components/theme-manager.js +1 -0
- package/dist/components/udp-adornment2.js +1 -1
- package/dist/components/udp-advanced-search-builder.js +1 -1
- package/dist/components/udp-ag-area-chart.d.ts +11 -0
- package/dist/components/udp-ag-area-chart.js +2 -0
- package/dist/components/udp-ag-bar-chart.d.ts +11 -0
- package/dist/components/udp-ag-bar-chart.js +2 -0
- package/dist/components/udp-ag-bar-chart2.js +1 -0
- package/dist/components/udp-ag-bubble-chart.d.ts +11 -0
- package/dist/components/udp-ag-bubble-chart.js +2 -0
- package/dist/components/udp-ag-combo-chart.d.ts +11 -0
- package/dist/components/udp-ag-combo-chart.js +2 -0
- package/dist/components/udp-ag-donut-chart.d.ts +11 -0
- package/dist/components/udp-ag-donut-chart.js +2 -0
- package/dist/components/udp-ag-line-chart.d.ts +11 -0
- package/dist/components/udp-ag-line-chart.js +2 -0
- package/dist/components/udp-ag-pie-chart.d.ts +11 -0
- package/dist/components/udp-ag-pie-chart.js +2 -0
- package/dist/components/udp-ag-scatter-chart.d.ts +11 -0
- package/dist/components/udp-ag-scatter-chart.js +2 -0
- package/dist/components/udp-ambient-card2.js +1 -1
- package/dist/components/udp-ambient-tool-tip2.js +1 -1
- package/dist/components/udp-autocomplete2.js +1 -1
- package/dist/components/udp-avatar2.js +1 -1
- package/dist/components/udp-badge2.js +1 -1
- package/dist/components/udp-bar-chart.js +1 -1
- package/dist/components/udp-calendar-base2.js +1 -1
- package/dist/components/udp-calendar-day.js +1 -1
- package/dist/components/udp-calendar-month.js +1 -1
- package/dist/components/udp-calendar-week.js +1 -1
- package/dist/components/udp-calendar-year.js +1 -1
- package/dist/components/udp-card-action-area.js +1 -1
- package/dist/components/udp-card-actions2.js +1 -1
- package/dist/components/udp-card-content2.js +1 -1
- package/dist/components/udp-card-header2.js +1 -1
- package/dist/components/udp-card-media2.js +1 -1
- package/dist/components/udp-card2.js +1 -1
- package/dist/components/udp-charts-example.js +1 -1
- package/dist/components/udp-chip2.js +1 -1
- package/dist/components/udp-column-header2.js +1 -1
- package/dist/components/udp-compound-button2.js +1 -1
- package/dist/components/udp-container-query-grid-item.js +1 -1
- package/dist/components/udp-container-query-grid.js +1 -1
- package/dist/components/udp-container-query2.js +1 -1
- package/dist/components/udp-container2.js +1 -1
- package/dist/components/udp-date-input2.js +1 -1
- package/dist/components/udp-date-range-selector2.js +1 -1
- package/dist/components/udp-date-selector2.js +1 -1
- package/dist/components/udp-date-time-input2.js +1 -1
- package/dist/components/udp-datetime-selector2.js +1 -1
- package/dist/components/udp-dialog2.js +1 -1
- package/dist/components/udp-distribution-chart2.js +1 -1
- package/dist/components/udp-divider2.js +1 -1
- package/dist/components/udp-donut-chart2.js +1 -1
- package/dist/components/udp-dynamic-container-with-menu2.js +1 -1
- package/dist/components/udp-dynamic-form.js +1 -1
- package/dist/components/udp-empty-state-display2.js +1 -1
- package/dist/components/udp-field2.js +1 -1
- package/dist/components/udp-fluent-avatar2.js +1 -1
- package/dist/components/udp-fluent-badge2.js +1 -1
- package/dist/components/udp-fluent-button2.js +1 -1
- package/dist/components/udp-fluent-card2.js +1 -1
- package/dist/components/udp-fluent-checkbox2.js +1 -1
- package/dist/components/udp-fluent-counter-badge2.js +1 -1
- package/dist/components/udp-fluent-dialog2.js +1 -1
- package/dist/components/udp-fluent-divider2.js +1 -1
- package/dist/components/udp-fluent-drawer2.js +1 -1
- package/dist/components/udp-fluent-dropdown2.js +1 -1
- package/dist/components/udp-fluent-file-input.js +1 -1
- package/dist/components/udp-fluent-icon-button2.js +1 -1
- package/dist/components/udp-fluent-image.js +1 -1
- package/dist/components/udp-fluent-inline-edit.js +1 -1
- package/dist/components/udp-fluent-link.js +1 -1
- package/dist/components/udp-fluent-location-input.js +1 -1
- package/dist/components/udp-fluent-number-input.d.ts +11 -0
- package/dist/components/udp-fluent-number-input.js +2 -0
- package/dist/components/udp-fluent-radio-group2.js +1 -1
- package/dist/components/udp-fluent-signature-input.js +1 -1
- package/dist/components/udp-fluent-switch2.js +1 -1
- package/dist/components/udp-fluent-tablist2.js +1 -1
- package/dist/components/udp-fluent-text-input2.js +1 -1
- package/dist/components/udp-fluent-toggle-button2.js +1 -1
- package/dist/components/udp-form-component2.js +1 -1
- package/dist/components/udp-forms-builder-menu2.js +1 -1
- package/dist/components/udp-forms-builder-question-item2.js +1 -1
- package/dist/components/udp-forms-builder-style-override.js +1 -1
- package/dist/components/udp-forms-follow-up-list-card.js +1 -1
- package/dist/components/udp-forms-list-card2.js +1 -1
- package/dist/components/udp-forms-list.js +1 -1
- package/dist/components/udp-forms-renderer.js +1 -1
- package/dist/components/udp-grid-loader2.js +1 -1
- package/dist/components/udp-hotlist-form2.js +1 -1
- package/dist/components/udp-kpi-card2.js +1 -1
- package/dist/components/udp-kpi-cards.js +1 -1
- package/dist/components/udp-lazy-loader2.js +1 -1
- package/dist/components/udp-line-chart2.js +1 -1
- package/dist/components/udp-linear-loader2.js +1 -1
- package/dist/components/udp-map-toolbar2.js +1 -1
- package/dist/components/udp-map.js +1 -1
- package/dist/components/udp-menu-item2.js +1 -1
- package/dist/components/udp-menu.js +1 -1
- package/dist/components/udp-message-bar2.js +1 -1
- package/dist/components/udp-notification2.js +1 -1
- package/dist/components/udp-page-header2.js +1 -1
- package/dist/components/udp-page.js +1 -1
- package/dist/components/udp-pop-over-grid-action-header2.js +1 -1
- package/dist/components/udp-pop-over2.js +1 -1
- package/dist/components/udp-progress-bar2.js +1 -1
- package/dist/components/udp-sankey-chart.js +1 -1
- package/dist/components/udp-search-input2.js +1 -1
- package/dist/components/udp-selector2.js +1 -1
- package/dist/components/udp-side-sheet2.js +1 -1
- package/dist/components/udp-sidebar-layout.d.ts +11 -0
- package/dist/components/udp-sidebar-layout.js +2 -0
- package/dist/components/udp-skeleton-loading2.js +1 -1
- package/dist/components/udp-slider2.js +1 -1
- package/dist/components/udp-spinner2.js +1 -1
- package/dist/components/udp-split-screen.js +1 -1
- package/dist/components/udp-stepper-demo.js +1 -1
- package/dist/components/udp-tab-panel2.js +1 -1
- package/dist/components/udp-tab.js +1 -1
- package/dist/components/udp-tabs2.js +1 -1
- package/dist/components/udp-textarea2.js +1 -1
- package/dist/components/udp-time-input2.js +1 -1
- package/dist/components/udp-time-selector2.js +1 -1
- package/dist/components/udp-timeline-connector.js +1 -1
- package/dist/components/udp-timeline-dot.js +1 -1
- package/dist/components/udp-timeline-item.js +1 -1
- package/dist/components/udp-timeline-separator.js +1 -1
- package/dist/components/udp-timeline.js +1 -1
- package/dist/components/udp-tooltip2.js +1 -1
- package/dist/components/udp-tree2.js +1 -1
- package/dist/components/udp-xy-chart2.js +1 -1
- package/dist/components/udp-xy-multi-series-chart.js +1 -1
- package/dist/components/upd-alert-banner2.js +1 -1
- package/dist/docs.json +13789 -10151
- package/dist/esm/add-map-feature-popup_4.entry.js +12 -12
- package/dist/esm/address-search_6.entry.js +18 -18
- package/dist/esm/advanced-search_12.entry.js +13 -13
- package/dist/esm/ag-grid-base_63.entry.js +388 -148
- package/dist/esm/ambient-template-grid.entry.js +16 -16
- package/dist/esm/api-method-instance-grid.entry.js +2 -2
- package/dist/esm/app-bar.entry.js +1 -1
- package/dist/esm/chart-container_3.entry.js +2 -2
- package/dist/esm/charts-theme-B2HoYVMf.js +383 -0
- package/dist/esm/check-box.entry.js +2 -2
- package/dist/esm/chip-section.entry.js +2 -2
- package/dist/esm/date-time-renderer_9.entry.js +21 -21
- package/dist/esm/feature-details-card_2.entry.js +5 -5
- package/dist/esm/file-upload_2.entry.js +5 -5
- package/dist/esm/filter-conditions_7.entry.js +5 -5
- package/dist/esm/form-metadata-display_10.entry.js +8 -8
- package/dist/esm/icon-grid.entry.js +1 -1
- package/dist/esm/index-Cgpvu-iV.js +44 -4
- package/dist/esm/index.js +4 -152
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-component_2.entry.js +2 -2
- package/dist/esm/primary-action-header_2.entry.js +4 -4
- package/dist/esm/question-configs-renderer_4.entry.js +15 -15
- package/dist/esm/resource-timeline-calendar.entry.js +1 -1
- package/dist/esm/resource-timeline-primary-bar.entry.js +3 -3
- package/dist/esm/search-method-grid.entry.js +1 -1
- package/dist/esm/server-side-grid.entry.js +1 -1
- package/dist/esm/side-sheet-container.entry.js +1 -1
- package/dist/esm/simple-card.entry.js +1 -1
- package/dist/esm/slot-helpers-Dx6EW-PP.js +9 -0
- package/dist/esm/status-chip_2.entry.js +1 -1
- package/dist/esm/stencil-chip.entry.js +2 -2
- package/dist/esm/stencil-library.js +1 -1
- package/dist/esm/stencil-toggle.entry.js +4 -4
- package/dist/esm/text-field_2.entry.js +7 -7
- package/dist/esm/theme-manager-DeVqiL0i.js +153 -0
- package/dist/esm/udp-adornment.entry.js +1 -1
- package/dist/esm/udp-advanced-search-builder.entry.js +7 -4
- package/dist/esm/udp-ag-area-chart.entry.js +118 -0
- package/dist/esm/{udp-bar-chart_4.entry.js → udp-ag-bar-chart_4.entry.js} +110 -31
- package/dist/esm/udp-ag-bubble-chart.entry.js +118 -0
- package/dist/esm/udp-ag-combo-chart.entry.js +118 -0
- package/dist/esm/udp-ag-donut-chart.entry.js +116 -0
- package/dist/esm/udp-ag-line-chart.entry.js +118 -0
- package/dist/esm/udp-ag-pie-chart.entry.js +116 -0
- package/dist/esm/udp-ag-scatter-chart.entry.js +118 -0
- package/dist/esm/udp-attachment-item_2.entry.js +1 -1
- package/dist/esm/udp-bar-chart.entry.js +39 -0
- package/dist/esm/udp-calendar-base.entry.js +44 -71
- package/dist/esm/udp-calendar-day.entry.js +1 -3
- package/dist/esm/udp-calendar-month.entry.js +1 -3
- package/dist/esm/udp-calendar-week.entry.js +1 -3
- package/dist/esm/udp-calendar-year.entry.js +1 -3
- package/dist/esm/udp-card-action-area.entry.js +1 -1
- package/dist/esm/udp-card_6.entry.js +7 -7
- package/dist/esm/udp-charts-example.entry.js +14 -1
- package/dist/esm/udp-container-query-grid-item.entry.js +1 -1
- package/dist/esm/udp-container-query-grid.entry.js +1 -1
- package/dist/esm/udp-container-query.entry.js +2 -2
- package/dist/esm/udp-container.entry.js +2 -2
- package/dist/esm/udp-dynamic-container-with-menu.entry.js +1 -1
- package/dist/esm/udp-dynamic-form.entry.js +1 -1
- package/dist/esm/udp-fluent-file-input.entry.js +4 -4
- package/dist/esm/udp-fluent-image.entry.js +1 -1
- package/dist/esm/udp-fluent-inline-edit.entry.js +1 -1
- package/dist/esm/udp-fluent-link.entry.js +1 -1
- package/dist/esm/udp-fluent-location-input.entry.js +3 -3
- package/dist/esm/udp-fluent-number-input.entry.js +97 -0
- package/dist/esm/udp-fluent-signature-input.entry.js +4 -4
- package/dist/esm/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/esm/udp-forms-follow-up-list-card.entry.js +2 -2
- package/dist/esm/udp-forms-list-card.entry.js +4 -4
- package/dist/esm/udp-forms-list.entry.js +1 -1
- package/dist/esm/udp-forms-renderer.entry.js +1 -1
- package/dist/esm/udp-kpi-card.entry.js +1 -1
- package/dist/esm/udp-kpi-cards.entry.js +2 -2
- package/dist/esm/udp-map.entry.js +3 -3
- package/dist/esm/udp-menu.entry.js +1 -1
- package/dist/esm/udp-page.entry.js +1 -1
- package/dist/esm/udp-sankey-chart.entry.js +1 -1
- package/dist/esm/udp-sidebar-layout.entry.js +65 -0
- package/dist/esm/udp-skeleton-loading.entry.js +1 -1
- package/dist/esm/udp-split-screen.entry.js +1 -1
- package/dist/esm/udp-stepper-demo.entry.js +1 -1
- package/dist/esm/udp-tab.entry.js +1 -1
- package/dist/esm/udp-timeline-connector.entry.js +1 -1
- package/dist/esm/udp-timeline-dot.entry.js +1 -1
- package/dist/esm/udp-timeline-item.entry.js +2 -2
- package/dist/esm/udp-timeline-separator.entry.js +1 -1
- package/dist/esm/udp-timeline.entry.js +1 -1
- package/dist/esm/udp-xy-chart.entry.js +1 -1
- package/dist/esm/udp-xy-multi-series-chart.entry.js +1 -1
- package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -1
- package/dist/stencil-library/address-search_6.entry.js +1 -1
- package/dist/stencil-library/advanced-search_12.entry.js +1 -1
- package/dist/stencil-library/ag-grid-base_63.entry.js +1 -1
- package/dist/stencil-library/ambient-template-grid.entry.js +1 -1
- package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
- package/dist/stencil-library/app-bar.entry.js +1 -1
- package/dist/stencil-library/chart-container_3.entry.js +1 -1
- package/dist/stencil-library/charts-theme-B2HoYVMf.js +1 -0
- package/dist/stencil-library/check-box.entry.js +1 -1
- package/dist/stencil-library/chip-section.entry.js +1 -1
- package/dist/stencil-library/date-time-renderer_9.entry.js +1 -1
- package/dist/stencil-library/feature-details-card_2.entry.js +1 -1
- package/dist/stencil-library/file-upload_2.entry.js +1 -1
- package/dist/stencil-library/filter-conditions_7.entry.js +1 -1
- package/dist/stencil-library/form-metadata-display_10.entry.js +1 -1
- package/dist/stencil-library/icon-grid.entry.js +1 -1
- package/dist/stencil-library/index.esm.js +1 -1
- package/dist/stencil-library/map-component_2.entry.js +1 -1
- package/dist/stencil-library/primary-action-header_2.entry.js +1 -1
- package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -1
- package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -1
- package/dist/stencil-library/resource-timeline-primary-bar.entry.js +1 -1
- package/dist/stencil-library/search-method-grid.entry.js +1 -1
- package/dist/stencil-library/server-side-grid.entry.js +1 -1
- package/dist/stencil-library/side-sheet-container.entry.js +1 -1
- package/dist/stencil-library/simple-card.entry.js +1 -1
- package/dist/stencil-library/slot-helpers-Dx6EW-PP.js +1 -0
- package/dist/stencil-library/status-chip_2.entry.js +1 -1
- package/dist/stencil-library/stencil-chip.entry.js +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/stencil-library/stencil-toggle.entry.js +1 -1
- package/dist/stencil-library/text-field_2.entry.js +1 -1
- package/dist/stencil-library/theme-manager-DeVqiL0i.js +1 -0
- package/dist/stencil-library/udp-adornment.entry.js +1 -1
- package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
- package/dist/stencil-library/udp-ag-area-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-bar-chart_4.entry.js +1 -0
- package/dist/stencil-library/udp-ag-bubble-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-combo-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-donut-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-line-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-pie-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-scatter-chart.entry.js +1 -0
- package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -1
- package/dist/stencil-library/udp-bar-chart.entry.js +1 -0
- package/dist/stencil-library/udp-calendar-base.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-day.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-month.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-week.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-year.entry.js +1 -1
- package/dist/stencil-library/udp-card-action-area.entry.js +1 -1
- package/dist/stencil-library/udp-card_6.entry.js +1 -1
- package/dist/stencil-library/udp-charts-example.entry.js +1 -1
- package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -1
- package/dist/stencil-library/udp-container-query-grid.entry.js +1 -1
- package/dist/stencil-library/udp-container-query.entry.js +1 -1
- package/dist/stencil-library/udp-container.entry.js +1 -1
- package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js +1 -1
- package/dist/stencil-library/udp-dynamic-form.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-file-input.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-image.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-inline-edit.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-link.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-location-input.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-number-input.entry.js +1 -0
- package/dist/stencil-library/udp-fluent-signature-input.entry.js +1 -1
- package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
- package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
- package/dist/stencil-library/udp-forms-list.entry.js +1 -1
- package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
- package/dist/stencil-library/udp-kpi-card.entry.js +1 -1
- package/dist/stencil-library/udp-kpi-cards.entry.js +1 -1
- package/dist/stencil-library/udp-map.entry.js +1 -1
- package/dist/stencil-library/udp-menu.entry.js +1 -1
- package/dist/stencil-library/udp-page.entry.js +1 -1
- package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
- package/dist/stencil-library/udp-sidebar-layout.entry.js +1 -0
- package/dist/stencil-library/udp-skeleton-loading.entry.js +1 -1
- package/dist/stencil-library/udp-split-screen.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
- package/dist/stencil-library/udp-tab.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-connector.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-dot.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-item.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-separator.entry.js +1 -1
- package/dist/stencil-library/udp-timeline.entry.js +1 -1
- package/dist/stencil-library/udp-xy-chart.entry.js +1 -1
- package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -1
- package/dist/types/components/calendar/udp-calendar-base.d.ts +5 -2
- package/dist/types/components/calendar/udp-calendar-day.d.ts +1 -2
- package/dist/types/components/calendar/udp-calendar-month.d.ts +1 -2
- package/dist/types/components/calendar/udp-calendar-week.d.ts +1 -2
- package/dist/types/components/calendar/udp-calendar-year.d.ts +1 -2
- package/dist/types/components/charts/chart-container/chart-container.d.ts +7 -0
- package/dist/types/components/charts/chart-kpi/chart-kpi.d.ts +5 -0
- package/dist/types/components/charts/charts-theme.d.ts +80 -0
- package/dist/types/components/charts/udp-ag-area-chart/udp-ag-area-chart.d.ts +73 -0
- package/dist/types/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.d.ts +62 -0
- package/dist/types/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.d.ts +70 -0
- package/dist/types/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.d.ts +83 -0
- package/dist/types/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.d.ts +70 -0
- package/dist/types/components/charts/udp-ag-line-chart/udp-ag-line-chart.d.ts +75 -0
- package/dist/types/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.d.ts +72 -0
- package/dist/types/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.d.ts +76 -0
- package/dist/types/components/charts/udp-bar-chart/udp-bar-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-charts-example.d.ts +1 -1
- package/dist/types/components/charts/udp-distribution-chart/udp-distribution-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-donut-chart/udp-donut-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-line-chart/udp-line-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-sankey-chart/udp-sankey-chart.d.ts +5 -0
- package/dist/types/components/charts/udp-xy-chart/udp-xy-chart.d.ts +5 -0
- package/dist/types/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.d.ts +4 -0
- package/dist/types/components/fluent-ui/autocomplete/udp-autocomplete.d.ts +39 -7
- package/dist/types/components/fluent-ui/date-input/udp-date-input.d.ts +15 -1
- package/dist/types/components/fluent-ui/date-time-input/udp-date-time-input.d.ts +10 -1
- package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +33 -5
- package/dist/types/components/fluent-ui/number-input/udp-fluent-number-input.d.ts +66 -0
- package/dist/types/components/fluent-ui/tree/udp-tree.d.ts +78 -0
- package/dist/types/components/grid/new-grid/gridFunctions/bulkActions.d.ts +20 -0
- package/dist/types/components/layout/udp-sidebar-layout/udp-sidebar-layout.d.ts +54 -0
- package/dist/types/components.d.ts +1912 -76
- package/package.json +2 -1
- package/dist/components/udp-bar-chart2.js +0 -1
- package/dist/stencil-library/udp-bar-chart_4.entry.js +0 -1
|
@@ -20,6 +20,7 @@ require('@fluentui/web-components/option.js');
|
|
|
20
20
|
require('@fluentui/web-components/listbox.js');
|
|
21
21
|
require('@fluentui/web-components/button.js');
|
|
22
22
|
require('@fluentui/web-components/compound-button.js');
|
|
23
|
+
var slotHelpers = require('./slot-helpers-C-ntX3IL.js');
|
|
23
24
|
require('@fluentui/web-components/text-input.js');
|
|
24
25
|
require('cally');
|
|
25
26
|
require('@fluentui/web-components/avatar.js');
|
|
@@ -173,7 +174,7 @@ function createAgGridTheme() {
|
|
|
173
174
|
wrapperBorderRadius: 0,
|
|
174
175
|
wrapperBorder: false,
|
|
175
176
|
headerCellHoverBackgroundColor: 'var(--udp-grid-column-header-bg-hover)',
|
|
176
|
-
borderColor: '
|
|
177
|
+
borderColor: '#E9ECEF',
|
|
177
178
|
accentColor: 'var(--primary-color)',
|
|
178
179
|
browserColorScheme: 'light',
|
|
179
180
|
}, 'light')
|
|
@@ -1074,9 +1075,37 @@ class BulkActions {
|
|
|
1074
1075
|
this.onRowSelectionChanged = () => {
|
|
1075
1076
|
var _a;
|
|
1076
1077
|
startGuardedTransition(() => {
|
|
1077
|
-
|
|
1078
|
-
this.
|
|
1079
|
-
|
|
1078
|
+
var _a, _b, _c, _d;
|
|
1079
|
+
if (this.api.getGridOption('rowModelType') === 'serverSide') {
|
|
1080
|
+
// SSRM: selection is a rule, not a row list. Derive the count from the
|
|
1081
|
+
// rule. getSelectedRows() must NOT be called while select-all is active
|
|
1082
|
+
// (AG Grid warning #199), so only read concrete rows for explicit picks.
|
|
1083
|
+
const state = this.api.getServerSideSelectionState();
|
|
1084
|
+
const total = (_b = (_a = this.api.getGridOption('context')) === null || _a === void 0 ? void 0 : _a.rowCount) !== null && _b !== void 0 ? _b : 0;
|
|
1085
|
+
const toggledNodes = (_c = state === null || state === void 0 ? void 0 : state.toggledNodes) !== null && _c !== void 0 ? _c : [];
|
|
1086
|
+
const selectAll = (_d = state === null || state === void 0 ? void 0 : state.selectAll) !== null && _d !== void 0 ? _d : false;
|
|
1087
|
+
this.selectedRows = selectAll ? [] : this.api.getSelectedRows();
|
|
1088
|
+
this.selectedRowCount = selectAll
|
|
1089
|
+
? Math.max(total - toggledNodes.length, 0)
|
|
1090
|
+
: toggledNodes.length;
|
|
1091
|
+
this.selectionState = {
|
|
1092
|
+
rowModelType: 'serverSide',
|
|
1093
|
+
selectAll,
|
|
1094
|
+
toggledNodes,
|
|
1095
|
+
selectedCount: this.selectedRowCount,
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
else {
|
|
1099
|
+
const rows = this.api.getSelectedRows();
|
|
1100
|
+
this.selectedRows = rows;
|
|
1101
|
+
this.selectedRowCount = rows.length;
|
|
1102
|
+
this.selectionState = {
|
|
1103
|
+
rowModelType: 'clientSide',
|
|
1104
|
+
selectAll: false,
|
|
1105
|
+
toggledNodes: [],
|
|
1106
|
+
selectedCount: rows.length,
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1080
1109
|
this.refresh();
|
|
1081
1110
|
});
|
|
1082
1111
|
//Refetch server action if gridId has changed, or fetch has not happened
|
|
@@ -1105,13 +1134,13 @@ class BulkActions {
|
|
|
1105
1134
|
this.executeLocalFunction = (functionName) => {
|
|
1106
1135
|
const selectedFunction = this.localFunctions.find(f => f.label === functionName);
|
|
1107
1136
|
if (selectedFunction) {
|
|
1108
|
-
selectedFunction.callback(this.selectedRows);
|
|
1137
|
+
selectedFunction.callback(this.selectedRows, this.selectionState);
|
|
1109
1138
|
}
|
|
1110
1139
|
this.refresh();
|
|
1111
1140
|
};
|
|
1112
1141
|
this.executeActionProviderAction = (actionId) => {
|
|
1113
1142
|
if (this.actionProviderCallback) {
|
|
1114
|
-
this.actionProviderCallback(actionId, this.selectedRows);
|
|
1143
|
+
this.actionProviderCallback(actionId, this.selectedRows, this.selectionState);
|
|
1115
1144
|
}
|
|
1116
1145
|
this.refresh();
|
|
1117
1146
|
};
|
|
@@ -1131,11 +1160,22 @@ class BulkActions {
|
|
|
1131
1160
|
this.api.setGridOption('rowSelection', { mode: 'multiRow', enableClickSelection: true });
|
|
1132
1161
|
}
|
|
1133
1162
|
else {
|
|
1163
|
+
// SSRM: the header checkbox selects ALL matching rows (every page), stored
|
|
1164
|
+
// as a selection rule ({ selectAll, toggledNodes }) — not a row list.
|
|
1165
|
+
// 'currentPage'/'filtered' are invalid for SSRM and silently fall back to
|
|
1166
|
+
// 'all', so we leave selectAll at its default. Selection is read from
|
|
1167
|
+
// getServerSideSelectionState() in onRowSelectionChanged.
|
|
1134
1168
|
this.api.setGridOption('rowSelection', {
|
|
1135
1169
|
mode: 'multiRow',
|
|
1136
1170
|
enableClickSelection: true,
|
|
1137
|
-
headerCheckbox:
|
|
1171
|
+
headerCheckbox: true,
|
|
1138
1172
|
});
|
|
1173
|
+
// SSRM row selection requires Row IDs; without getRowId the select-all
|
|
1174
|
+
// state and selection tracking are unreliable.
|
|
1175
|
+
if (!this.api.getGridOption('getRowId')) {
|
|
1176
|
+
console.warn('[bulkActions] Server-side row selection requires `getRowId` in gridOptions. ' +
|
|
1177
|
+
'Without it the header checkbox select-all and selection state are unreliable.');
|
|
1178
|
+
}
|
|
1139
1179
|
}
|
|
1140
1180
|
//Get gridId from context and fetch bulk actions, or set empty server actions if no gridId
|
|
1141
1181
|
this.gridId = (_b = this.api.getGridOption('context')) === null || _b === void 0 ? void 0 : _b.gridId;
|
|
@@ -1703,7 +1743,7 @@ const AgGridBase = class {
|
|
|
1703
1743
|
this.updateGridContextValues();
|
|
1704
1744
|
}
|
|
1705
1745
|
render() {
|
|
1706
|
-
return (index.h("div", { key: '
|
|
1746
|
+
return (index.h("div", { key: '104459ae3bbc35124905c375284deea7fd4a18e2', ref: el => (this.gridContainerEl = el) }, index.h("ghost-render", { key: '9246393a0abf0f32551fc7783747328dbba99ec7' }, index.h("div", { key: 'b8e6d1fdb1ff7884e6723a0ff9421bd12ad63740' }, index.h("udp-dialog", { key: '4e2de434c26d11fa47104e6c8f06d76d3e617500' }), index.h("udp-list-item", { key: 'c46d7dec91a2bae694631f095c9904f85d607ba6' }), index.h("hint-panel", { key: '4177e50ac5fedda3f15de57153de46201f104454' }), index.h("udp-side-sheet", { key: '2e8914c6d8ea1bb83e48cce4489fd2d636884498' }), index.h("udp-fluent-dialog", { key: '482719dc0f89bdbe4749d28aa1d2509343de1ca7' }), index.h("udp-fluent-text", { key: '03a30ea4a724b2d003befd88f4fa8eba27685411' }), index.h("udp-fluent-text-input", { key: 'a6e25454b5bd17db8ed441363c81b66902987323' }), index.h("udp-fluent-switch", { key: 'b547bd01dda86ba3b1c94a5973de9b562cf7cb59' }), index.h("udp-fluent-button", { key: '9d5b809d46caaedf783b42598adb23f2d181a8b8' }), index.h("udp-text", { key: 'f4ce740ea9998d756f4e9518a1c304dd5e4208a3' }), index.h("udp-search-input", { key: '8192e2ac08b3ee6052578677c3361e9dc7648ec5' }), index.h("udp-fluent-avatar", { key: '8e7f9bb0c6e9dee5d50b5740a9599a7a1271f677' }), index.h("udp-fluent-icon-button", { key: '059f897ae01e52266e938f77c70dd848efd12f43' }), index.h("udp-fluent-icon", { key: '33b02e8a98bb6fee997ac180942dbb2545ea2c21' }), index.h("udp-fluent-badge", { key: '5b0ca3ac9944d662c9593602fe8adfd13da4a2b8' }))), index.h("grid-header", { key: '5a1a52b5e07dd84dbc5f7b0c8d6ac3cca3faa2d9', headerConfig: this.headerConfig, gridFunctions: this.gridFunctions, gridFunctionInstances: this.gridFunctionInstances, refreshKey: this.refreshKey, onHeaderAction: this.onHeaderAction }), index.h("div", { key: 'ea69fb43b9a875f35ef7851662af90474321ef81', ref: el => (this.gridEl = el) })));
|
|
1707
1747
|
}
|
|
1708
1748
|
static get watchers() { return {
|
|
1709
1749
|
"gridFunctions": [{
|
|
@@ -1766,7 +1806,7 @@ const ClientSideGrid = class {
|
|
|
1766
1806
|
this.clientSideConfig = Object.assign(Object.assign({}, this.gridOptions), { rowModelType: 'clientSide' });
|
|
1767
1807
|
}
|
|
1768
1808
|
render() {
|
|
1769
|
-
return (index.h("ag-grid-base", { key: '
|
|
1809
|
+
return (index.h("ag-grid-base", { key: '986f172c2d9f1758548f3f49be1b3cd2c2693b26', columnDefs: this.columnDefs, gridOptions: this.clientSideConfig, headerConfig: this.gridHeaderConfig, onGridReady: e => this.handleGridReady(e), gridFunctions: this.gridFunctions, gridId: this.gridId, gridApiCallback: this.gridApiCallback, gridHeight: this.gridHeight }));
|
|
1770
1810
|
}
|
|
1771
1811
|
static get watchers() { return {
|
|
1772
1812
|
"rowData": [{
|
|
@@ -1852,7 +1892,7 @@ const GhostRender = class {
|
|
|
1852
1892
|
// The <slot /> is necessary to prevent the Stencil compiler from
|
|
1853
1893
|
// overly optimizing this component's output and aliasing the
|
|
1854
1894
|
// defineCustomElement export, which breaks downstream wrappers.
|
|
1855
|
-
return (index.h(index.Host, { key: '
|
|
1895
|
+
return (index.h(index.Host, { key: 'bec0fa4741a39ce0d804f3f98ce8c211138028d3' }, index.h("slot", { key: 'f6934523537cde4b6ebc2fe0f8af1a83c3cab2d8' })));
|
|
1856
1896
|
}
|
|
1857
1897
|
};
|
|
1858
1898
|
GhostRender.style = `:host {
|
|
@@ -2024,7 +2064,7 @@ const HintPanel = class {
|
|
|
2024
2064
|
};
|
|
2025
2065
|
}
|
|
2026
2066
|
render() {
|
|
2027
|
-
return (index.h("div", { key: '
|
|
2067
|
+
return (index.h("div", { key: '9f3e0a64c558e9640f0452edaf641053460c8a39', class: "hint-container" }, this.showHint && (index.h("div", { key: '357a51d28445c9ef44d285b90d414adc79a3c0c4', class: "hint-content" }, index.h("div", { key: '955c8e4bdb80681728a3b1e828eef95c830e0f86' }, index.h("unity-typography", { key: 'c13886bc1eb7869e3e4c5fccc19a53d559227f9f', variant: "body" }, " ", this.hint, " ")), this.hideHintText && (index.h("div", { key: 'a17cfbf74ace9228b4633a9ab15b525801bbc552', class: "hide-help" }, index.h("udp-button", { key: '71c170ce3161e76a96dae07649d72b0598352db4', size: "small", color: "info", onClick: this.handleHideHint }, this.hideHintText)))))));
|
|
2028
2068
|
}
|
|
2029
2069
|
};
|
|
2030
2070
|
HintPanel.style = hintPanelCss();
|
|
@@ -2477,51 +2517,51 @@ const TestComponentsPage = class {
|
|
|
2477
2517
|
}
|
|
2478
2518
|
render() {
|
|
2479
2519
|
var _a;
|
|
2480
|
-
return (index.h("div", { key: '
|
|
2520
|
+
return (index.h("div", { key: 'a9c2322a26615d31613089bc327c27e3ec4917aa', style: { display: 'flex', flexDirection: 'column' } }, index.h("div", { key: 'bf2ba944baa02b50dd338098d9d5c3ed4e92eac9', style: { display: 'flex', gap: '1rem', marginTop: '1rem' } }, index.h("udp-fluent-button", { key: '242492378dad7dd52621678294e2647c6dbb499c', onClick: () => (this.formDrawerOpen = true) }, "Open Form Drawer"), index.h("udp-fluent-button", { key: '66126efb0e275889a5377d0a8b3e4dcd42d4e715', onClick: () => (this.drawerOpen = true) }, "Open Grid Drawer")), index.h("div", { key: '919821dfd30a7cf09bad796e7d3b4b5ca3ac8097', style: { display: 'flex', flexDirection: 'column', gap: '1rem', marginTop: '2rem' } }, index.h("h4", { key: '00e3320913a1c3c53978f2b1b07d78165930214c' }, "Scroll Overflow Strategy"), index.h("udp-fluent-tablist", { key: '9ab08dcfddfdbe4d43d22533bb7e91e4eb306b6d', tabList: this.tabs, onTabChange: this.handleTabChange, appearance: "transparent", size: "small", orientation: "horizontal", overflowStrategy: "scroll" }, index.h("span", { key: 'a70671fda6c6472f7fe8b21800b295ab122a8c7e', slot: "grids-start", style: { color: 'red', fontWeight: 'bold' } }, "!")), index.h("h4", { key: '963ef03978a78e87336b27be5add4c29f5a2efb0' }, "Collapse Overflow Strategy"), index.h("udp-fluent-tablist", { key: 'ea61b3879d3cbbeb9c6618e5858d41c2f836028e', tabList: this.tabs, onTabChange: this.handleTabChange, appearance: "contained", size: "small", orientation: "horizontal", overflowStrategy: "collapse" }, index.h("span", { key: '72ca1c8badafb439d583d3361492a33c50203d07', slot: "grids-start", style: { color: 'red', fontWeight: 'bold' } }, "!")), index.h("div", { key: 'bc463889ac07a431dc87c73f067fb8addbc24cc5', style: { padding: '1rem', border: '1px solid #ccc' } }, index.h("udp-tab-panel", { key: 'ac7bcd1e0855661c1b006bdd8d5f25ffd1575743', id: "buttons-inputs", activeTabId: this.currentTab }, index.h("div", { key: '63b0192e96eb71b182b0707d8db7eeae399ebcef', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, index.h("h3", { key: 'e3d5f9758314ab4d5d7cba2cead95d182a143b82' }, "Buttons & Inputs"), index.h("div", { key: 'd2d95504692b3429c7fb43bc27ae938f4e7626ff', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-switch", { key: 'e9ce5e96a67c67afe668d3bfe1c60cc3fbaeabc2', label: "Toggle Loading", checked: this.isButtonLoading, onValueChanged: e => (this.isButtonLoading = e.detail) }), index.h("udp-fluent-button", { key: '076a4b9c8b3939fca0e5b0fe165f38c1e1478c4f', loading: this.isButtonLoading, size: "medium" }, index.h("udp-fluent-icon", { key: '35c7becc662dd5d891f5aaee818cacb728a9aab5', name: "calendar", size: "sm", slot: "start" }), "Loading Button")), index.h("div", { key: 'c36f993d3d0034655fdea10d24ae114d0fb55fba' }, index.h("udp-fluent-button", { key: '005f381234113fd751518aadae7dbf5f98b2d60d', onClick: () => console.log('Click Me Clicked') }, "Click Me")), index.h("div", { key: '21a9b646be50f2c9adf88a1cbb7c159e8a3a1708' }, index.h("h4", { key: '71fb818808575b24d24fdfbe78e23e3fba82f405' }, "New Icon Props"), index.h("div", { key: '9877970aeb3fd51cb725b7a7423fc0af02c24ee9', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-button", { key: '926b5e5137ad0533897ab4dd303cb9106eea1f80', startIconName: "checkmark", onClick: () => console.log('Start Icon Clicked') }, "Start Icon"), index.h("udp-fluent-button", { key: '92cca95950d0eed95c50a6292564e32a92ced897', size: "large", onClick: () => console.log('End Icon Clicked'), endIconName: "home" }, "End Icon"), index.h("udp-fluent-button", { key: 'f960cf20882fcd125b7a53c0a2576350d4889347', appearance: "primary", onClick: () => console.log('Primary Clicked') }, "Delete"), index.h("udp-fluent-button", { key: 'c93088bb38d605f6d3d895c4e078366a6b91c396', startIconName: "checkmark", onClick: () => console.log('Override Icon Clicked') }, index.h("span", { key: '9caa795afb3ca4f0037bb44c561ea2b4cefe27ef', slot: "start" }, index.h("udp-fluent-icon", { key: 'cdf66302bae34dad84acdc7e87251c2f9386e336', name: "home", size: "md" })), "Slotted icon override"))), index.h("div", { key: 'd323f8e769102769a062974da71b7eb8d6658f10' }, index.h("h4", { key: '038bb2e73ad76f03f3e2b8de5359e29b0b319611' }, "Compound Buttons"), index.h("div", { key: '57dfa5e9eb921e6b2c602098677a4144119b4ca1', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-compound-button", { key: '99830baa92fae322458cacaf94a554aad816d02c', description: "Hello World", startIconName: "calendar" }, "Compound Button"), index.h("udp-compound-button", { key: '0e07486eb840a6af2ea73f1cd57f582d2ead0cbb', appearance: "primary", description: "With End Icon", endIconName: "delete" }, "Primary"), index.h("udp-compound-button", { key: 'bb60625d8140dbc78f1a382381bcb7225b244818', description: "Custom Slot", size: "small", startIconName: "add", onClick: () => console.log('Compound Button Clicked') }, index.h("span", { key: '29f365a8cf5a0c3887a47b87faabe40682037408', slot: "description" }, "Slotted Description"), "Compound")), index.h("div", { key: '6d7109606ba0485a72b5152245c97cb8a18844a4', style: {
|
|
2481
2521
|
marginTop: '1rem',
|
|
2482
2522
|
display: 'flex',
|
|
2483
2523
|
gap: '1rem',
|
|
2484
2524
|
alignItems: 'center',
|
|
2485
|
-
} }, index.h("udp-fluent-switch", { key: '
|
|
2525
|
+
} }, index.h("udp-fluent-switch", { key: '04ebf651f2230fdcc81a7928662cbbb4ae9b9161', checked: this.isButtonLoading, onValueChanged: e => (this.isButtonLoading = e.detail) }, "Toggle Loading"), index.h("udp-compound-button", { key: '0e7638c6075fb794c97e7d2ee59db594e561c2c0', description: "Click switch to load", endIconName: "add", loading: this.isButtonLoading, onClick: () => console.log('Compound Button Clicked') }, "Loading Test"))), index.h("div", { key: '244a86372c3cf3d16236c6f0e154b53af3836bbe' }, index.h("h4", { key: '9b3a0148eb4009f814f1b023b3bb7e4e55312d83' }, "Toggle Buttons"), index.h("div", { key: '5d2e76afc817c86021017b7b2ad25a0678453906', style: { display: 'flex', gap: '1rem', alignItems: 'center', flexWrap: 'wrap' } }, index.h("udp-fluent-toggle-button", { key: 'aa415541152a25e399d92646448824e9e3c1b444' }, "Toggle Me"), index.h("udp-fluent-toggle-button", { key: 'f393ebdba5b63d7d45cf02e62b52ddedcfe2d13e', pressed: true, disabled: true }, "Disabled Pressed"), index.h("udp-fluent-toggle-button", { key: '5956343beeaa7358a451ad981ff7ee8a8f4ac354' }, index.h("udp-fluent-icon", { key: 'aa7a3e07e6d9d2686db547fea62ff4340e57ab11', name: "add", size: "sm", slot: "start" }), "Slotted icon"), index.h("udp-fluent-toggle-button", { key: 'a6fe9d77dea303d942a68accf448b12d6421ac92', endIconName: "settings" }, "End Icon Prop"), index.h("udp-fluent-toggle-button", { key: '3197c1f85d6036e9269f5291d803ae2c588ff97f', size: "small", startIconName: "add" }, "Small"), index.h("udp-fluent-toggle-button", { key: 'c87a03c8762ea5d6a72e249c4ed5d89431ba3e3d', size: "large", endIconName: "delete" }, "Large"))), index.h("div", { key: '1342cf8a51ffc4824988f222c16f44faa1bb4288' }, index.h("h4", { key: '734d04a76b6933f8ed9ef859a8a944d3c1811651' }, "Icon Buttons (Dynamic Sizing)"), index.h("div", { key: 'ba2567c6e53d8a8ff789f28981a3696cf024da39', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("div", { key: 'bdb25678cde5a8689296ed1410cc44d6445ac720', style: { display: 'flex', flexDirection: 'column', alignItems: 'center' } }, index.h("udp-fluent-icon-button", { key: '785795590edcbcd3b3c33791c858600491e91fe2', iconName: "settings", size: "small", appearance: "primary", ariaLabel: "Edit" }), index.h("span", { key: '80f869560b0087cbd3f47d382f6a27944d254cb1', style: { fontSize: '12px' } }, "Small (Subtle)")), index.h("div", { key: '5bce1bbceb8d92fd34870279d7ed9cadae945a72', style: { display: 'flex', flexDirection: 'column', alignItems: 'center' } }, index.h("udp-fluent-icon-button", { key: '8b97470503d8d99e0c4eb10c9503170fe9579df5', iconName: "settings", size: "medium",
|
|
2486
2526
|
//appearance="primary"
|
|
2487
|
-
ariaLabel: "Delete" }), index.h("span", { key: '
|
|
2527
|
+
ariaLabel: "Delete" }), index.h("span", { key: '5e340cabab8b0461ae2b394d63e9b92e70bc520f', style: { fontSize: '12px' } }, "Medium (Outline)")), index.h("div", { key: '2fade4d53bf10e7587db6cec326b2ad5737aabc3', style: { display: 'flex', flexDirection: 'column', alignItems: 'center' } }, index.h("udp-fluent-icon-button", { key: 'c37eb2ac3fbdb5de76487babd3927fdb52adfc25', iconName: "settings", size: "large", appearance: "primary", ariaLabel: "Settings" }), index.h("span", { key: 'ecea0b60ed282a75bb468c53e2e1e31d29c5b5f0', style: { fontSize: '12px' } }, "Large (Transparent)")))), index.h("div", { key: '743c684b4f721cedea7f24350be72a95c4094dee' }, index.h("udp-loading-spinner", { key: '1637fc4d712521bb23fb795917c7f9b6437bfca6', size: "tiny", appearance: "primary" })))), index.h("udp-tab-panel", { key: '972256fea6668009ab1811ff1bff073de2198e45', id: "inputs", activeTabId: this.currentTab }, index.h("div", { key: 'f03349ae64368fac7a1aedf2adb50cb78043ffe1', style: { display: 'flex', gap: '1rem', flexDirection: 'column' } }, index.h("div", { key: '9c28839e42105ee9ac55df10299bfe964c65b7f6', style: {
|
|
2488
2528
|
padding: '1rem',
|
|
2489
2529
|
backgroundColor: 'var(--colorNeutralBackground3, #f5f5f5)',
|
|
2490
2530
|
borderRadius: '8px',
|
|
2491
2531
|
marginBottom: '1rem',
|
|
2492
|
-
} }, index.h("h3", { key: '
|
|
2532
|
+
} }, index.h("h3", { key: 'ec492fbcc5045a6717e23c54316d6e939b50db63', style: { margin: '0 0 1rem 0', fontSize: '16px', fontWeight: '600' } }, "Global Property Controls"), index.h("div", { key: '80207364c26854976d42c08da0ebbc2f4e4ffb7d', style: {
|
|
2493
2533
|
display: 'flex',
|
|
2494
2534
|
gap: '2rem',
|
|
2495
2535
|
flexWrap: 'wrap',
|
|
2496
2536
|
alignItems: 'flex-end',
|
|
2497
|
-
} }, index.h("udp-fluent-dropdown", { key: '
|
|
2537
|
+
} }, index.h("udp-fluent-dropdown", { key: 'f855a9ab7b7bd02d74e781cac1fe7a0b705eacac', label: "Appearance", value: this.inputControlAppearance, options: [
|
|
2498
2538
|
{ label: 'Outline', value: 'outline' },
|
|
2499
2539
|
{ label: 'Underline', value: 'underline' },
|
|
2500
2540
|
{ label: 'Filled Lighter', value: 'filled-lighter' },
|
|
2501
2541
|
{ label: 'Filled Darker', value: 'filled-darker' },
|
|
2502
|
-
], optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.inputControlAppearance = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); }, style: { minWidth: '150px' } }), index.h("udp-fluent-dropdown", { key: '
|
|
2542
|
+
], optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.inputControlAppearance = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); }, style: { minWidth: '150px' } }), index.h("udp-fluent-dropdown", { key: 'ba01afa7f9b176741781818ca5e4b3342a9621fb', label: "Control Size", value: this.inputControlSize, options: [
|
|
2503
2543
|
{ label: 'Small', value: 'small' },
|
|
2504
2544
|
{ label: 'Medium', value: 'medium' },
|
|
2505
2545
|
{ label: 'Large', value: 'large' },
|
|
2506
|
-
], optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.inputControlSize = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); }, style: { minWidth: '120px' } }), index.h("udp-fluent-switch", { key: '
|
|
2546
|
+
], optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.inputControlSize = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); }, style: { minWidth: '120px' } }), index.h("udp-fluent-switch", { key: 'e5732edab996b12c60eaba885c5f2348ce51b2db', label: "Required", labelPosition: "after", checked: this.inputControlRequired, onValueChanged: (e) => (this.inputControlRequired = e.detail) }), index.h("udp-fluent-switch", { key: '1db41ed259be9907ea3a18cf3137eb6811a6b103', label: "Disabled", labelPosition: "after", checked: this.inputControlDisabled, onValueChanged: (e) => (this.inputControlDisabled = e.detail) }), index.h("udp-fluent-switch", { key: 'c2c7ac38c8277ffd3e193576973a2067c8c4d109', label: "Readonly", labelPosition: "after", checked: this.inputControlReadonly, onValueChanged: (e) => (this.inputControlReadonly = e.detail) })), index.h("p", { key: '2c9bd808f492554642680aba181876402d33399a', style: {
|
|
2507
2547
|
margin: '0.75rem 0 0',
|
|
2508
2548
|
fontSize: '12px',
|
|
2509
2549
|
color: 'var(--colorNeutralForeground3)',
|
|
2510
|
-
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), index.h("udp-fluent-text-input", { key: '
|
|
2550
|
+
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), index.h("udp-fluent-text-input", { key: '1bcc06ec36215c916ef12f2d5eb6ea660d2b16a2', label: "Text Input", placeholder: "Enter text...", required: this.inputControlRequired, disabled: this.inputControlDisabled, readonly: this.inputControlReadonly, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: "test" }), index.h("udp-fluent-text-input", { key: '89b772ea4fa4ba00e694790959ff0688ec727bb2', label: "Email Input", type: "email", placeholder: "Enter email...", required: this.inputControlRequired, disabled: this.inputControlDisabled, readonly: this.inputControlReadonly, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: "test@gmail.com" }), index.h("udp-fluent-text-input", { key: '201d9fe86f4cb25fbbb7a8aa00e5aebc4cfa3de0', label: "Number Input", type: "number", placeholder: "Enter number...", required: this.inputControlRequired, disabled: this.inputControlDisabled, readonly: this.inputControlReadonly, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: '123' }), index.h("udp-date-input", { key: '7dd9d1a6fe13c95807c83d0d6cafa630a1a2b9c2', label: "Date Input", required: this.inputControlRequired, disabled: this.inputControlDisabled, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: '2026-01-30' }), index.h("udp-date-time-input", { key: '836ca8989445f862ec7e4da197ac8f0b7c557c90', label: "Date Time Input", required: this.inputControlRequired, disabled: this.inputControlDisabled, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: '2026-01-30T12:00:00' }), index.h("udp-time-input", { key: 'b6c349af19bf76dacae9fd2eb03cf493b2e6fb6d', label: "Time Input", placeholder: "e.g. 2:30pm", hint: "Type any time or select from list", required: this.inputControlRequired, disabled: this.inputControlDisabled, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: '12:00' }), index.h("udp-textarea", { key: 'b8cf77007b6ed7ea0f4903ca9789d6f75fb6c588', label: "Textarea", placeholder: "Tell us about yourself...", autoResize: true, required: this.inputControlRequired, disabled: this.inputControlDisabled, readonly: this.inputControlReadonly, appearance: this.inputControlAppearance, controlSize: this.inputControlSize, value: 'test' }), index.h("udp-fluent-dropdown", { key: 'e215c9f73c96f9d04b9e58242e06af0763b50a06', label: "Dropdown", placeholder: "Select an option...", appearance: this.inputControlAppearance, disabled: this.inputControlDisabled, optionValue: "value", optionLabel: "label", options: [
|
|
2511
2551
|
{ label: 'Option 1', value: 'option1' },
|
|
2512
2552
|
{ label: 'Option 2', value: 'option2' },
|
|
2513
2553
|
{ label: 'Option 3', value: 'option3' },
|
|
2514
|
-
], controlSize: this.inputControlSize, multiple: true }), index.h("udp-autocomplete", { key: '
|
|
2554
|
+
], controlSize: this.inputControlSize, multiple: true }), index.h("udp-autocomplete", { key: '4dd6158d4eb44f8573fe1a89813c0778d2a4b0c4', label: "Autocomplete", placeholder: "Type to search...", appearance: this.inputControlAppearance, disabled: this.inputControlDisabled, optionValue: "value", optionLabel: "label", options: [
|
|
2515
2555
|
{ label: 'Apple', value: 'apple' },
|
|
2516
2556
|
{ label: 'Banana', value: 'banana' },
|
|
2517
2557
|
{ label: 'Cherry', value: 'cherry' },
|
|
2518
2558
|
{ label: 'Date', value: 'date' },
|
|
2519
2559
|
{ label: 'Elderberry', value: 'elderberry' },
|
|
2520
|
-
], controlSize: this.inputControlSize }), index.h("udp-fluent-checkbox", { key: '
|
|
2560
|
+
], controlSize: this.inputControlSize }), index.h("udp-fluent-checkbox", { key: 'bc4ee065153d67b6eb67074e5447e1c49c305cac', label: "Checkbox", hint: "Check me!", disabled: this.inputControlDisabled, controlSize: this.inputControlSize, checked: true }), index.h("udp-fluent-switch", { key: '80ec3e6a600fb60d89511355c8932eef6be076fc', label: "Switch", labelPosition: "after", disabled: this.inputControlDisabled, checked: true }), index.h("udp-slider", { key: '6e367840c051db800dd02c0ad71655fe7a18fed7', label: "Slider", min: "0", max: "100", hint: "Slide to adjust value", disabled: this.inputControlDisabled, value: '50' }), index.h("udp-fluent-radio-group", { key: '42c1ce960ddc437c35c3335eea46a6108e4dd69e', label: "Radio Group", disabled: this.inputControlDisabled, items: [
|
|
2521
2561
|
{ label: 'Option A', value: 'a' },
|
|
2522
2562
|
{ label: 'Option B', value: 'b' },
|
|
2523
2563
|
{ label: 'Option C', value: 'c' },
|
|
2524
|
-
], value: "a" }))), index.h("udp-tab-panel", { key: '
|
|
2564
|
+
], value: "a" }))), index.h("udp-tab-panel", { key: '77fdaf9cfbc1ecfbe95de9164bcf0decdee4bb12', id: "data-display", activeTabId: this.currentTab }, index.h("div", { key: '2bf6711e09b598cb7378fddeb54eba1448ef531f', style: { display: 'flex', flexDirection: 'column', gap: '3rem' } }, index.h("div", { key: '6e32607f36fd0c4172f8c1fbac1c54a45bb92f99' }, index.h("h3", { key: '3398cc45b6cf68f2aa43a971992a0fcb9ba20b44' }, "Tree Example - Animal Kingdom (Conservation Status)"), index.h("p", { key: '8e33b49ba9ec0846e98828c04c0d068e23c69564', style: { fontSize: '14px', color: '#6b7280', marginBottom: '1rem' } }, "Explore the animal kingdom with conservation status, population data, and more."), index.h("udp-tree", { key: '40cbeb7889dcf3b85a0152571c9b415bd38b3f22', treeItems: this.animals, itemContent: "name", itemStart: "emoji", itemEnd: this.getStatusBadge, itemAside: this.getItemAside, size: "medium", appearance: "subtle" })), index.h("div", { key: 'c5b9b9ac6697aaec324d3e228cc512446fac2fd3' }, index.h("h3", { key: '401301b8a2e88501a42f5f00ecdb122de09109c8' }, "Accordion Example"), index.h("udp-accordion", { key: 'f24bf1be554c94b9f444c9572de8668896d96d60', items: [
|
|
2525
2565
|
{
|
|
2526
2566
|
id: 'simple',
|
|
2527
2567
|
label: 'Simple Item (Default)',
|
|
@@ -2556,29 +2596,29 @@ const TestComponentsPage = class {
|
|
|
2556
2596
|
id: 'complex-slotted',
|
|
2557
2597
|
// complex content provided via slots below
|
|
2558
2598
|
},
|
|
2559
|
-
] }, index.h("span", { key: '
|
|
2599
|
+
] }, index.h("span", { key: 'ae3f3a9bf405fd5e851debc02f9e76ada576d5b5', slot: "complex-slotted-heading" }, index.h("div", { key: 'fa1c0adc0c5005ff8acd6b350a03e41883704764', style: { display: 'flex', alignItems: 'center', gap: '8px' } }, index.h("udp-fluent-icon", { key: 'f97f8e764feb2d77fc79767dcb45d3f0fe2ae9b4', name: "star", size: "md" }), index.h("span", { key: '6badcee5af6ccaac8e23da312b5141f858eea384' }, "Complex Slotted Header"), index.h("udp-chip", { key: '74328823d59e5508a11bf2fddaf91ee640c01817', label: "New", color: "success", size: "small", variant: "filled" }))), index.h("div", { key: 'e816c8ea48e64c3d21f17dd16d3b887f5d8f4690', slot: "complex-slotted-content" }, index.h("p", { key: '82709cbd97bfc95cff776dec0f34defbb842f30b' }, "This content uses slots for complete control.", index.h("br", { key: 'a164b912bb1fdf8e4c90a8fa9b9d0efb1b520387' }), index.h("span", { key: 'd3974ad2398721510eda3be33991eeaab4b10a89', style: { fontSize: '12px', color: 'gray' } }, "(Try adding buttons, forms, or any component here)")), index.h("div", { key: '019147e252c0d8a78cbb8c755aa3983eab72ae98', style: { marginTop: '8px' } }, index.h("udp-fluent-button", { key: 'dcb6c913ce3a460cfabfd30ce221a0f16c08185e', size: "small" }, "Action A"), index.h("udp-fluent-button", { key: 'cbb8b41e5c020c1339c23b03369d5863f0504628', size: "small", appearance: "outline" }, "Action B"))))), index.h("div", { key: '6a1ff2d1e1b7df9fc7581bec977e48d39ca70c88' }, index.h("h3", { key: '22ce55c72c726aa45e60f12da34ae3a56f62c297' }, "Auto-Wrapping Tooltip"), index.h("udp-tooltip", { key: '135947f4097c79cfc6b548d2cd263533c2640e05', positioning: "above", content: "This works with Shadow DOM!" }, index.h("udp-fluent-button", { key: '46d2dfd14852bf3f6223f15f85b5601d8e87caeb' }, "Hover me"))), index.h("div", { key: '6709b19d3c5d890829b91c9acca6ee68c208884a' }, index.h("h3", { key: '28bd6a5155973ee5a918789563e637e4d69ccc64' }, "Message Bar Example"), index.h("div", { key: '52cf20b28a27d8068370ee82d49c89299bc39195', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, index.h("udp-message-bar", { key: '7e9e931d762b851a4ccb2fbeb9d417e64d0720f3', intent: "info" }, "This is an informational message bar."), index.h("udp-message-bar", { key: '2f9be85b01d731556fa9d756ddb2f260fd17e982', intent: "warning" }, "This is a warning message bar."), index.h("udp-message-bar", { key: '3ec65b1bb0f04447033c63dbbcd9f1074e6ed066', intent: "error" }, "This is an error message bar with actions.", index.h("udp-fluent-button", { key: 'ee74859f779e23707a1113a0d38e594846ba9cde', slot: "actions", appearance: "outline", size: "small" }, "Resolve")), this.showMessageBar && (index.h("udp-message-bar", { key: 'f5af3b8d64e49f51f6a4041091bddbb7d4000f45', intent: "success", shape: "square" }, "This is a success message bar (square).", index.h("udp-icon", { key: 'dc1d5a7e89796415354c0fb3188be90300571227', iconName: "add", slot: "icon" }), index.h("udp-fluent-icon-button", { key: '7c2b86365dbc0999822dc5b25c4312287748b449', iconName: "dismiss", shape: "circular", appearance: "subtle", ariaLabel: "Close drawer", onClick: () => (this.showMessageBar = false), slot: "dismiss" }))))), index.h("div", { key: 'ad70349e1a5cbc2c345871c7f993870d155c5fb2' }, index.h("h3", { key: '8d761f238da5f183af39d5133b421742863f4842' }, "Progress Bar Examples"), index.h("h4", { key: 'd6ef6d3eded2d0d7332bd382bb7647c38ee212b9' }, "Indeterminate"), index.h("udp-progress-bar", { key: '85c12d201fe8b96b4ce5893e0bdfb1fada820f6c', thickness: "large" }), index.h("h4", { key: '07d84941bd21e6cf5c6c0235fd2ab15c505c5e0c' }, "Determinate (Success)"), index.h("udp-progress-bar", { key: 'e4b8a2973657ff90e0be96720d8b8cd3cc446793', value: 75, validationState: "success", shape: "square" }), index.h("h4", { key: '846cff45e7b69fe8eeae43b79c3ededce2005c8c' }, "Interactive"), index.h("div", { key: 'e73b5c33064a47a278f3238100996e7960c5038e', style: {
|
|
2560
2600
|
display: 'flex',
|
|
2561
2601
|
gap: '1rem',
|
|
2562
2602
|
alignItems: 'center',
|
|
2563
2603
|
marginBottom: '1rem',
|
|
2564
|
-
} }, index.h("udp-fluent-text-input", { key: '
|
|
2604
|
+
} }, index.h("udp-fluent-text-input", { key: '740dd2da608e8b6af3f2107602ac3857db4b5af4', label: "Set Progress", type: "number", value: (_a = this.progressValue) === null || _a === void 0 ? void 0 : _a.toString(), onValueChanged: e => (this.progressValue = parseInt(e.detail)) })), index.h("udp-progress-bar", { key: 'b2dda92b20fcfeade5aa48926e486bbdfc6156b7', value: this.progressValue, min: 0, max: 100, shape: "square" })), index.h("div", { key: 'c1b029c3d0d676c8b87e11e25e0b5e1e3bb4c662' }, index.h("h3", { key: 'ce0ce2425846b779ad62f913726011df4d24aa38' }, "Divider Examples"), index.h("p", { key: '23bc63207378d6578e9c9409b3bf3755a421b27b' }, "Default Divider:"), index.h("udp-fluent-divider", { key: '9e4c3ae8be07c5b6c426bb329264770156dc9116' }), index.h("p", { key: '990820751b2c9dc457dd995742ab6aaef75c20cc' }, "Align Content:"), index.h("udp-fluent-divider", { key: 'ccac08a2a35b75b56bee460abdb28c10f5686694', "align-content": "start" }, "Start"), index.h("udp-fluent-divider", { key: 'e58ecd7c9ab898dc891a397aa3050d0268d3c2e0', "align-content": "center" }, "Center"), index.h("udp-fluent-divider", { key: 'cb5dede99f948589591e9a38636c0368c20fb9f0', "align-content": "end" }, "End"), index.h("p", { key: 'b31a3bcd204dc33f88930a75c0b4f78d36a6a6b4' }, "Appearance:"), index.h("udp-fluent-divider", { key: 'b109e20f375e9c7c1582d2a87b44b91fdae86867', appearance: "strong" }, index.h("udp-icon", { key: '8c674e724aa6b996c171f865a5bbf28c9b6350e1', iconName: "add" })), index.h("div", { key: '149502fc02f6bd96a335b433745b7b184b689f90', style: { height: '10px' } }), index.h("udp-fluent-divider", { key: 'd807ac65751e7278c340a15967946cc8df6d8b8e', appearance: "brand" }, "Brand"), index.h("div", { key: 'd98881c01cfbd4d736b26942ca18a0fee698d65f', style: { height: '10px' } }), index.h("udp-fluent-divider", { key: 'da12ebc90414cb2db322e36dae167a2a7e1292e1', appearance: "subtle" }, "Subtle"), index.h("p", { key: '7130f6f91e9f8f1443d1dffec3c4f32cf9b9a67f' }, "Vertical Divider (inside flex container):"), index.h("div", { key: '5c2b2bb4db35c6396171cdf4c5b9232c9f288d57', style: {
|
|
2565
2605
|
display: 'flex',
|
|
2566
2606
|
height: '50px',
|
|
2567
2607
|
alignItems: 'center',
|
|
2568
2608
|
border: '1px solid #ccc',
|
|
2569
2609
|
padding: '10px',
|
|
2570
|
-
} }, index.h("span", { key: '333244c443e04fe684c9e3c9301042bcccf4cbaf' }, "Item 1"), index.h("udp-fluent-divider", { key: '3d5579d1647af12b6d21eceaac68b58a12f1dcad', orientation: "vertical" }), index.h("span", { key: '256a9111d76dcc7dba202c240c5287a01b62a10d' }, "Item 2"), index.h("udp-fluent-divider", { key: 'af3455b99d29ac67e1040616ff37675cd3c0b78a', orientation: "vertical", appearance: "brand" }), index.h("span", { key: '805e66f370a4dd2a19e63b54a3e1623433674306' }, "Item 3"))), index.h("div", { key: 'e94ac056e8a7308f4c7d5bed1cb7dc97f47c0460' }, index.h("h3", { key: '38a7857c73ebfcc141a79b07f29f3ee9e28973f2' }, "Fluent Icon Examples"), index.h("p", { key: 'd08ecc4ed38eb7e35f9e19547dd63a41434df78c' }, "Basic usage (new simplified API):"), index.h("div", { key: '5001e48a61e5ec5ca8848066ce9b736633e2f0d8', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: '13161f20c4c1aee65bf917cc75af9ff2c26fdcb9', name: "add" }), index.h("udp-fluent-icon", { key: '9341532c7e670248e874822ac19aeeb1cae58a72', name: "home" }), index.h("udp-fluent-icon", { key: '5155515f81ca248dc30ad0c533036883e47be5a3', name: "settings" })), index.h("p", { key: '819e70763a2371b2f9eaa8177868735ac7a8855f' }, "Colored:"), index.h("div", { key: '537e6ccbc81061d515f5f3150bc63982579d0da9', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: '0ca369a1a17e13cb39433b1a2c77d31dd00e87f9', name: "add", variant: "filled", color: "green" }), index.h("udp-fluent-icon", { key: '4ecd0d2071ca6f3bad36b4a9569ffeee66fd13c6', name: "delete", color: "red" })), index.h("p", { key: 'ad2d75ebfae5854ff09cf2af522172b294998953' }, "Sizes (xs=16px, sm=20px, md=24px, lg=28px):"), index.h("div", { key: 'b7835777ff815d941a77ac5f0983f26ebe7ac652', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: 'ba09140d10a02f62eb813d9da88748b815ffa664', name: "home", size: "xs" }), index.h("udp-fluent-icon", { key: '351ee06fb8894f14f9d5960634bd4076321f385a', name: "home", size: "sm" }), index.h("udp-fluent-icon", { key: 'e6e0a670dd30d7e3629a406e137912658d432b33', name: "home", size: "md" }), index.h("udp-fluent-icon", { key: '5e6cbd7a3e03a06144c64035a1c39d41a82cb7af', name: "home", size: "lg" })), index.h("p", { key: 'c7ecefd4f36deedbe329e66f0a81d0365c3d639a' }, "Variants (regular vs filled):"), index.h("div", { key: '801197df75e2f40179e73f83d79086606e66f334', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: 'aa8355a86481bdd99ba74ea2eeeb3408736212d0', name: "star", variant: "regular", size: "lg" }), index.h("udp-fluent-icon", { key: '7298e568df494b18530b5a5dfc7753b1e4a66e05', name: "star", variant: "filled", size: "lg", color: "gold" }))))), index.h("udp-tab-panel", { key: '471a56a7d6c01a2690f4d445768856f2b1e30d04', id: "text", activeTabId: this.currentTab }, index.h("div", { key: '1e633f39b3e1dcc414d7f3d3b525b9160db2cffa', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, index.h("h3", { key: '5de23485afe65df129274898174363501e42bacf' }, "Text Component - All Variants"), index.h("div", { key: '4ff6cc7eb098dd90150cebed4ddea92d3013212c' }, index.h("h4", { key: '6a902e48f73f6fd2ec319814ec743db7b340a782' }, "Display Variant"), index.h("udp-text", { key: 'acef62c4fda7db942504ecb2e884ddc7d7eb22ff', variant: "display" }, "Display Text (h1)")), index.h("div", { key: '61eadcedee69c40b819826a4e4a92e03dfd2449f' }, index.h("h4", { key: 'f590ade708fb42d017046e2118aa799eb51a5691' }, "Large Title Variant"), index.h("udp-text", { key: 'b532f6d0aaf49db7aa0a3789813d6a296d0a5401', variant: "largeTitle" }, "Large Title Text (h2)")), index.h("div", { key: 'fd6dccfbffbf3175044542481a99696573c98f55' }, index.h("h4", { key: '1b1e2a101ef12ad43b2d53c7ea95516e5a830845' }, "Title Variants"), index.h("udp-text", { key: '3240124338197c4ded60512513ba6bd6fa68686e', variant: "title1" }, "Title 1 Text (h3)"), index.h("udp-text", { key: '44dce98a19cc404762f78181483f80039e60d9ec', variant: "title2" }, "Title 2 Text (h4)"), index.h("udp-text", { key: 'abdc383cd4be36ad9eb5c040438c221e199de3ba', variant: "title3" }, "Title 3 Text (h5)")), index.h("div", { key: '41771c664381345589ea21105b290ba2b3a09404' }, index.h("h4", { key: 'd28fc88db883a181e7d2a165c68944fe322cc97b' }, "Subtitle Variants"), index.h("udp-text", { key: 'ba46a5e1064677c2f5300fd75ba8c45adf9bee99', variant: "subtitle1" }, "Subtitle 1 Text (h6, medium weight)"), index.h("udp-text", { key: '0bc952ab545b33354642e5cd9af2d83fac31cb12', variant: "subtitle2" }, "Subtitle 2 Text (h6, semibold weight)")), index.h("div", { key: '4c95eba2483b636fa3e11fd11186a69a2f4174a7' }, index.h("h4", { key: '8aabec17542a60378eebe4f92f0cbde10d5bc4b1' }, "Body Variants"), index.h("udp-text", { key: '07ac26bb90ffd8c589eeed2c4f3f3b92953e1cba', variant: "body1" }, "Body 1 Text (p) - This is the default variant. Lorem ipsum dolor sit amet, consectetur adipiscing elit."), index.h("udp-text", { key: '413f05881746ce9f46cd6556e0d796e0e9452576', variant: "body1Strong" }, "Body 1 Strong - Semibold weight for emphasis."), index.h("udp-text", { key: '45e302e95c492ec4db14f2c4bc57a67be8331731', variant: "body1Stronger" }, "Body 1 Stronger - Bold weight for strong emphasis."), index.h("udp-text", { key: '60891ea2f4bdd3140d976678a793f7f64a137863', variant: "body2" }, "Body 2 Text - Slightly larger than body1.")), index.h("div", { key: 'c2254624baf7ff5f52f035e1f077cfe23fc1d5c5' }, index.h("h4", { key: 'af7e6cc35c37420e821ec8cb900884d9429fa44e' }, "Caption Variants"), index.h("udp-text", { key: '29097b5ad8aeacf7fca44a9d701ce644f9bcb5ba', variant: "caption1" }, "Caption 1 Text (span, inline)"), index.h("br", { key: '58e4525489bd8a6daf94b1cc935347cedb612111' }), index.h("udp-text", { key: '81daeb313d62c34225e4ce29d1701800cfd3c05a', variant: "caption1Strong" }, "Caption 1 Strong (semibold)"), index.h("br", { key: 'd9b683d01870f2f11ddde6ec6aff6be7436a64f7' }), index.h("udp-text", { key: 'c0867df8e47aa0d43a84c924cafddd2051f58d3d', variant: "caption1Stronger" }, "Caption 1 Stronger (bold)"), index.h("br", { key: '99a9dbbd754d53f93a3f615876fc6c24cd3b4dfd' }), index.h("udp-text", { key: '8dddbbe824472dec44bfa4d9009c5725bbad342a', variant: "caption2" }, "Caption 2 Text (span, inline, smaller)"), index.h("br", { key: 'ea90994227bfdc4fad84e6ac12333700808a357c' }), index.h("udp-text", { key: '47084c2285fffe3f5a9de53f2db5c7b54459d2ec', variant: "caption2Strong" }, "Caption 2 Strong (semibold)")), index.h("div", { key: '59bdddec5575a63ccdbbbdaf8f70b9252755c98c' }, index.h("h4", { key: '9e0734307e09a4085c647337b4d5c173c3817b40' }, "Text Alignment"), index.h("udp-text", { key: '29aea473bff9cfee154a36744ecf0a375c0d19e2', variant: "body1", align: "start" }, "Aligned to start"), index.h("udp-text", { key: '2d87e540a75ef43e752aa1066ec94fb523c50188', variant: "body1", align: "center" }, "Centered text"), index.h("udp-text", { key: '54e3d78cf5e5fefad49775c083debd94e75ed89c', variant: "body1", align: "end" }, "Aligned to end")), index.h("div", { key: 'aa2394c29efc6d5ec11d6db2e829e68cc4cd4851' }, index.h("h4", { key: '9d2028fc32c998fffc3b1ff9011869dc77f5ead5' }, "Text Styling"), index.h("udp-text", { key: '235c1501afd71ed2dca479d19dd0fa0e55b9ef26', variant: "body1", italic: true }, "Italic text"), index.h("udp-text", { key: '28a3cdff1c88252a3fd6b44587967d1c11596fa6', variant: "body1", underline: true }, "Underlined text"), index.h("udp-text", { key: 'd9eea48e8c60c7d7744231da7ecaeac283223dc5', variant: "body1", strikethrough: true }, "Strikethrough text"), index.h("udp-text", { key: 'f3514a2f671c3edace30a6d712052237a19a0a32', variant: "body1", weight: "bold" }, "Bold text")), index.h("div", { key: '281306d725bf18e5aa11f14662feb75aad9721e0' }, index.h("h4", { key: '23f3c8e2eac16d5a9bb43fb1792963946e2be22b' }, "Custom Semantic Tags"), index.h("udp-text", { key: 'e5ef7c2a3c1355556e2a51abf1f094f26bc2e462', as: "h1" }, "text as h1 element"), index.h("udp-text", { key: 'c4f2df5862bdbbcd91cfb6a8a623c28525bd0957', variant: "caption1", as: "p" }, "Caption text as paragraph")), index.h("div", { key: '0a1ebbd5a0961885b543f12d487a5ca52cac57e0' }, index.h("h4", { key: 'b289f4567b7f99a913f4c1949de4aee1f88dbba1' }, "Font Variants"), index.h("udp-text", { key: '135e5d9d20806c7d280b0eba2108776b04aed0b2', variant: "body1", font: "base" }, "Base font (default)"), index.h("udp-text", { key: '48906e8aa6d9ea2f10efc722a3b12b1cc5951505', variant: "body1", font: "numeric" }, "Numeric font: 1234567890"), index.h("udp-text", { key: '8a79dbe8fcc8c80002c99d3e201bcb8a7279116e', variant: "body1", font: "monospace" }, "Monospace font: const x = 42;")), index.h("div", { key: 'd25677b707f4c0a49012f00d6111786167f8f5be' }, index.h("h4", { key: 'f2ecbc915ba2445b9816657572558032ef85b5c6' }, "Size Override"), index.h("udp-text", { key: '2a508d8ddf7b2c968e4e405999b23cd129cee2cc', variant: "body1", size: "200" }, "Body variant with size 200"), index.h("udp-text", { key: 'eb37e0dec4fd6d66da85f06a87a271729750fdd7', variant: "body1", size: "600" }, "Body variant with size 600"), index.h("udp-text", { key: '2462846ea539b4f1ec06e41e6c7e896967ca8d4e', variant: "body1", size: "1000" }, "Body variant with size 1000")), index.h("div", { key: '55a5b70a842b2ac38b74b3982a7d6eeae2fa29f7' }, index.h("h4", { key: '97f984363429aea12b614e740a6225a97cb438c7' }, "Lists"), index.h("udp-text", { key: 'a229c279bab6b11d969ad97276fa6ce1c4591832', variant: "body1", as: "ul" }, index.h("li", { key: 'bc878ae9b273a672ab561a858cf47013fd4c6c4f' }, "First list item"), index.h("li", { key: '24db49505571ef816c51305fdca0c3c5d8ade7bb' }, "Second list item"), index.h("li", { key: 'cb9021a8bb3c036e8fe264375271a8587c164bd3' }, "Third list item")), index.h("udp-text", { key: '01836f6efcae5a35a2ead4b59fb399c487268217', variant: "body1", as: "ol" }, index.h("li", { key: 'fc184bdf81d7cd33aee1617a4b300a254601e39b' }, "First ordered item"), index.h("li", { key: '7a03ba1729a89c51274ea683617bfa8347929d94' }, "Second ordered item"), index.h("li", { key: 'd55e0124eeeaa0dd5d2d725d004ff35436627efb' }, "Third ordered item"))))), index.h("udp-tab-panel", { key: '00aa0d4e2c042bbf12fa4eb9a745c4794954c1e6', id: "menus", activeTabId: this.currentTab }, index.h("div", { key: '811cc275049f45ab679f64998720e89e8264896d', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, index.h("div", { key: 'd6f5ca6e7afe5f1985fbdd231448c3ae663d0013' }, index.h("udp-fluent-menu", { key: 'a9d41b1041d1f2a48f06da5b92cc9c34825dfc12', items: this.nestedMenuItems, label: "Nested Menu" })), index.h("div", { key: '097ca2e38c7da71d98f048c019c55491ab695a8f' }, index.h("udp-fluent-menu", { key: '29598112299fc3de48842c32ff411d9ebd4e934b', items: this.sectionedMenuItems, label: "Sectioned Menu", endIconName: "add" })), index.h("div", { key: '0afa3ae23f102753411af589148e3abdc17d46f5' }, index.h("udp-fluent-menu", { key: '88563137aba8c16cc406090fc3c8bb417064c0f2', items: this.iconMenuItems, label: "Icons & Slots", startIconName: "grid_20_regular" }, index.h("div", { key: '9f86d8231f2ceac2b29292d8082d6a3deaa3b9ed', slot: "slot-test-start", style: { color: 'magenta', fontSize: '20px' } }, "\u2605"), index.h("span", { key: 'ffde4c595153b108773f080e8742b041c42d26a4', slot: "slot-test-end", style: {
|
|
2610
|
+
} }, index.h("span", { key: '949c3f42383aeb454af50263566939746ae02bfe' }, "Item 1"), index.h("udp-fluent-divider", { key: '32501ff8f93a48e9bcb3da217283698e421e162e', orientation: "vertical" }), index.h("span", { key: 'e59aea9c027fec6cb4fec15f5a65162f5e0555a3' }, "Item 2"), index.h("udp-fluent-divider", { key: 'b7f357dc17bf5debb609a3c5cd5532cef0859d26', orientation: "vertical", appearance: "brand" }), index.h("span", { key: 'd0a6b9254ae004e7f137dc569b653f12039d2d51' }, "Item 3"))), index.h("div", { key: 'afb0078edd8f1fa66461dbe778614ef6b409ed8d' }, index.h("h3", { key: '8065dbf16dd3114762ddbefbc443937bfd7602d9' }, "Fluent Icon Examples"), index.h("p", { key: '51044c3113f5291337d2010de72d64841028fe83' }, "Basic usage (new simplified API):"), index.h("div", { key: '8bc7c0797842640871e7d031f5a5372f1ed152a6', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: '9ee788cbb5cd10e59965f8b963c1f5ea0204d041', name: "add" }), index.h("udp-fluent-icon", { key: '8901e7b5a636b00df07065e78b17b5e7f70c923f', name: "home" }), index.h("udp-fluent-icon", { key: '6f3b282efe40abe6ea726d432a649c8296e0bda9', name: "settings" })), index.h("p", { key: '52ef93c801604ef54a0f3a1c4df63da18394e133' }, "Colored:"), index.h("div", { key: 'b1c65ab33791399c5315a477db9ef727e65038df', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: 'f5f6b380d9ee2d12ddfed4ecd3877c8abb024fbc', name: "add", variant: "filled", color: "green" }), index.h("udp-fluent-icon", { key: 'c3208182c81fc385e901caf2661480a17e18227b', name: "delete", color: "red" })), index.h("p", { key: '1f6c84b57822e26d98e217d895cb7400beea9b7f' }, "Sizes (xs=16px, sm=20px, md=24px, lg=28px):"), index.h("div", { key: '46ef5ec269427ff516300029a19dd340584dfd71', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: 'd4dd1aa55b8e5be00a30294e74114c297b68b14c', name: "home", size: "xs" }), index.h("udp-fluent-icon", { key: 'ef7a5fed6b38072b4ed7af72c54a3fd9c630f6d4', name: "home", size: "sm" }), index.h("udp-fluent-icon", { key: '703428e322d4690b431f7702b262ecb9a39d668c', name: "home", size: "md" }), index.h("udp-fluent-icon", { key: '3b0260ec7ff93e5f6fb759c3b8bf5dd2ead5f536', name: "home", size: "lg" })), index.h("p", { key: 'c6305854d59e3379ee3d1941b9426eaba1eea838' }, "Variants (regular vs filled):"), index.h("div", { key: 'a3e344ba6f6c0e2d131e8714f2fb68c5349f84b0', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, index.h("udp-fluent-icon", { key: '634d1679ff10b3fc68885ccb6e82ecbae533d9f3', name: "star", variant: "regular", size: "lg" }), index.h("udp-fluent-icon", { key: '1808ffc37a71b6ec3e21d8061aa22b8f767606c3', name: "star", variant: "filled", size: "lg", color: "gold" }))))), index.h("udp-tab-panel", { key: '9061491c7408ef518c93e4510c0342f4196b00a5', id: "text", activeTabId: this.currentTab }, index.h("div", { key: '42158fd01324be5ac6580d127e3cf517db55800b', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, index.h("h3", { key: '19955508b8ce1e974f2718b3f368ff2249563e76' }, "Text Component - All Variants"), index.h("div", { key: 'cd20ac11a81b0a18840a65fb25776ca7ba9ba8f0' }, index.h("h4", { key: 'fc43111ddef3bf567c20b4f60843144abdbc73cd' }, "Display Variant"), index.h("udp-text", { key: '815fc4167ae4cb1855db99460af931c54428c422', variant: "display" }, "Display Text (h1)")), index.h("div", { key: 'b4b2b4052cc782e20d0c7ed4bfc53661c7e8067b' }, index.h("h4", { key: '208f0f42c37d1da8798bb1abeec4d9312ed9e7e1' }, "Large Title Variant"), index.h("udp-text", { key: 'f90529216b82c76cc2fd883cc3788c01f12a1fcd', variant: "largeTitle" }, "Large Title Text (h2)")), index.h("div", { key: '5953ab7ce98fc9ede62e35266b58a7fefc055531' }, index.h("h4", { key: '6f89ce02716c6f55724907fb150a2fed11d0da1b' }, "Title Variants"), index.h("udp-text", { key: '6becaa1002625599a274c54fef2a8d7392836aaf', variant: "title1" }, "Title 1 Text (h3)"), index.h("udp-text", { key: '26107029e3ff5f2f3324080cfcbc4f927f7cab17', variant: "title2" }, "Title 2 Text (h4)"), index.h("udp-text", { key: '8efa0ccb5fe059e835f1249dcad355921a5d7d64', variant: "title3" }, "Title 3 Text (h5)")), index.h("div", { key: '82102e3003627b38457b6080657f0d1df1bf6d40' }, index.h("h4", { key: 'ff3e79501db293156d8cf8df92d27c2acd4d657b' }, "Subtitle Variants"), index.h("udp-text", { key: '174c06c8299b92577a434ffb93f0944cdcbcc8a7', variant: "subtitle1" }, "Subtitle 1 Text (h6, medium weight)"), index.h("udp-text", { key: '7de1a0ca543e14f9eef0856750c5cb3b6b09bd24', variant: "subtitle2" }, "Subtitle 2 Text (h6, semibold weight)")), index.h("div", { key: '39fe2b088383f16fa2af20ea26fd2f67af619176' }, index.h("h4", { key: '472e5693b40fec8fae2dd5b75ab59ac2f8fe7e95' }, "Body Variants"), index.h("udp-text", { key: '2aee779b847fea987a9cd08035c240ceed7d85be', variant: "body1" }, "Body 1 Text (p) - This is the default variant. Lorem ipsum dolor sit amet, consectetur adipiscing elit."), index.h("udp-text", { key: 'a2729ead635e58a09332ed8e11e7c6aa057b6d8c', variant: "body1Strong" }, "Body 1 Strong - Semibold weight for emphasis."), index.h("udp-text", { key: 'cbadb54e7c02a661dffa6eec403bc30978bf73e8', variant: "body1Stronger" }, "Body 1 Stronger - Bold weight for strong emphasis."), index.h("udp-text", { key: 'df56890ce3b82fbaf497ad094cf86a3a8b7771e0', variant: "body2" }, "Body 2 Text - Slightly larger than body1.")), index.h("div", { key: '4d3e11a28bc6981e5d1438d4aff3f6ef570af346' }, index.h("h4", { key: 'e55f6012ac4b09ddf2a961768e6c3326c719f409' }, "Caption Variants"), index.h("udp-text", { key: '101f698517f16e40f1bc5a9426d3d595ed6e0a9d', variant: "caption1" }, "Caption 1 Text (span, inline)"), index.h("br", { key: 'c82297bb0390e94c31e560a7b6435504ff25abe9' }), index.h("udp-text", { key: '892f817148acb710d89167bb7e86a447993f6ee6', variant: "caption1Strong" }, "Caption 1 Strong (semibold)"), index.h("br", { key: '49cc7284229bbe1bc365188e358e3835fbd38cee' }), index.h("udp-text", { key: '76414d1d212289c51723a55d97a5d3da6668112e', variant: "caption1Stronger" }, "Caption 1 Stronger (bold)"), index.h("br", { key: 'f2d4edd51aceba3c1b5797c0df6c44c73130614c' }), index.h("udp-text", { key: '9b87b6b4b833a6b70fca0d0391b1366a879b0b6f', variant: "caption2" }, "Caption 2 Text (span, inline, smaller)"), index.h("br", { key: '75910dcc73dae664d7f82ee2ffc92c8c86adf812' }), index.h("udp-text", { key: '4ac1b89267ba36e4b85b0479a68b979523e51e1a', variant: "caption2Strong" }, "Caption 2 Strong (semibold)")), index.h("div", { key: '33d91d6bc2df8df1cdafa8708cb69eae03f5d680' }, index.h("h4", { key: '00cfc23ea8e5032482e0d659d47f876e28f5f014' }, "Text Alignment"), index.h("udp-text", { key: '52850e1292d7986ca7161904bc09135d453d9c20', variant: "body1", align: "start" }, "Aligned to start"), index.h("udp-text", { key: 'c41f33e30c168e4cb5f802753605c94b410481d2', variant: "body1", align: "center" }, "Centered text"), index.h("udp-text", { key: 'b7c0fabbf8587e0ab2f73d827bc3f829b2147576', variant: "body1", align: "end" }, "Aligned to end")), index.h("div", { key: '703ee79f1eaae0231ac61c266c615f5ea5fec6d5' }, index.h("h4", { key: '1054bde800cf17649dbecb1c81a879e0b697e335' }, "Text Styling"), index.h("udp-text", { key: '7821df898438bf0702d039787ad00b0be9eca6aa', variant: "body1", italic: true }, "Italic text"), index.h("udp-text", { key: '3bc080c0ee2267c0c1339136e0020cbd91571b17', variant: "body1", underline: true }, "Underlined text"), index.h("udp-text", { key: '4caebcfd35cc80f55158258daf79aa407633fc4a', variant: "body1", strikethrough: true }, "Strikethrough text"), index.h("udp-text", { key: '9e7073072d1d5680d7d388215d0ee1102cad78f6', variant: "body1", weight: "bold" }, "Bold text")), index.h("div", { key: '77d272c771c34dba5f6f99fb7ee720d74c58c743' }, index.h("h4", { key: '17ece7137fe4f964d94e3c483fb84ca4d7f32ded' }, "Custom Semantic Tags"), index.h("udp-text", { key: '39755ecf77e42c99174074ae7b4eab2fe751177b', as: "h1" }, "text as h1 element"), index.h("udp-text", { key: '673b2f4bff5af8c2c0c56845805bf68dbda8b956', variant: "caption1", as: "p" }, "Caption text as paragraph")), index.h("div", { key: 'e8323a13cf76eda241134f81f886459d3ad01d6e' }, index.h("h4", { key: 'd9ab19fbfe1098b9fca8a08ddfa26753548eaa2b' }, "Font Variants"), index.h("udp-text", { key: 'e8664100b4ae37e4e9e69af3778c0bf45d0fbafc', variant: "body1", font: "base" }, "Base font (default)"), index.h("udp-text", { key: '38e11a31a0d8bbf35264aa4861fc4afac36f2e8e', variant: "body1", font: "numeric" }, "Numeric font: 1234567890"), index.h("udp-text", { key: '52a7644e31499d395237032bf032f9ab6481977e', variant: "body1", font: "monospace" }, "Monospace font: const x = 42;")), index.h("div", { key: 'cdc154b83212b95e06c8ea2de0ba37154e1dabe7' }, index.h("h4", { key: 'd44a775577d89517f846c64f0feb89f3c2257e75' }, "Size Override"), index.h("udp-text", { key: '575308b06fdf994e4b7449fa3f5971d821a58d20', variant: "body1", size: "200" }, "Body variant with size 200"), index.h("udp-text", { key: 'e596a8db486ef37988b2f2f51a6838faba14dc5d', variant: "body1", size: "600" }, "Body variant with size 600"), index.h("udp-text", { key: '65e1308031cdebe08a72f7793e87fc9906de4690', variant: "body1", size: "1000" }, "Body variant with size 1000")), index.h("div", { key: 'b83b0c0d342a0840bd810dd64cac688aa7b88160' }, index.h("h4", { key: '0be4f9b3587be6d6fcc2245a0f15bb6db5d3da4d' }, "Lists"), index.h("udp-text", { key: 'b14c6454f28ce670231b6e1844ed3be18d9f453b', variant: "body1", as: "ul" }, index.h("li", { key: '43d751fe5a10ec5f47fa4c5dc353b16c5255d86c' }, "First list item"), index.h("li", { key: 'f54de0ea90e30bda8134965448c15fed9d7c2d4c' }, "Second list item"), index.h("li", { key: '06cc15e35287b6974cb963c3e59e1ede8e52f30d' }, "Third list item")), index.h("udp-text", { key: 'f2178019b003d4567ae6b093f323ad8c190f57f3', variant: "body1", as: "ol" }, index.h("li", { key: '7c0b27016a2e2e8c100a4c2c6e2adf9e7b5994dc' }, "First ordered item"), index.h("li", { key: '4157bc9ebebde329fe1a819f79646dda4646c189' }, "Second ordered item"), index.h("li", { key: 'b5bd89272c56938cb2402ff4bdafd57939a399bb' }, "Third ordered item"))))), index.h("udp-tab-panel", { key: 'e09ec247aee6bbc0c14af4b2b88a3748f282635e', id: "menus", activeTabId: this.currentTab }, index.h("div", { key: '528334b1baaf0100c2e802bd3f68a454a81af316', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, index.h("div", { key: '38b76ef11eba3a3df0e85f9079b5506f75b0acf4' }, index.h("udp-fluent-menu", { key: '1768f62fa29af9d8ca8ff6a4ea3231ecd6068b2d', items: this.nestedMenuItems, label: "Nested Menu" })), index.h("div", { key: 'd4f4c26e153846cc898a85c9bfe67eb749a8c1e8' }, index.h("udp-fluent-menu", { key: 'ec8fe2cfe87e2e07873915c8a9dacf75597fb72d', items: this.sectionedMenuItems, label: "Sectioned Menu", endIconName: "add" })), index.h("div", { key: 'bee5317fe4aa275a5dc99d2657d68da2aef53034' }, index.h("udp-fluent-menu", { key: '8785cdb3add784ad2914ea3cbe33bee14de9c7ac', items: this.iconMenuItems, label: "Icons & Slots", startIconName: "grid_20_regular" }, index.h("div", { key: 'db4b00a2e2ca38188b624bbc1057c3c1c8e26a48', slot: "slot-test-start", style: { color: 'magenta', fontSize: '20px' } }, "\u2605"), index.h("span", { key: 'd8da4b6bdd4c55ff0d5868e1dac87d588046dc96', slot: "slot-test-end", style: {
|
|
2571
2611
|
backgroundColor: 'red',
|
|
2572
2612
|
color: 'white',
|
|
2573
2613
|
borderRadius: '4px',
|
|
2574
2614
|
padding: '2px 6px',
|
|
2575
2615
|
fontSize: '10px',
|
|
2576
|
-
} }, "NEW"), index.h("span", { key: '
|
|
2616
|
+
} }, "NEW"), index.h("span", { key: 'fe2933edadf9522cbeb3f82b8d9a44557bfdf50f', slot: "end-slot-item-end", style: { color: 'magenta', fontSize: '12px' } }, "Custom"))), index.h("div", { key: 'eeb74aef44dccdf1f150a27aa700d80a9d5df277', style: {
|
|
2577
2617
|
display: 'flex',
|
|
2578
2618
|
justifyContent: 'flex-end',
|
|
2579
2619
|
border: '1px dashed #ccc',
|
|
2580
2620
|
padding: '1rem',
|
|
2581
|
-
} }, index.h("span", { key: '
|
|
2621
|
+
} }, index.h("span", { key: 'a5bd09fbb99708406bb2e8e5089abc1c3f775b7b', style: { marginRight: 'auto' } }, "Menu Overflow Test (far right):"), index.h("udp-tooltip", { key: 'ad2726ab98706cf206102bbd2015da142906f64d', positioning: "before", content: "More Options" }, index.h("udp-fluent-menu", { key: 'ebd2f0e804f6dfe0ae8a4c2de4f1f54b5de746a4', items: this.radioMenuItems, onCheckedChange: e => console.log('Radio item changed:', e.detail), label: "Radio Groups", buttonType: "icon", endIconName: "more_horizontal_20_regular", shape: "circular", appearance: "transparent", openOnContext: true }))), index.h("div", { key: 'ad74c9b25c3cbb2205120c0140c520008c8467cc' }, index.h("h3", { key: 'ba375eaddee10a6e45af3800be15f72349808d36' }, "New Radio Group Example"), index.h("udp-fluent-menu", { key: '00bc97736e57296a4324b616dc46febbb0269a68', items: this.newRadioGroupItems, label: "Select Option", onCheckedChange: e => console.log('New Radio Group Change:', e.detail) })), index.h("div", { key: '7e5a52bb673728dbfca40aec7dc932605269d0d4', style: { padding: '1rem', border: '1px dashed #ccc' } }, index.h("h3", { key: '8f44971154efa9b004f15a34d854205d98babfdf' }, "Menu at Bottom (Testing onClick handlers)"), index.h("udp-fluent-menu", { key: '5561e2582c59b337c5519bd9aa65d7c5c68d84a3', items: this.checkboxMenuItems, onCheckedChange: e => console.log('Checked changed:', e.detail), label: "Checkbox Groups", buttonType: "split", onPrimaryClick: () => console.log('Primary clicked'), shape: "circular" }, index.h("udp-icon", { key: '8b1486b295de9e7685f42d4eace70ec408294201', slot: "start", iconName: "add" }))))), index.h("udp-tab-panel", { key: 'b961a0a978e6d7d40b1837e91087b6061dc42af0', id: "grids", activeTabId: this.currentTab }, index.h("udp-lazy-loader", { key: '207ddc9a9f3be697c933bf9cc6c6eaa37c21ab5c', if: this.currentTab === 'grids', content: () => (index.h("client-side-grid", { columnDefs: [
|
|
2582
2622
|
{ field: 'make' },
|
|
2583
2623
|
{ field: 'model' },
|
|
2584
2624
|
{ field: 'price' },
|
|
@@ -2589,7 +2629,7 @@ const TestComponentsPage = class {
|
|
|
2589
2629
|
{ make: 'Toyota', model: 'Celica', price: 35000 },
|
|
2590
2630
|
{ make: 'Ford', model: 'Mondeo', price: 32000 },
|
|
2591
2631
|
{ make: 'Porsche', model: 'Boxster', price: 72000 },
|
|
2592
|
-
] })) })), index.h("udp-tab-panel", { key: '
|
|
2632
|
+
] })) })), index.h("udp-tab-panel", { key: '611f7081c5f5a5e944bd3d61b2b0f7783090c7f9', id: "dialogs", activeTabId: this.currentTab }, index.h("div", { key: '98e221d954d163cbb8f9e1daee827936088f1192' }, index.h("udp-fluent-button", { key: '8ea4674f753f07f7003bb54ede8beb21fba87221', onClick: () => (this.dialogOpen = true) }, "Open Dialog"), index.h("udp-fluent-dialog", { key: 'fd736dbb071b2dbbacf85a7710ffacdebc662afc', open: this.dialogOpen, dialogTitle: "Example Dialog", onDialogClose: () => (this.dialogOpen = false) }, index.h("div", { key: '81228808f36ed196e99c3dc42cb4fb2dc630ec41' }, "This is a simple dialog example."), index.h("udp-fluent-button", { key: '9d97aa4e3e028b03642953654d844dd9d6c74c46', slot: "action", onClick: () => (this.dialogOpen = false) }, "Custom Close"), index.h("udp-fluent-button", { key: 'adfd1d446af0eb2598c1df104a2da110f920e40d', appearance: "primary", slot: "action" }, "Confirm")))), index.h("udp-tab-panel", { key: 'b9fb3c07db15a11f001351c324949ede16f207b2', id: "cards", activeTabId: this.currentTab }, index.h("div", { key: '6d1818cad04a021d24a118847515f7aa319726f2', style: { display: 'flex', flexDirection: 'column', gap: '2rem', padding: '1rem' } }, index.h("h3", { key: '9d156fb3b4b73423b94673335938d84e0cb7c211' }, "Cards"), index.h("h4", { key: 'a2ffc49ed0848d086ca9e2e2b38bdb5ce176300f' }, "Basic & Outlined (Default)"), index.h("div", { key: '2ef335dd7d90637cb6c8fc05b7301f42cfde1a70', style: { display: 'flex', gap: '1rem', flexWrap: 'wrap' } }, index.h("udp-fluent-card", { key: '70829bee58c2ec8285a44a444d53fbce8751b376', appearance: "filled" }, index.h("div", { key: 'dfcb7b7f222eaf8e77f245b51c94255130dd9012', slot: "header" }, index.h("h3", { key: 'f6b00b7fa2ec7a5891c9a7861181fae72a8c0173', style: { margin: '0' } }, "Basic Card"), index.h("span", { key: 'c8d30963ccf89f556d606123649c356e7c61425a', style: { fontSize: '12px', color: 'var(--colorNeutralForeground2)' } }, "This is a basic outlined card")), index.h("span", { key: 'd05b6fe416a7c7357becd7e25c881c25c922afbd' }, "Card content goes here. The card handles its own slots for header, preview, and footer."))), index.h("h4", { key: '6d2e56c8b2d5767810f31f3a9d89e6060cabd8bc' }, "Elevated & Media"), index.h("div", { key: '5ba088c7b7269a07d8b3eab80de07d25efdd35a5', style: { display: 'flex', gap: '1rem', flexWrap: 'wrap' } }, index.h("udp-fluent-card", { key: 'aeb986059cf19e9e6d1123938f9bf64da08019cb', appearance: "filled", interactive: true, label: "With shadow & interactive", subtitle: "This card uses the filled appearance and has a preview image." }, index.h("img", { key: '9801355d1a8068a994c3452a7f9a26f91ee9d488', slot: "preview", src: "https://images.unsplash.com/photo-1557683316-973673baf926?w=600&h=400&fit=crop", alt: "Abstract gradient preview" }), index.h("span", { key: '335ce1eab18d86a827cecdef09299272b73c1b9d' }, "Card content"), index.h("div", { key: '51d47a4d29bd753e77f190a338edd12c78ae4548', slot: "footer", style: { display: 'flex', gap: '8px' } }, index.h("udp-fluent-button", { key: '1641ee437373db6d6d538097c7db6f89837db400', size: "small" }, "Action 1"), index.h("udp-fluent-button", { key: 'bb33a0b8c4a57490ef6398bf2cda70af2a67f789', size: "small", appearance: "outline" }, "Action 2"))), index.h("udp-fluent-card", { key: 'ba1f891b2aa1abf587f77c8f76d037f7cb0ee5f0', appearance: "subtle", label: "Prop provided title", subtitle: "Prop provided subtitle" }, index.h("span", { key: 'ad929628071f1322c5618228cc91f04960e70860' }, "This card uses the subtle appearance. Good for lists or less emphasized content."), index.h("div", { key: '12eff546d98f7a685bf418bf1c8d261e268d12ad', slot: "footer" }, index.h("udp-fluent-button", { key: '38d4bdec852840c087c23791896a098997c2ed04', appearance: "primary" }, "Dismiss"))), index.h("udp-fluent-card", { key: '38034b70915f98fe91c225b6a064669e04c8f655', appearance: "outline", label: "Card with Action", subtitle: "Header action example", width: "320px" }, index.h("udp-fluent-icon-button", { key: 'b594a04bcc7488d4e88b7f4c22983b2be5f56159', slot: "header-action", iconName: "more_horizontal_20_regular", appearance: "subtle", ariaLabel: "More options", onClick: () => console.log('More clicked') }), index.h("span", { key: '8b9c1fbf27a737f16f1090e8acbca4d04e7b060b' }, "This card demonstrates the header-action slot with an icon button.")), index.h("udp-fluent-card", { key: 'c9f7c868be35f782de8dcf063990a59f17dd7b00', appearance: "muted" }, index.h("h4", { key: '1a85d7b49b40edae1a63ead9bd953f064a174111', slot: "header", style: { margin: '0' } }, "Muted Card"), index.h("span", { key: 'fa980e6c65a542b828db0aee4c6186534c167bb9' }, "Flat with subtle grey shading."))), index.h("h4", { key: 'f4df5b5d26cc98354243b5478cc95dfba2e2c2ca' }, "Horizontal & Sized"), index.h("div", { key: '4f949b219111544edf3d675cb2711d11147b6c58', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, index.h("udp-fluent-card", { key: '0c0e1a5ff93e8cd224c471eeb47e7ef317e9bc47', orientation: "horizontal", width: "400px" }, index.h("div", { key: '6ce20fb5151344423e3da874db695454b1390bd0', slot: "preview", style: {
|
|
2593
2633
|
width: '80px',
|
|
2594
2634
|
height: '100%',
|
|
2595
2635
|
backgroundColor: 'var(--colorNeutralBackground3)',
|
|
@@ -2597,7 +2637,7 @@ const TestComponentsPage = class {
|
|
|
2597
2637
|
alignItems: 'center',
|
|
2598
2638
|
justifyContent: 'center',
|
|
2599
2639
|
fontSize: '24px',
|
|
2600
|
-
} }, "\uD83D\uDCF7"), index.h("div", { key: '
|
|
2640
|
+
} }, "\uD83D\uDCF7"), index.h("div", { key: '51b50fb75f90fadd2837918012372dbfd6ab14d1', style: { display: 'flex', flexDirection: 'column', width: '100%' } }, index.h("div", { key: 'fdf7b30429d6a89ccc4c1bd0ac56bac95185e718', slot: "header" }, index.h("h4", { key: '6e157a9fcd5a0ec43a3094b6aa0db68e6f753929', style: { margin: '0' } }, "Horizontal Card")), index.h("span", { key: '14d33efeeacb3578cf14c28b18c07c694ee6cd42' }, "Fixed 400px width."))), index.h("udp-fluent-card", { key: 'd7950aa84eaa206c74ffa019c0a3e3e07a37cf5e', width: "300px", appearance: "filled" }, index.h("div", { key: '69a0f6c5261327d8416f3ea2272e5b7fa57d6c62', slot: "header", style: { display: 'flex', justifyContent: 'space-between' } }, index.h("span", { key: 'b4d4436867f934db8f56afe3ec858017d8303f72', style: { fontWeight: '600' } }, "Fixed Width User"), index.h("udp-fluent-icon", { key: 'c9037b4b1eae9c93e6b402c03a6c0d3cc32eab01', name: "person_20_regular" })), index.h("span", { key: 'f9e486ae96bd6e1bfc09e418125128d33966d8a0' }, "Fixed width (300px), auto height. Reduced padding is no longer controlled by a prop."))), index.h("h4", { key: '97414297ba0b8d6b5be4e784c36a2ccc92b86d67' }, "Complex Interaction"), index.h("div", { key: 'e3809ba88425145900456a1c2067cebb3ee0145d', style: { display: 'flex', gap: '1rem', flexWrap: 'wrap' } }, index.h("udp-fluent-card", { key: '6078b9865ca44f56e4f8d00b71f566e20cdef4d9', interactive: true, appearance: "outline", onClick: () => console.log('Card clicked'), style: { width: '280px' }, label: "John Doe", subtitle: "Software Engineer" }, index.h("div", { key: '2d6742805d89224d04c9c628056fee2e802dd464', style: {
|
|
2601
2641
|
width: '32px',
|
|
2602
2642
|
height: '32px',
|
|
2603
2643
|
borderRadius: '50%',
|
|
@@ -2606,39 +2646,39 @@ const TestComponentsPage = class {
|
|
|
2606
2646
|
display: 'flex',
|
|
2607
2647
|
alignItems: 'center',
|
|
2608
2648
|
justifyContent: 'center',
|
|
2609
|
-
}, slot: "header-start" }, "JD"), index.h("udp-fluent-icon-button", { key: '
|
|
2649
|
+
}, slot: "header-start" }, "JD"), index.h("udp-fluent-icon-button", { key: '4db66fa4e7495b02e9eb344746dca88cf08c4006', iconName: "more", slot: "header-action", shape: "circular" }), index.h("udp-fluent-icon-button", { key: '00ccae5c21a5e63a9a8be2d3942b5cc83c7c132a', iconName: "dismiss", slot: "header-action", shape: "circular" }), index.h("div", { key: '1f41bbf20173c61b387cf9c841c5afb0c2aab509' }, "(div) Responsible for maintaining the core design system and ensuring accessibility compliance across all products."), index.h("udp-typography", { key: '43cd1d08d5ff0d181a72360813e15ec0ab3c96f1', variant: "body1" }, "(body1) Responsible for maintaining the core design system and ensuring accessibility compliance across all products."), index.h("udp-typography", { key: '0693a1dd4cc8e9f801453c5567c3765fe49b1034', variant: "body2" }, "(body2) Responsible for maintaining the core design system and ensuring accessibility compliance across all products."), index.h("udp-fluent-button", { key: '78e4b10feb952643aa1d9e9b5cfc8870e93f0c92', slot: "footer", appearance: "primary", size: "small", onClick: () => console.log('Profile clicked') }, "View Profile"), index.h("udp-fluent-button", { key: '1b55a80c412ace704016945d7e7754a2c30ce02c', slot: "footer", appearance: "outline", size: "small", onClick: () => console.log('Help clicked') }, "Help Center"))), index.h("h4", { key: '92695342613fa80150a47949a9decc5a9de768ff' }, "Flex Layout (Grid System)"), index.h("div", { key: '74b2cf35e7d4273c01a51b9a0434be304c499b33', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, index.h("div", { key: '7ccce1e2ec6cffdb14f5da5403bd02a833799695', style: { display: 'flex', gap: '1rem' } }, index.h("div", { key: 'c54f057f09461122bf8df32ec41c30fa0ce3710e', style: { flex: '1' } }, index.h("udp-fluent-card", { key: '77a8cff7730a3406e6a9310fad104e0c44c45d02', width: "100%" }, index.h("div", { key: 'a624d19751e9080670e2a58c1550388f0b232c83', slot: "header" }, index.h("h3", { key: '3de162c68af8128fd9bf9eedf5d1f31652c29624' }, "Card 1 (50%)")), index.h("span", { key: 'eeb79fb1288fb75ae095a92cc3c4baee9753a4a3' }, "Flex item 1"))), index.h("div", { key: '1ea1bf23f48b77b49a454878e056bc0c2e6cee4a', style: { flex: '1' } }, index.h("udp-fluent-card", { key: '78def1ef68ea9d2cb28d6cbb03b068586ed9bde8', width: "100%" }, index.h("div", { key: '37c24dbe2b807fb8d8c342480e59fac7380b9ac8', slot: "header" }, index.h("h3", { key: '4451a1fb49bdf86da969dc7e36ec36fd9d052d4e' }, "Card 2 (50%)")), index.h("span", { key: '6f7555032ebb12c868940dbbf72d0eb9ef1580de' }, "Flex item 2")))), index.h("div", { key: 'af0b1bfa1411a7ac4125ece9864fed2156044274', style: { display: 'flex', gap: '1rem' } }, index.h("div", { key: '1084f82b5f6c3a1da18ebc04523400adc5ed9a3c', style: { flex: '1' } }, index.h("udp-fluent-card", { key: '30bdd8486e8e8f1fd644a8d2fa8506d86d2301e6', width: "100%" }, index.h("div", { key: '4ca3b4efa5c5dea6a9853aa9445dd0f10e02d27e', slot: "header" }, index.h("h3", { key: '5b98a820eaafbc574616dc8f914a945dc617eb32' }, "Card 3 (33%)")), index.h("span", { key: 'bbd4769778ecad1f73ec23dfcbba236d9a615980' }, "Flex item 3"))), index.h("div", { key: 'c14f814fd247ef8aa57c0326d2fb03a7a57c98d1', style: { flex: '1' } }, index.h("udp-fluent-card", { key: '146de00db7e14b8f193eb17c5c98737bba778d32', width: "100%" }, index.h("div", { key: '117354ab3b00e49d78b271675786564d4635b7af', slot: "header" }, index.h("h3", { key: '5b4898b6ff436bc0bce2fe5c3ec28c84623596c7' }, "Card 4 (33%)")), index.h("span", { key: '9c6bcb4fa1cbf6cde21dcfcd5f90f176cf2f4748' }, "Flex item 4"))), index.h("div", { key: '84538a75637a02ce2437f00947064f892cf7c88b', style: { flex: '1' } }, index.h("udp-fluent-card", { key: '56b8204956fbcf209987ff16de132ca2528ea508', width: "100%" }, index.h("div", { key: 'fe1e8148e4b8665c6d71ae0718347853232418a3', slot: "header" }, index.h("h3", { key: 'f690fd59b8dc4be8b1ffcc008d2a0dd6bd42bb16' }, "Card 5 (33%)")), index.h("span", { key: '932bda158a38e14dfe48811d46df57309f8991c0' }, "Flex item 5"))))))), index.h("udp-tab-panel", { key: '88ed75229aabbcaa6a1022887ef52dbc19c91e1e', id: "chips", activeTabId: this.currentTab }, index.h("div", { key: '8af5fcc4bdc5d5eae25eb3d1c1d43cb621c98dc0', style: { padding: '24px', display: 'flex', flexDirection: 'column', gap: '24px' } }, index.h("h4", { key: '7e2cebdf3abb636484b8c2c1903f5f1d80e815b4' }, "Filled Chips"), index.h("div", { key: '633e81f8161f15130a99fc9cfaebdbb71e291261', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, index.h("udp-chip", { key: 'f393337049dfd1c98f6ded1481b521761835b3f8', label: "Basic Chip", variant: "filled", color: "gray" }), index.h("udp-chip", { key: 'f6c85f01147ced201eed3d4594c8249e0fd3d5d8', label: "Primary", variant: "filled", color: "primary" }), index.h("udp-chip", { key: '53222a89e6f6b31120c478b6fd9c35ed73a90bb2', label: "Success", variant: "filled", color: "success" }), index.h("udp-chip", { key: 'f6c47b7cfa85bc3c612e3414bca5bff185e9982f', label: "Warning", variant: "filled", color: "warning" }), index.h("udp-chip", { key: '8380869d2869997550cd58f60e05d03bac09a7d9', label: "Error", variant: "filled", color: "error" })), index.h("h4", { key: 'f1239966cc07bf73587bbbdb23626ba04381c44f' }, "Outlined Chips"), index.h("div", { key: '6685b6c1529075c94b5e19374eb0bd01fd7f4981', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, index.h("udp-chip", { key: '1ee60acbab2184408cd382da4889bef128e826bd', label: "Basic Chip", variant: "outlined", color: "gray" }), index.h("udp-chip", { key: 'f237d938668b58d3ff944593aff68733b25207c3', label: "Primary", variant: "outlined", color: "primary" }), index.h("udp-chip", { key: '00f74d9971532b06192c01f8b517fe8680d69848', label: "Success", variant: "outlined", color: "success" }), index.h("udp-chip", { key: '797e8dcb81f81c894156e21524a3c6f1e3f99d0a', label: "Warning", variant: "outlined", color: "warning" }), index.h("udp-chip", { key: 'f64ca7451d70878bb7378b47f7c9ac12014087ec', label: "Error", variant: "outlined", color: "error" })), index.h("h4", { key: 'a9756e7283d6a3a4074ebc4c4669ca2d7e04a2c9' }, "With Icons & Deletable"), index.h("div", { key: 'ef6a7ccb28fde281283867185e53e811706a5857', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, index.h("udp-chip", { key: 'dba7238bd1f43866f95a44ee3577c0acbeffe1b4', label: "Person", startIcon: "person_20_regular", variant: "filled", color: "primary" }), index.h("udp-chip", { key: '93a0048a47e0a137dc236552f9ad2f029ac348d5', label: "Deletable", variant: "filled", color: "gray", deleteButton: true, onChipDelete: e => console.log('Delete:', e.detail) })), index.h("h4", { key: '254c629d89e9ef1a3912868c5c0e7b2c48f22788' }, "Sizes"), index.h("div", { key: '8207bab587da5149b8c96ce2a2d1157f8446d637', style: { display: 'flex', gap: '8px', flexWrap: 'wrap', alignItems: 'center' } }, index.h("udp-chip", { key: '8f44326a0fbe430ac27f7b72c85cfc29db68da8c', label: "Medium (Default)", size: "medium" }), index.h("udp-chip", { key: '3e057b9f323a86b73b20c513a552ac30d1e0f887', label: "Small", size: "small" })))), index.h("udp-tab-panel", { key: '9f89a0da047922c50cf76d799d1625a2f949dfa2', id: "forms", activeTabId: this.currentTab }, index.h("div", { key: 'd213943d5d985c7fdf8a1c6f9883d2a5550ac97e', style: {
|
|
2610
2650
|
padding: '24px',
|
|
2611
2651
|
display: 'flex',
|
|
2612
2652
|
flexDirection: 'column',
|
|
2613
2653
|
gap: '40px',
|
|
2614
|
-
} }, index.h("div", { key: '
|
|
2654
|
+
} }, index.h("div", { key: 'b80261a9bf86cdf12849ad404d4c3197f67c8d5c' }, index.h("h3", { key: 'f3a79b73737877d76f2694d8cfca3ab3c2a07183' }, "1. Registry Pattern (Sidesheet)"), index.h("p", { key: 'de7aae22952fe113d571d75a9a7f750e33339cfb' }, "Button in drawer footer auto-connects to form via ", index.h("code", { key: 'f8ab264a55aba2a386a6e78589470750ee2070b6' }, "formId"), "."), index.h("div", { key: '337d7bbab8bb985bbd52b8f755c744145fcd0873', style: { marginTop: '16px' } }, index.h("udp-fluent-button", { key: '2f097e68139e611cf630ed252f84d324102d20f9', appearance: "primary", onClick: () => (this.formDrawerOpen = true) }, "Open Registry Form Drawer"))), index.h("hr", { key: '7d5568120b9d60a8557dcedbb5ca568c679bf8d7', style: { width: '100%', borderColor: '#eee' } }), index.h("div", { key: 'df0cd61b04418f570c065db4f0ba78c28a265417' }, index.h("h3", { key: '7508a1d1b3b1efd24e8448e38fde36fa5d712dc1' }, "2. Legacy Manual Wiring (Sidesheet)"), index.h("p", { key: 'dc6e333bfb52cd3d3c0f9b3d0a7b9ea74886e700' }, "Parent component manually listens to ", index.h("code", { key: '95dc4b57526933ce8a4f6231ffc1a3c8567a15e5' }, "formReady"), ", tracks validity state, and calls ", index.h("code", { key: '5f1c2b8eaff919de930c94ad5cf221ab78d700dd' }, "submit()"), "."), index.h("div", { key: 'f38c9d920d0f6874f3be0490adb9bc944c7a13df', style: { marginTop: '16px' } }, index.h("udp-fluent-button", { key: '24ef0443a16a240122f68b50cf41efd8b388bd36', appearance: "outline", onClick: () => (this.manualDrawerOpen = true) }, "Open Manual Form Drawer"))), index.h("hr", { key: 'b1dfe7a753fd8df429888eb29dad1b6a424d37bd', style: { width: '100%', borderColor: '#eee' } }), index.h("div", { key: '18e9d2eedc2a2586f20679d9d351583f8294b4fc' }, index.h("h3", { key: '50aec36cdac2d136692a737986b0b35208518c1a' }, "3. Inline Form"), index.h("p", { key: 'fc4801b61a1a0136f70e5aa720e2a1c2d50b7e9b' }, "Form embedded directly in the page. Uses registry pattern for the external submit button."), index.h("div", { key: '6ad1d54a4cb971d665b4af6a3bc230635730aa7b', style: { border: '1px solid #e0e0e0', padding: '24px', borderRadius: '8px' } }, index.h("div", { key: 'd9d0a17af517f258c74eb439b479079a19e7c9df', style: { marginTop: '16px', display: 'flex', justifyContent: 'flex-end' } }, index.h("udp-fluent-button", { key: 'e34b1f0c704b93fbf67fd8bed3de2ad6fdb5bf48', appearance: "primary", form: "inline-form", type: "reset" }, "Inline Reset")))))), index.h("udp-tab-panel", { key: '9b38be482e3a8faa5c1a81f5ca7d83336c9caebd', id: "calendar", activeTabId: this.currentTab }, index.h("div", { key: 'f5b1b4344fd1737af514dd40968b21bff35121a4', style: {
|
|
2615
2655
|
padding: '24px',
|
|
2616
2656
|
display: 'flex',
|
|
2617
2657
|
flexDirection: 'column',
|
|
2618
2658
|
gap: '32px',
|
|
2619
|
-
} }, index.h("div", { key: '
|
|
2659
|
+
} }, index.h("div", { key: '6988993fd53d16ceba30defe24935fe8058bb3b0' }, index.h("h3", { key: '871db8c584562bf096ac93f0a0e048ce5ef4bc43' }, "Date Range Selector (Fluent2 Styled)"), index.h("p", { key: 'f048857420af064c334122db02071be519372660', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '8px' } }, "Calendar component with month/year view navigation. Click the header to switch views.")), index.h("div", { key: 'a3e5190d29006a28b204f7ef56fcff976fe9edf3', style: { display: 'flex', gap: '48px', flexWrap: 'wrap' } }, index.h("div", { key: 'e904a9ca74a364727106bbaca92933e1d83d4543' }, index.h("h4", { key: '2dbc91365b6f27b163dd8cf4e768c17ac5f593d8', style: { marginBottom: '8px' } }, "Single Date (sm)"), index.h("udp-date-range-selector", { key: '69d2f581d4fbba74fc40f5483cf58e3f623427c6', variant: "single", monthsToDisplay: 1, size: "sm", onChange: (e) => (this.singleDateValue = e.detail) }), index.h("p", { key: '4f6a4e436a9d49c879ec40c5fedb74b4a4737957', style: {
|
|
2620
2660
|
fontSize: '12px',
|
|
2621
2661
|
color: 'var(--colorNeutralForeground3)',
|
|
2622
2662
|
marginTop: '8px',
|
|
2623
|
-
} }, "Value: ", index.h("code", { key: '
|
|
2663
|
+
} }, "Value: ", index.h("code", { key: '96b9e90d465820739f85e314b91895b5ed147c7b' }, this.singleDateValue || '(none)'))), index.h("div", { key: '78670ee359abf290ba8d94b58fe71c60aad1ad1b' }, index.h("h4", { key: '45b6ade6c4808b011184e0ff34433233d66abba6', style: { marginBottom: '8px' } }, "Multi-Select (md)"), index.h("udp-date-range-selector", { key: '5d4ae298f2bb6f7d9defed5716b96c7c67015af7', variant: "multi", monthsToDisplay: 1, size: "md", onChange: (e) => (this.multiDateValue = e.detail) }), index.h("p", { key: 'a556aa32e975a1a7f9b8e8e072e9b90398b02ca4', style: {
|
|
2624
2664
|
fontSize: '12px',
|
|
2625
2665
|
color: 'var(--colorNeutralForeground3)',
|
|
2626
2666
|
marginTop: '8px',
|
|
2627
|
-
} }, "Value: ", index.h("code", { key: '
|
|
2667
|
+
} }, "Value: ", index.h("code", { key: 'ece61d000ccf09db5813bd6ec11853a67696988c' }, this.multiDateValue || '(none)')))), index.h("div", { key: '9b18249409730967a04c0598584d2f3c5d5f977f' }, index.h("h4", { key: 'c34dab89630d11b37870d70602f4d61657487b3d', style: { marginBottom: '8px' } }, "Date Range (lg, 2 months)"), index.h("udp-date-range-selector", { key: '8aa2b984755b84499c1265a3582f5dba0e9e5352', variant: "range", monthsToDisplay: 2, size: "lg", orientation: "horizontal", onChange: (e) => (this.rangeDateValue = e.detail) }), index.h("p", { key: '937653dd99a2da0b6828d442014865a2b6c5c6e2', style: {
|
|
2628
2668
|
fontSize: '12px',
|
|
2629
2669
|
color: 'var(--colorNeutralForeground3)',
|
|
2630
2670
|
marginTop: '8px',
|
|
2631
|
-
} }, "Value: ", index.h("code", { key: '
|
|
2671
|
+
} }, "Value: ", index.h("code", { key: '75a1420a86b75f8990401bcf9cc5764b8a4d94dd' }, this.rangeDateValue || '(none)'))), index.h("div", { key: '40685d4b580a6d5e9c9eb6cf35d63cee6e6ba75b' }, index.h("h3", { key: '756e063c4b011fc9b6f13280b6ad92598a01e0bd', style: { marginTop: '16px' } }, "Date Picker (Native)"), index.h("p", { key: '8845e45d2612f1c6c8b70d2f8ebee56bf9e4ab16', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '16px' } }, "For simple single date selection, the native date input provides quick month/year navigation."), index.h("div", { key: 'f07a0c05f653d0e6df9416d2849bd83e958bf343', style: { display: 'flex', gap: '24px', flexWrap: 'wrap' } }, index.h("udp-date-input", { key: '5052a4abe2e19d8e30616f55358907c0f475af95', label: "Date", appearance: "outline" }), index.h("udp-date-input", { key: 'dd6f2d6ee001f7eda5ff2135d8012305e5a5b744', label: "Date & Time", appearance: "outline" }))), index.h("div", { key: '3dc32f5693540dbb0830c8a7fdfaa3457655dba8' }, index.h("h3", { key: 'a1e77bf974467b23afe5d7c3336f3e5d1dadc4b3', style: { marginTop: '24px' } }, "Popover Component"), index.h("p", { key: '9547fccb75a7ebb41cb8a070d6eea193a269f26f', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '16px' } }, "Generic popover using native Popover API and CSS Anchor Positioning."), index.h("div", { key: 'dcec04de0ae8c08248864097715591f83666572b', style: {
|
|
2632
2672
|
display: 'flex',
|
|
2633
2673
|
gap: '24px',
|
|
2634
2674
|
flexWrap: 'wrap',
|
|
2635
2675
|
alignItems: 'flex-start',
|
|
2636
|
-
} }, index.h("udp-popover", { key: '
|
|
2676
|
+
} }, index.h("udp-popover", { key: 'c2e8567daf2364615279149938fd5d9ae521c82d', position: "bottom-start" }, index.h("udp-fluent-button", { key: '333b902b5ae1739f2f19f229ae39897a8fd9cf90', slot: "trigger", appearance: "outline" }, "Open Popover"), index.h("div", { key: '013a5caa6382d517c8cb9d31f2fe12e981b76e37', slot: "content", style: { padding: '16px', minWidth: '200px' } }, index.h("p", { key: '9522caade1a6b9ce160b8981886f96cc28094843', style: { margin: '0 0 8px 0', fontWeight: '600' } }, "Popover Title"), index.h("p", { key: '03c459807a1ae04aeae39b419807e99b3e2c53cc', style: { margin: '0', color: 'var(--colorNeutralForeground2)' } }, "This is popover content. Click outside to close."))), index.h("udp-popover", { key: '74bbf26ffb077df6d7758aa7e5f692453fe5374d', position: "bottom-start" }, index.h("udp-fluent-button", { key: 'a16178fe00e238d6e9c113868188c743b64c1882', slot: "trigger", appearance: "primary", startIconName: "calendar" }, "Date Picker Popover"), index.h("div", { key: '258720ea1e6355a23158e23c9cc641e1102898ae', slot: "content", style: { padding: '8px' } }, index.h("udp-date-range-selector", { key: '3332f6f66b3a124e339270ebfec9f92214528d5e', variant: "single", monthsToDisplay: 1, size: "sm" }))), index.h("udp-popover", { key: '396da41f51568d6a67f5dc4229fe97a9c89f3a76', position: "right" }, index.h("udp-fluent-button", { key: '567e0b5bcc102642f2312ac1e91d7a08732052a7', slot: "trigger", appearance: "subtle" }, "Right Position"), index.h("div", { key: '0aff1512e968f34db5d5ff93f23e18710d76c1c4', slot: "content", style: { padding: '12px', minWidth: '150px' } }, "Positioned to the right")))))), index.h("udp-tab-panel", { key: '6c40f823edc3f25250d2614efe19e4568ae4fa8b', id: "popover", activeTabId: this.currentTab }, index.h("div", { key: 'be820146db93e489f8188211992ac4e01646f0c0', style: {
|
|
2637
2677
|
padding: '24px',
|
|
2638
2678
|
display: 'flex',
|
|
2639
2679
|
flexDirection: 'column',
|
|
2640
2680
|
gap: '32px',
|
|
2641
|
-
} }, index.h("div", { key: '
|
|
2681
|
+
} }, index.h("div", { key: '1edd32650b2f9fe5b9437b53e6e8fdb51e9b3d44' }, index.h("h3", { key: '34760034aa8712347e339fad984e5be07e7f7fd7' }, "Popover Component"), index.h("p", { key: 'ec233c0396eb1cf41f715ad3fe93c431ba5c714e', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '8px' } }, "Generic popover using native Popover API with JavaScript positioning. Follows Fluent 2 Design System guidelines.")), index.h("div", { key: '6db4188136ba096cb10952265a4ffcc03070f066' }, index.h("h4", { key: '4c87f6463690fca22ab587af82baef1e89c2f234' }, "Basic Usage"), index.h("div", { key: 'd282d8af07b7c95d0f57eb147577febeaa7a6adf', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, index.h("udp-popover", { key: 'b609a230383ea24ebcfeae60ebc72cde757252e4' }, index.h("udp-fluent-button", { key: 'd2cc5601ff33d84f9c26d21597aa35fa31b52440', slot: "trigger" }, "Default Popover"), index.h("div", { key: '602a6e1823fb09889c1cc9da1ba31e65726adc43', slot: "content" }, index.h("h4", { key: '991998c6139d745c100268dc47e190ac79f7d443', style: { marginTop: '0px' } }, "Popover Title"), index.h("p", { key: 'b47c75bf0ebe2157579198373a34ef613f421f5f', style: { marginBottom: '0px' } }, "This is popover content. Click outside to close."))), index.h("udp-popover", { key: '98047aa0559df389081553fa7a4cf0d4d5b819db', position: "top" }, index.h("udp-fluent-button", { key: '43ae296c17a63b3ed0eab1e165af967c84e77d25', slot: "trigger", appearance: "outline" }, "Top Position"), index.h("div", { key: '92bcebb1e78d2dc6c5095c1dd36e849b292de345', slot: "content" }, index.h("p", { key: '03d68b100200eaab5526eb0c0f45f1ea1b7e423c', style: { margin: '0px' } }, "Positioned above the trigger"))), index.h("udp-popover", { key: 'c34d53dfd4c8eabbd8f17e7a268d1c67b884002d', position: "right" }, index.h("udp-fluent-button", { key: '9826db5ba78847dfed3467cdf290efd571ff4953', slot: "trigger", appearance: "subtle" }, "Right Position"), index.h("div", { key: 'fa64043d534caa73b7d25149ca84892213a59d05', slot: "content" }, index.h("p", { key: 'a37b82cbc77993555f1e0197e04694d832ebeda2', style: { margin: '0px' } }, "Positioned to the right"))))), index.h("div", { key: '44e826d09aecf9bf0a77825c321b4c85e4f59eef' }, index.h("h4", { key: '7e7d0b18e60114e601894281301b6d377a27f330' }, "With Arrow"), index.h("p", { key: 'f507d037e4c44ed5eb80b2334f832c1bd01a4c1e', style: { fontSize: '14px', color: 'var(--colorNeutralForeground3)' } }, "Display an arrow pointing from the popover to the trigger."), index.h("div", { key: '96dc49c80faae587c8d126182582264967e31e68', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, index.h("udp-popover", { key: '55d9b77ecdfc523f08cd74dad2770ce99026939c', "with-arrow": true }, index.h("udp-fluent-button", { key: '6d06d24e8a5a5ee6ef5009b0a2b65353f5053e55', slot: "trigger" }, "Default Arrow"), index.h("div", { key: '6542230c89fda24441e8b3003c6c5a48b115336b', slot: "content" }, index.h("p", { key: 'e77ab6763e3bfddbae740a09924560416904b434', style: { margin: '0px' } }, "Popover with arrow"))), index.h("udp-popover", { key: 'e3797e4e6c17ef617bdb500aed63402e86ff6a6d', "with-arrow": true }, index.h("udp-fluent-button", { key: '14a59e2062abdea1f1654375d23da5412b35134f', slot: "trigger", appearance: "primary" }, "Brand Arrow"), index.h("div", { key: 'cf61ff06c1889d60aa4c72d7cfd40d5049303e23', slot: "content" }, index.h("p", { key: '60f875a43880c87cf934086fa378f29a981303bd', style: { margin: '0px' } }, "Brand popover with arrow"))), index.h("udp-popover", { key: 'ea336b5d007e4167ba9b27793ab4e11ae8440fe8', "with-arrow": true, position: "top" }, index.h("udp-fluent-button", { key: '27aa56f8b8b0b3fd2b41e6494fdafd2f96e50b86', slot: "trigger", appearance: "outline" }, "Top Arrow"), index.h("div", { key: 'b2d3434f23a6796ea619a995b4feab2fa60fe5af', slot: "content" }, index.h("p", { key: '9cc01d5a3d0ce76521972f4de056b4be4436f302', style: { margin: '0px' } }, "Arrow on top position"))))), index.h("div", { key: 'a11338014ef13d8cf4b4be3a91780135d498a3fa' }, index.h("h4", { key: '7b42d95ea0e420f5dbbf2864c8410ac4cf328985' }, "Size Constraints"), index.h("p", { key: '3ee49f3397565b3d2ebf0de2eff599a148cb4406', style: { fontSize: '14px', color: 'var(--colorNeutralForeground3)' } }, "Optional max-width constraints. Without size, popover grows to fit content."), index.h("div", { key: '6b0a06a74cf60ee78d2d413df14ad5790d1f41de', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, index.h("udp-popover", { key: '801d24cc5179ff65cf636e66efb1a1cd4eeaebcb', size: "small" }, index.h("udp-fluent-button", { key: '87fb0d5f80a2fddb1cefa178e31701e6666a8b32', slot: "trigger" }, "Small (320px)"), index.h("div", { key: 'ca277e1fcfc1b36133f8d14494b3d22711d652a8', slot: "content" }, index.h("p", { key: '96c7af5f090b0832ca375fb2fb58580ab93ccedb', style: { margin: '0px' } }, "This is a small popover with max-width of 320px. The content will wrap if it exceeds this width."))), index.h("udp-popover", { key: 'e669a24d1aac72abd66ae5e26414afa4917681b4', size: "medium" }, index.h("udp-fluent-button", { key: 'ec45babf503c3fc5c4d810bdffe4b492685e82f2', slot: "trigger" }, "Medium (480px)"), index.h("div", { key: '1498db4073e24e965d36be124e9478be13db2660', slot: "content" }, index.h("p", { key: '3c6f5e5d6194a66099c66c7405a3093f07501313', style: { margin: '0px' } }, "This is a medium popover with max-width of 480px. The content will wrap if it exceeds this width. This gives you more room for content."))), index.h("udp-popover", { key: 'a091bee3b9a3a290de176f09cc2b7d9840690970', size: "large" }, index.h("udp-fluent-button", { key: 'd4c680f0e62cbdec56a8e55a1114c37e8c69c9c7', slot: "trigger" }, "Large (640px)"), index.h("div", { key: '212dfab8173befd065b55b9e2e353b4362a8b41f', slot: "content" }, index.h("p", { key: 'a35df83cb6ac72c91ae00f47def4639cd706c9bc', style: { margin: '0px' } }, "This is a large popover with max-width of 640px. This size is suitable for more complex content that needs additional space while still maintaining good readability and layout."))))), index.h("div", { key: '4ff95eadd0af3f4679b4c9438a0fb5654e4a2898' }, index.h("h4", { key: 'cdc79da26b6f885eab5067b90bcffd35796646bb' }, "Trap Focus (Accessibility)"), index.h("p", { key: 'c91c9b51bbc03809d3df53d4b286d0bbaef7e151', style: { fontSize: '14px', color: 'var(--colorNeutralForeground3)' } }, "When trapFocus is enabled, keyboard navigation is restricted to the popover."), index.h("div", { key: 'dedcad5b844014a107799854c8d3edaf4a4a76c6', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, index.h("udp-popover", { key: '10ffcd589dd605355cbfa5d9e2fb98da7c5237b2', trapFocus: true }, index.h("udp-fluent-button", { key: 'd3fc9b7baad7dc7a30063a75d2a30db966af3046', slot: "trigger" }, "Trap Focus"), index.h("div", { key: '36b1a13a772ee0de7fb9474ca62a2d9a2c534efa', slot: "content" }, index.h("h4", { key: '4347f0527d8cd9f37b90c495c8fc5f399ea7b406', style: { marginTop: '0px' } }, "Modal Popover"), index.h("p", { key: '870d9fad03d2d7d3064e54609c8d08acfc20f5ef' }, "This popover traps focus. Press Escape to close."), index.h("div", { key: '30d72421b1cda4a9e56e07eeeff613a7aedfba8f', style: { display: 'flex', gap: '8px' } }, index.h("udp-fluent-button", { key: '9902ed1f75c927276fea5f8eee5e7fe7f6657831', size: "small" }, "Action 1"), index.h("udp-fluent-button", { key: '2ede35579061b2d47a317fe176e6e77ea02e10d7', size: "small", appearance: "outline" }, "Action 2")))))), index.h("div", { key: '417db415c76410afdc930056abad7f8760511f3d' }, index.h("h4", { key: '7fdf2c595251f4e8d6d71b681ee70c1649ee089a' }, "Advanced Examples"), index.h("div", { key: '44e48b144e7732676bd8232503868e91a36f1206', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, index.h("udp-popover", { key: '1afe18b6973d97cdbab3b8b2bc82cb6ea36a4083', position: "bottom-start", "with-arrow": true }, index.h("udp-fluent-button", { key: 'fb8afde54173be626b374de5815117b285c32fa5', slot: "trigger", startIconName: "calendar" }, "Date Picker"), index.h("div", { key: '86c751e087bb1e9dacc1c61b3301e8e03d37a192', slot: "content", style: { padding: '8px' } }, index.h("udp-date-range-selector", { key: '4720012a3765869aeb3e34246568f2d43ac67b02', variant: "single", monthsToDisplay: 1, size: "sm" }))), index.h("udp-popover", { key: '8a5a81bb641e66de6528f796a3cd049fba6c6b4a', size: "medium", "with-arrow": true }, index.h("udp-fluent-button", { key: '2d5c4c27fe3022ddd095a63b588efee855209d1c', slot: "trigger" }, "Rich Content"), index.h("div", { key: 'e7082d15a2f09ffce34802df69c6c896c17f8b04', slot: "content" }, index.h("h4", { key: '5b83ad04dbe20a509c89689ab6133c5cbbb7fe80', style: { marginTop: '0px' } }, "Feature Update"), index.h("p", { key: '3bbce4ea891cf9988e0646d566265a84b651c8e5', style: { fontSize: '14px' } }, "New features are now available! Check out the latest updates to improve your workflow."), index.h("udp-fluent-button", { key: '5ad055447c46054dab2ce8706cbd048a0812179f', size: "small" }, "Learn More"))), index.h("udp-popover", { key: '65ac8bc7e0c3d076f5b8823306917d073163df70', "close-on-scroll": true }, index.h("udp-fluent-button", { key: 'af2bbd466a6475d16e9ffe1141912fb115897439', slot: "trigger" }, "Closes on Scroll"), index.h("div", { key: 'c256bc2841d210480d088bd44c4867717fe3f7a1', slot: "content" }, index.h("p", { key: 'dba086fc8582f001e21e7ffb218780a4af8ff01d', style: { margin: '0px' } }, "This popover will close when you scroll the page."))))))))), index.h("udp-fluent-drawer", { key: '7d9b5e2729991738b91654daaeaec6293732de22', open: this.drawerOpen, onDrawerClose: () => (this.drawerOpen = false), drawerTitle: "Drawer Title" }, index.h("udp-lazy-loader", { key: 'fda21dd13e4c9db7caf26adbb7edec4cd4ca233c', if: this.drawerOpen, content: () => (index.h("div", null, index.h("client-side-grid", { columnDefs: [
|
|
2642
2682
|
{ field: 'name' },
|
|
2643
2683
|
{ field: 'age' },
|
|
2644
2684
|
{ field: 'name' },
|
|
@@ -2649,10 +2689,10 @@ const TestComponentsPage = class {
|
|
|
2649
2689
|
], rowData: [
|
|
2650
2690
|
{ name: 'John', age: 30 },
|
|
2651
2691
|
{ name: 'Jane', age: 25 },
|
|
2652
|
-
] }), index.h("udp-fluent-button", { onClick: () => (this.drawerOpen = false) }, "Close Drawer"))) })), index.h("udp-fluent-drawer", { key: '
|
|
2692
|
+
] }), index.h("udp-fluent-button", { onClick: () => (this.drawerOpen = false) }, "Close Drawer"))) })), index.h("udp-fluent-drawer", { key: 'aa303a377d4aaa20473976dca42b16d3e253ab6d', open: this.formDrawerOpen, onDrawerClose: () => (this.formDrawerOpen = false), drawerTitle: "Sample Form", size: "large" }, index.h("udp-lazy-loader", { key: '85a6cc60167f024d1e68c64a80db28d701cba51d', if: this.formDrawerOpen, content: () => (index.h("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' } }, index.h("div", { style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, index.h("udp-fluent-button", { appearance: "outline", onClick: () => (this.secondDrawerOpen = true) }, "Open Second Drawer")), index.h("test-form", { handleSubmit: this.handleSubmit, formId: "registry-drawer-form" }))) }), index.h("udp-fluent-button", { key: '636725804c2c6541dd375b6b6745a533a5933e6d', appearance: "primary", slot: "footer", form: "registry-drawer-form", type: "submit" }, "Submit Form"), index.h("udp-fluent-button", { key: 'b9d26d098aba2a8d86420851fa4cd8c94ef99c92', slot: "footer", form: "registry-drawer-form", type: "reset" }, "Reset Form")), index.h("udp-fluent-drawer", { key: 'b591dbad939aaacfc2b07f761d1c5574ec632672', open: this.manualDrawerOpen, onDrawerClose: () => (this.manualDrawerOpen = false), drawerTitle: "Form (Manual Wiring)" }, index.h("udp-lazy-loader", { key: 'bb9a236daf20c79b5628f98511f18dc004bde157', if: this.manualDrawerOpen, content: () => (index.h("test-form", { handleSubmit: this.handleSubmit, onFormReady: this.handleManualFormReady })) }), index.h("udp-fluent-button", { key: '4868f7758a3c5fb1baa801351e21226939f642a1', appearance: "primary", slot: "footer", disabled: !this.manualCanSubmit, onClick: () => {
|
|
2653
2693
|
var _a;
|
|
2654
2694
|
void ((_a = this.manualFormInstance) === null || _a === void 0 ? void 0 : _a.submit());
|
|
2655
|
-
} }, "Submit (Manual)")), index.h("udp-fluent-dialog", { key: 'd49d81a77336a937ae737243fade81c91a692a75', open: this.drawerDialogOpen, dialogTitle: "Dialog from Drawer", onDialogClose: () => (this.drawerDialogOpen = false) }, index.h("div", { key: 'be85b912b653656c3deb6a6a008b698788b1d264' }, "This dialog was opened from inside the drawer!"), index.h("div", { key: '226c017a93e0da8f4893059eeef2fd1ed441daa1' }, index.h("p", { key: '99f7f7bed3024e4fba883e01cc07585e208a9c31' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: '744bb09155ae63446d72b59f849e18c338eb30fd' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."), index.h("p", { key: 'f2828044200ba3cf8f2fc719ec5f8811cc54f6dd' }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?")), index.h("udp-fluent-button", { key: '1e2e6f52a0739446dd3fa314ef7d7b35046e3f27', slot: "action", onClick: () => (this.drawerDialogOpen = false) }, "Close"), index.h("udp-fluent-button", { key: 'e2837943d9918bdfa016a609823250adfd0e94cc', appearance: "primary", slot: "action" }, "Confirm")), index.h("udp-fluent-drawer", { key: '671165fe9ca8af35d26aacbc8ef8fa994834f8a6', open: this.secondDrawerOpen, onDrawerClose: () => (this.secondDrawerOpen = false), drawerTitle: "Second Drawer (Nested)", size: "medium" }, index.h("div", { key: 'aae8fd0b613469f9b5ee3edc8f4532aabc3dee2b', style: { display: 'flex', flexDirection: 'column', gap: '16px', padding: '16px' } }, index.h("p", { key: 'c2699ba856ea6b5b42c763643573e4864c680914' }, "This is the second drawer opened from within the first drawer."), index.h("div", { key: '8eb4a76293cf590d0aae1b73362b9da0ef8e235f', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, index.h("udp-fluent-button", { key: '3f631e6f4d8f25929d7b340c57dfd76e8b5824d7', onClick: () => (this.secondDrawerDialogOpen = true) }, "Open Dialog from Second Drawer"), index.h("udp-fluent-button", { key: '386b7e6f8eb5c9b21e19deb86226a357fdb8c8ac', appearance: "outline", onClick: () => (this.thirdDrawerOpen = true) }, "Open Third Drawer")), index.h("p", { key: 'fa4b0ea7fd56f38a1c7c554b8f282075bb2aceb5' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: 'fa4511d7ed24b65534c81cb7ea39a01f9059f354' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."), index.h("p", { key: 'f3227905a61113a1ffcf684cc403c49c727789e7' }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"), index.h("p", { key: '3a22d6acff8e3d659780a4d6c60737bd224834a2' }, "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus."), index.h("p", { key: 'aa727f7ef1076a84cc0027b304aa0f776b26a0e7' }, "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.")), index.h("udp-fluent-button", { key: 'e92e241234b7f87a5ee20842549f7f153fe0a973', appearance: "primary", slot: "footer", onClick: () => (this.secondDrawerOpen = false) }, "Close Second Drawer")), index.h("udp-fluent-drawer", { key: 'b156a016bee30cb3482582b896b375723de717cd', open: this.thirdDrawerOpen, onDrawerClose: () => (this.thirdDrawerOpen = false), drawerTitle: "Third Drawer (Deeply Nested)", size: "small" }, index.h("div", { key: '4225d763b8d8423d742cd9bb8d7244589f4291de', style: { padding: '16px' } }, index.h("p", { key: '5dc33a244057589e3727f28042ef156223e86e5e' }, "This is the third drawer! Three levels deep."), index.h("p", { key: '41c02615fb6c1a565a051836886175a6f22d49a1', style: { fontSize: '14px', color: 'var(--colorNeutralForeground2)' } }, "Testing the drawer stacking and body scroll lock mechanism with multiple drawers."), index.h("p", { key: 'cecf2b0fb5ce3c2c971bdec99e4a47c2b974e2be' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: '01d310de5496eb58817e47480b9fe9dbfe8ced28' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt."), index.h("p", { key: '1c4174e92c66f10338b8d96b9c7e63efa65e8cf7' }, "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?"), index.h("p", { key: '270d3de261d06e3aaa9bacb89fb5d2cc8879cb52' }, "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident."), index.h("p", { key: '43d1a028934c5501f710355c7e5338119ddf496d' }, "Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.")), index.h("udp-fluent-button", { key: 'e467504fda19d0e85041d8300cc970c5dccc970d', appearance: "primary", slot: "footer", onClick: () => (this.thirdDrawerOpen = false) }, "Close Third Drawer")), index.h("udp-fluent-dialog", { key: '01112cb144df8ea78d76098e71caa206ad9d3954', open: this.secondDrawerDialogOpen, dialogTitle: "Dialog from Second Drawer", onDialogClose: () => (this.secondDrawerDialogOpen = false) }, index.h("div", { key: '444b505efe77b882d9159ed62ee4b6fefdcdfc7b' }, "This dialog was opened from the second drawer!"), index.h("p", { key: 'db5c1b0af0cdcd87ca7d540a63ede5d6c8493442' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: '41c486e46bff47d23db86113c58edd1e85c2fbb3' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."), index.h("p", { key: '2cc8f8196054e826fd5539e38bd9229987f4c123' }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"), index.h("udp-fluent-button", { key: 'cfeab7536777e88636e24d322d1a3d1cf72ef6e0', slot: "action", onClick: () => (this.secondDrawerDialogOpen = false) }, "Close"), index.h("udp-fluent-button", { key: '76cdbd3b247fc9cace656080dd3cccf6fd3ec9a2', appearance: "primary", slot: "action" }, "Confirm"))));
|
|
2695
|
+
} }, "Submit (Manual)")), index.h("udp-fluent-dialog", { key: '85f2b641cc9f0ecaa327da056cd9a52e270912e3', open: this.drawerDialogOpen, dialogTitle: "Dialog from Drawer", onDialogClose: () => (this.drawerDialogOpen = false) }, index.h("div", { key: 'e3bf597e4dacdf1e34c8dfdf63c65bc9e3e7a482' }, "This dialog was opened from inside the drawer!"), index.h("div", { key: '9c17eee8d9ab701c15635272326efa2122f63f0c' }, index.h("p", { key: '24f3c246adec7d822bf173185ce3a99384627527' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: 'cb494e999d170265608078b3a27e7db7f873e51a' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."), index.h("p", { key: '3374084f9b619e4ece2740899dc4182f8f59595e' }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?")), index.h("udp-fluent-button", { key: '7cbe9d22b1c4567b05b0f024ea9fe9fb84a918cd', slot: "action", onClick: () => (this.drawerDialogOpen = false) }, "Close"), index.h("udp-fluent-button", { key: '6593fa9478602571627c3694ca1832a30976fb6b', appearance: "primary", slot: "action" }, "Confirm")), index.h("udp-fluent-drawer", { key: '790e2ba054f94c62c9d796f377c6169067540a93', open: this.secondDrawerOpen, onDrawerClose: () => (this.secondDrawerOpen = false), drawerTitle: "Second Drawer (Nested)", size: "medium" }, index.h("div", { key: 'd1b8b5de6636906ebd9a90839b9cebcda84a2348', style: { display: 'flex', flexDirection: 'column', gap: '16px', padding: '16px' } }, index.h("p", { key: '572f5051af669e4ba4eee3213179440ebb709b9c' }, "This is the second drawer opened from within the first drawer."), index.h("div", { key: '369218231794b928d71436b8c485b6ccceade3a7', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, index.h("udp-fluent-button", { key: 'a9dac02d2735f1c9f45d870556c7aa19fffedf4b', onClick: () => (this.secondDrawerDialogOpen = true) }, "Open Dialog from Second Drawer"), index.h("udp-fluent-button", { key: '5ac90eff5ac462a03f5fd8356312daa801db8087', appearance: "outline", onClick: () => (this.thirdDrawerOpen = true) }, "Open Third Drawer")), index.h("p", { key: '14d78095ab4e7206ac6134c03a71977d337a882b' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: '1c3f3d7fa0796680baedee05327c212e8171a3e1' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."), index.h("p", { key: 'e25f5a441ce0f5a7b9560b59b9549672f7c197d0' }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"), index.h("p", { key: 'fab1cc9450f5cf226178fc4734848c3e3837156b' }, "At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus."), index.h("p", { key: '3afe2eda21c841bfd9a5509b34e6943ed7e695e7' }, "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.")), index.h("udp-fluent-button", { key: '73cb8d42a6e2ca8da6600a00a2c52c4050934fc4', appearance: "primary", slot: "footer", onClick: () => (this.secondDrawerOpen = false) }, "Close Second Drawer")), index.h("udp-fluent-drawer", { key: 'e6988e2de64a1a14a5ed85a5afa83c2add46e493', open: this.thirdDrawerOpen, onDrawerClose: () => (this.thirdDrawerOpen = false), drawerTitle: "Third Drawer (Deeply Nested)", size: "small" }, index.h("div", { key: '62348c97061715dabfc70a1aca8012a2aad0c63c', style: { padding: '16px' } }, index.h("p", { key: '5f3c0df123e2972d797637171afa36e315135f6d' }, "This is the third drawer! Three levels deep."), index.h("p", { key: 'eac31168ea71b9404b2b8f85ed7df3ba7e589260', style: { fontSize: '14px', color: 'var(--colorNeutralForeground2)' } }, "Testing the drawer stacking and body scroll lock mechanism with multiple drawers."), index.h("p", { key: '6ae4321c62ed498241b6102d4d2f331235b7f50d' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: '73b8ea6208a950c2cf2dee064b26199f0774c3bb' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt."), index.h("p", { key: 'f6e290a4be14b777037b9fecc6d9fb410c3bf783' }, "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?"), index.h("p", { key: '1daebc59739f4cadc1cdb772e77be7a1761c8a17' }, "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident."), index.h("p", { key: 'fde52e84d6ac74dc882f421d4ea27803d4d3eb73' }, "Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.")), index.h("udp-fluent-button", { key: '24147fbe1ae6d2341ba61442ec61c070de51100a', appearance: "primary", slot: "footer", onClick: () => (this.thirdDrawerOpen = false) }, "Close Third Drawer")), index.h("udp-fluent-dialog", { key: 'ec067f433388c06cd1b73807429ff951c92813f3', open: this.secondDrawerDialogOpen, dialogTitle: "Dialog from Second Drawer", onDialogClose: () => (this.secondDrawerDialogOpen = false) }, index.h("div", { key: 'aa08e40a57a62398d1faf514d2a0e09b50170ffc' }, "This dialog was opened from the second drawer!"), index.h("p", { key: 'e4a021b7057c9945658e0bf35ddf3f065a049fcc' }, "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."), index.h("p", { key: 'b5104a7ec49333cf1750f228e81f0b47c7e0a0d9' }, "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem."), index.h("p", { key: 'dfb26ae04becff477de1d1bd4b6b5648918644da' }, "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"), index.h("udp-fluent-button", { key: 'eddcd6ff3b9ec7ab9de1ef1db575d583a7c002ba', slot: "action", onClick: () => (this.secondDrawerDialogOpen = false) }, "Close"), index.h("udp-fluent-button", { key: 'c1b38551c76d49c97b28f9adfa43f9bcaa799a60', appearance: "primary", slot: "action" }, "Confirm"))));
|
|
2656
2696
|
}
|
|
2657
2697
|
};
|
|
2658
2698
|
|
|
@@ -2771,17 +2811,17 @@ const TestForm = class {
|
|
|
2771
2811
|
{ label: 'Medium', value: 'medium' },
|
|
2772
2812
|
{ label: 'Large', value: 'large' },
|
|
2773
2813
|
];
|
|
2774
|
-
return (index.h("div", { key: '
|
|
2814
|
+
return (index.h("div", { key: '78b78911bd056a508320960916f7b0104e9f7dcf' }, index.h("udp-form-component", { key: 'a99232c1c4b9e84b941d2fcaf595032236b24b77', formId: this.formId, validate: this.validateForm, onFormReady: this.handleFormReady, onSubmit: this.handleFormSubmit, initialValues: this.formData }, index.h("udp-flexbox", { key: '3a45771136231dc99d00880c852d782062d70a4d' }, index.h("udp-flexbox", { key: '1777ecd1e444cf3be936b517270cb87a508c216a', style: { display: 'none' } }, index.h("h3", { key: '5ae9fff156c7465cdcb0a58cb1a5606e274e45e4', style: { margin: '0 0 1rem 0', fontSize: '16px', fontWeight: '600' } }, "Global Property Controls"), index.h("udp-flexbox", { key: 'f85125e69d026ece32ba64997d75b31a928e7ad5' }, index.h("udp-fluent-dropdown", { key: 'e3e098aff935d9ef58f53f74a334954a3c38f9ab', label: "Appearance", value: this.controlAppearance, options: appearanceOptions, optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.controlAppearance = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); } }), index.h("udp-fluent-dropdown", { key: 'ab1baea650adf9acd9fff5a52d1a909ae011264b', label: "Control Size", value: this.controlSize, options: sizeOptions, optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.controlSize = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); }, style: { minWidth: '120px' } }), index.h("udp-fluent-switch", { key: '3e219e40ac6d247d2f5405e260837aee884208da', label: "Required", labelPosition: "after", checked: this.controlRequired, onValueChanged: (e) => (this.controlRequired = e.detail) }), index.h("udp-fluent-switch", { key: '0c0b16c3430b03f9243181f25bf27fc6008be2d9', label: "Disabled", labelPosition: "after", checked: this.controlDisabled, onValueChanged: (e) => (this.controlDisabled = e.detail) }), index.h("udp-fluent-switch", { key: 'f7ec67444927b64a393cc8588938c96d6c8b7d15', label: "Readonly", labelPosition: "after", checked: this.controlReadonly, onValueChanged: (e) => (this.controlReadonly = e.detail) })), index.h("p", { key: '1c9094a5b717b06f9b8e2fa529bdce379ee8c927', style: {
|
|
2775
2815
|
margin: '0.75rem 0 0',
|
|
2776
2816
|
fontSize: '12px',
|
|
2777
2817
|
color: 'var(--colorNeutralForeground3)',
|
|
2778
|
-
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), index.h("udp-field", { key: '
|
|
2818
|
+
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), index.h("udp-field", { key: '1f3218930f463504e4d3e78d5544d5af0308dfad', name: "searchText" }, index.h("udp-search-input", { key: '32f52709af9f8ed6c3f0ad906faef97b3a356d3a', disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize, placeholder: "Search for something...", includeErrorPadding: false })), index.h("udp-field", { key: 'f3302fdbb91f87aa886ab48b68fb4dad9c814d6c', name: "firstName" }, index.h("udp-fluent-text-input", { key: '657eda1498334fb13e5ca7aeac8a48b0ace97c97', label: "First Name", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize, placeholder: "Enter your first name", popupHint: "Enter your first name, this should appear above the input" })), index.h("div", { key: '63d0a3a79bda4e19c1c42489c1511f409e9d71c8', style: { display: 'flex', gap: '1rem', flexDirection: 'row', flex: '1' } }, index.h("udp-field", { key: '9217aaa885ce4b3f0bc351be85e407b3daa640bc', name: "email" }, index.h("udp-fluent-text-input", { key: '55d6986faa45e32c5c7d3a9b1d2e53f6e145f172', label: "Email Address", type: "email", value: "jordanatchison@univerus.com", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize })), index.h("udp-field", { key: '30b3bc790e61e9e50242f7ff97ceeccd11b30478', name: "age" }, index.h("udp-fluent-text-input", { key: '2e1cfc9bab2c0d7309efcaa78f2c6a52a454fb02', label: "Age", type: "number", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize }))), index.h("udp-field", { key: 'c47f175c6d7ce797b5b74fe250a05dc9708e56c5', name: "birthday" }, index.h("udp-date-input", { key: '8613ffa0b043d04dcc15e8a2d902b0aadb4ce5fc', label: "Birthday", minDate: "2026-01-11", maxDate: "2026-01-22", dateSelectionType: "range", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), index.h("udp-field", { key: '26be842252a2a196af372b07fef6c78e4f100b63', name: "appointment" }, index.h("udp-date-time-input", { key: 'd745a121bf64e22c7ebf4eabcb3fc283373dc686', label: "Appointment (Combined Date/Time)", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), index.h("div", { key: 'fefbc37f981f26a6de2dbc2a16802cdbc0642081', style: { display: 'flex', gap: '1rem', flexDirection: 'row', flex: '1' } }, index.h("udp-field", { key: '5456c7f8483217141fe30058c8518d650f917cc0', name: "startTime" }, index.h("udp-time-input", { key: 'f87512e4632ecc791befbe826d4a6d49960e9de8', label: "Start Time (Freeform)", placeholder: "e.g. 2:30pm", hint: "Type any time or select from list", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), index.h("udp-field", { key: '1e1e1077fe91ff91ebe4e065a658ed82a204fbff', name: "endTime", validate: () => 'always invalid' }, index.h("udp-time-input", { key: 'a6624072c283569c1b75a1c03eb910353535807f', label: "End Time", placeholder: "e.g. 5:30pm", minuteStep: 30, hint: "Type any time or select from list", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize }))), index.h("udp-field", { key: '5e18d1e10ef2e3e768dedf7429d09b3471df24aa', name: "bio" }, index.h("udp-textarea", { key: 'd7ec1c9e85fa855c9d74ce9669f26c7ea747608a', label: "Bio", placeholder: "Tell us about yourself", autoResize: true, required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize })), index.h("udp-field", { key: '3b4f342a8a25afdb40b75d9a23122813b60321ca', name: "exclamation", validate: mustHaveExclamation }, index.h("udp-fluent-text-input", { key: '7a186300a8cf4096e5199418c0c4189de86ac7e4', label: "Exclamation", hint: "exclamation mark please", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize })), index.h("udp-field", { key: '83b4e0e693a03f6aacab33ae50535bc0e5051217', name: "favoriteAnimal" }, index.h("udp-fluent-dropdown", { key: 'd0c6d51ed8e0997f15ce363f0ad0734423c8c5ee', placeholder: "Select an animal", label: "Favorite Animal (Dropdown)", appearance: this.controlAppearance, disabled: this.controlDisabled, required: true, optionValue: 'value', optionLabel: (data) => data.label, options: animals, controlSize: this.controlSize })), index.h("udp-field", { key: '0e87635dc8f2cf870aad4f6afa5ef23849b5921b', name: "favoriteAnimalAutoComplete" }, index.h("udp-autocomplete", { key: 'feb02ef8eb4b8913de0e9411331e1624c6cfb5cc', placeholder: "Select an animal", label: "Favorite Animal", appearance: this.controlAppearance, disabled: this.controlDisabled, required: true, optionValue: 'value', optionLabel: (data) => data.label,
|
|
2779
2819
|
// multiple={true}
|
|
2780
|
-
options: animals, controlSize: this.controlSize, popupHint: "Select an animal" })), index.h("udp-field", { key: '
|
|
2820
|
+
options: animals, controlSize: this.controlSize, popupHint: "Select an animal" })), index.h("udp-field", { key: 'a80552ad161ff4133059afa6ae0d58287e3ff570', name: "serverSideUser" }, index.h("udp-autocomplete", { key: '73d97143d7ecf82659b8641321e2207a99a94006', required: true, placeholder: "Search for an actor...", label: "Server Side Actor", appearance: this.controlAppearance, disabled: this.controlDisabled, optionValue: "id", optionLabel: (option) => option.firstName + ' ' + option.lastName, searchFunction: this.searchFunction, controlSize: this.controlSize, multiple: true })), index.h("udp-field", { key: '474418370a9404b1361866a533df9ce7f3725a91', name: "newsletter" }, index.h("udp-fluent-checkbox", { key: '37ef0b9b1e50fb8445e438e0eea16a9028618406', label: "Subscribe to newsletter", hint: "We will only send you emails about important updates", disabled: this.controlDisabled, controlSize: this.controlSize })), index.h("udp-field", { key: 'fd904a841f78761100a63ba5e744f02886599300', name: "commitment" }, index.h("udp-slider", { key: '75586c644a239954779b34ccf8f60ea3c2b06549', label: "Commitment Level", disabled: this.controlDisabled })), index.h("udp-field", { key: 'f30242266279384e87a9b59eb8209cda57dbf0d5', name: "active" }, index.h("udp-fluent-switch", { key: 'e5d342187efa24a5cc8dad1daec88dfab9490667', label: "Active", labelPosition: "after", disabled: this.controlDisabled })), index.h("udp-field", { key: '55f3ef27debb9b35367fb71eea0d0b9870231082', name: "favoriteColor" }, index.h("udp-fluent-radio-group", { key: '7714e7558cf305d0570af651f2e8724a83b26808', label: "Favorite Colo", disabled: this.controlDisabled, hint: "Favorite Color", items: [
|
|
2781
2821
|
{ label: 'Red', value: 'red' },
|
|
2782
2822
|
{ label: 'Green', value: 'green' },
|
|
2783
2823
|
{ label: 'Blue', value: 'blue' },
|
|
2784
|
-
] })), index.h("udp-field", { key: '
|
|
2824
|
+
] })), index.h("udp-field", { key: '4f4cc14c8aaf6ed456ca5931b56448f67f7e84cc', name: "swatchColor" }, index.h("udp-swatch-picker", { key: '2ef8f017b1f2d60ff9268fc4b0fb5ba440a8049f', label: "Pick a Color (Swatch)", hint: "Pick a color", swatches: colorSwatches, layout: "row", shape: "square", size: this.controlSize === 'small'
|
|
2785
2825
|
? 'small'
|
|
2786
2826
|
: this.controlSize === 'large'
|
|
2787
2827
|
? 'large'
|
|
@@ -2900,9 +2940,9 @@ const UdpAmbientToolTip = class {
|
|
|
2900
2940
|
render() {
|
|
2901
2941
|
// Check if content is provided before rendering the tooltip content.
|
|
2902
2942
|
const shouldDisplayTooltip = !!this.isVisible && !!this.content && this.content.trim() !== '';
|
|
2903
|
-
return (index.h("div", { key: '
|
|
2943
|
+
return (index.h("div", { key: '6df05e15a1d6a5a449074b5906fd8305a1112743', class: "tooltip-wrapper", ref: el => (this.wrapperEl = el), onMouseOver: this.showTooltip, onMouseOut: this.hideTooltip }, index.h("slot", { key: '9003fc54fcef34b9edc8006a8fed7900923f8b4a' }), shouldDisplayTooltip && (
|
|
2904
2944
|
// STEP 4: Use the global class name we defined in our style string.
|
|
2905
|
-
index.h("div", { key: '
|
|
2945
|
+
index.h("div", { key: 'a54c034523dcf8104c1515aad1102f166d61f510', class: "udp-tooltip-portal", role: "tooltip", ref: el => (this.tooltipContentEl = el) }, index.h("unity-typography", { key: '700d713e32d7a9e03546a6df4834633d9c6acfca', variant: "caption-text" }, this.content)))));
|
|
2906
2946
|
}
|
|
2907
2947
|
};
|
|
2908
2948
|
UdpAmbientToolTip.style = udpAmbientToolTipCss();
|
|
@@ -3020,6 +3060,26 @@ const UdpAutocomplete = class {
|
|
|
3020
3060
|
* @note Not supported in combination with `multiple`.
|
|
3021
3061
|
*/
|
|
3022
3062
|
this.freeForm = false;
|
|
3063
|
+
/**
|
|
3064
|
+
* Controls the shape of the `valueChanged` payload (see that event's docs):
|
|
3065
|
+
* - `'option'` (default): emit the matched option **object** from the source
|
|
3066
|
+
* list (legacy behavior). Convenient when the consumer wants the full option
|
|
3067
|
+
* (label, metadata) on change.
|
|
3068
|
+
* - `'value'`: emit the scalar resolved via `optionValue` (a `string`, or
|
|
3069
|
+
* `string[]` in `multiple` mode). This is what form bindings want — the
|
|
3070
|
+
* stored value is the option's id, not the object. Set this when wiring the
|
|
3071
|
+
* autocomplete into a form (Final Form / react-hook-form / `udp-field`).
|
|
3072
|
+
* Feed the emitted scalar(s) back into `value`; label resolution still works
|
|
3073
|
+
* because every internal read goes through `optionValue`. With `freeForm`,
|
|
3074
|
+
* an unmatched typed entry emits its raw string in either mode.
|
|
3075
|
+
*
|
|
3076
|
+
* @remarks Default is `'option'` to preserve existing behavior. A future
|
|
3077
|
+
* major version is expected to flip the default to `'value'`, since emitting
|
|
3078
|
+
* the scalar matches the convention of most component libraries (MUI, Ant
|
|
3079
|
+
* Design, Vuetify, Element) and avoids the "[object Object]" / stale-option
|
|
3080
|
+
* class of bug in form contexts.
|
|
3081
|
+
*/
|
|
3082
|
+
this.valueAs = 'option';
|
|
3023
3083
|
// --- State ---
|
|
3024
3084
|
this.internalLoading = false;
|
|
3025
3085
|
this.filterText = '';
|
|
@@ -3143,7 +3203,7 @@ const UdpAutocomplete = class {
|
|
|
3143
3203
|
? currentVal.filter(i => this.getOptionValue(i) !== itemVal)
|
|
3144
3204
|
: // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
3145
3205
|
[...currentVal, item];
|
|
3146
|
-
this.valueChanged.emit(newValue);
|
|
3206
|
+
this.valueChanged.emit(newValue.map(v => this.toEmitValue(v)));
|
|
3147
3207
|
}
|
|
3148
3208
|
}
|
|
3149
3209
|
else {
|
|
@@ -3199,7 +3259,7 @@ const UdpAutocomplete = class {
|
|
|
3199
3259
|
return;
|
|
3200
3260
|
const itemVal = this.getOptionValue(item);
|
|
3201
3261
|
const newValue = this.value.filter(i => this.getOptionValue(i) !== itemVal);
|
|
3202
|
-
this.valueChanged.emit(newValue);
|
|
3262
|
+
this.valueChanged.emit(newValue.map(v => this.toEmitValue(v)));
|
|
3203
3263
|
};
|
|
3204
3264
|
this.handleChange = (ev) => {
|
|
3205
3265
|
var _a;
|
|
@@ -3227,7 +3287,7 @@ const UdpAutocomplete = class {
|
|
|
3227
3287
|
const originalOption = this.findOptionByValue(selectedValue);
|
|
3228
3288
|
const emitValue = originalOption !== undefined ? originalOption : selectedValue;
|
|
3229
3289
|
this.selectionForOverlay = emitValue;
|
|
3230
|
-
this.valueChanged.emit(emitValue);
|
|
3290
|
+
this.valueChanged.emit(this.toEmitValue(emitValue));
|
|
3231
3291
|
// Fluent sets input.value to the option's textContent (badge text included).
|
|
3232
3292
|
// Overwrite with the resolved label so uncontrolled usage stays clean.
|
|
3233
3293
|
if (originalOption && this.dropdownRef.control) {
|
|
@@ -3255,7 +3315,7 @@ const UdpAutocomplete = class {
|
|
|
3255
3315
|
return !displayValues.has(itemValue) && !visibleSelectedIds.has(itemValue);
|
|
3256
3316
|
})
|
|
3257
3317
|
: [];
|
|
3258
|
-
this.valueChanged.emit([...hiddenSelections, ...visibleSelectedValues]);
|
|
3318
|
+
this.valueChanged.emit([...hiddenSelections, ...visibleSelectedValues].map(v => this.toEmitValue(v)));
|
|
3259
3319
|
// Fluent's selectOption overwrites control.value with displayValue — restore filter text.
|
|
3260
3320
|
if (this.filterText && this.dropdownRef.control) {
|
|
3261
3321
|
requestAnimationFrame(() => {
|
|
@@ -3386,6 +3446,17 @@ const UdpAutocomplete = class {
|
|
|
3386
3446
|
const searchArray = this.datasource || this.searchFunction ? this.fetchedOptions : this.options;
|
|
3387
3447
|
return searchArray.find(opt => this.getOptionValue(opt) === value);
|
|
3388
3448
|
}
|
|
3449
|
+
/**
|
|
3450
|
+
* Maps a single internal selection entry (option object or primitive) to the
|
|
3451
|
+
* shape `valueChanged` should emit, per `valueAs`. In `'value'` mode this
|
|
3452
|
+
* resolves the scalar via `optionValue`; in `'option'` mode it passes the
|
|
3453
|
+
* entry through unchanged. Callers map this over the array in multi-select.
|
|
3454
|
+
* Internal `value` round-tripping keeps working in either mode because every
|
|
3455
|
+
* read goes through `getOptionValue` (primitives resolve to themselves).
|
|
3456
|
+
*/
|
|
3457
|
+
toEmitValue(selection) {
|
|
3458
|
+
return this.valueAs === 'value' ? this.getOptionValue(selection) : selection;
|
|
3459
|
+
}
|
|
3389
3460
|
getDisplayOptions() {
|
|
3390
3461
|
if (this.datasource || this.searchFunction) {
|
|
3391
3462
|
return this.fetchedOptions;
|
|
@@ -3488,20 +3559,27 @@ const UdpAutocomplete = class {
|
|
|
3488
3559
|
? this.resolveProp(overlayOption, this.optionLabel, true)
|
|
3489
3560
|
: null;
|
|
3490
3561
|
const overlayBadges = overlayOption ? this.getOptionBadges(overlayOption) : [];
|
|
3491
|
-
return (index.h(index.Host, { key: '
|
|
3562
|
+
return (index.h(index.Host, { key: '89b86c15abd8134b91fc35a7353aee0f2e74a7d5', class: { 'has-error': hasError } }, index.h("fluent-field", { key: '5f5094ebeaacb6731f9fcfd1567b047d6119e5c3', class: {
|
|
3492
3563
|
'no-label': !this.label && !this.multiple,
|
|
3493
3564
|
'no-message': !message && !this.includeErrorPadding,
|
|
3494
|
-
} }, index.h("div", { key: '
|
|
3565
|
+
} }, index.h("div", { key: 'bd965e08439f6189afe88746a9ec3dff662dc52d', class: "label-content", onClick: () => this.handleTogglePopover(false), slot: "label" }, this.label && (index.h("fluent-label", { key: '113b4736d2454475400846aeda6978d823fa05c0', disabled: this.disabled, style: { paddingTop: '2px', paddingBottom: '2px' } }, this.label, this.popupHint && (index.h("udp-tooltip", { key: '80777babf581444f7c8c38bf20873c95db15fc97', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: 'ff00357dea7aba684a6237c0db60a8856328325c', name: "info", size: "xs", class: "popup-hint-icon" }))))), this.multiple && (index.h("div", { key: '5d5ae469fbc8ef62c6646d176306f267036e6812', class: {
|
|
3495
3566
|
'selected-items': true,
|
|
3496
3567
|
'has-items': selectedItems.length > 0,
|
|
3497
|
-
} }, selectedItems.map(item =>
|
|
3568
|
+
} }, selectedItems.map(item => {
|
|
3569
|
+
var _a;
|
|
3570
|
+
// Resolve to the source option so chips show the label even
|
|
3571
|
+
// when `value` holds scalars (valueAs="value"). In 'option'
|
|
3572
|
+
// mode `item` is already the object, so this is a no-op.
|
|
3573
|
+
const opt = (_a = this.findOptionByValue(this.getOptionValue(item))) !== null && _a !== void 0 ? _a : item;
|
|
3574
|
+
return (index.h("udp-fluent-badge", { color: "brand", shape: "circular", dismissible: !this.disabled, onDismiss: () => this.handleChipDelete(item) }, this.resolveProp(opt, this.optionLabel, true)));
|
|
3575
|
+
})))), index.h("div", { key: '1060be0738eeecfe900006dc1ecf0f99ea9c02d8', slot: "input", class: {
|
|
3498
3576
|
'input-wrapper': true,
|
|
3499
3577
|
'has-overlay': !!overlayOption,
|
|
3500
|
-
} }, index.h("fluent-dropdown", { key: '
|
|
3578
|
+
} }, index.h("fluent-dropdown", { key: '5cd147fda5cf701f9f420aa413954e4bde3481e4', type: "combobox", name: this.name, appearance: mappedAppearance, size: this.controlSize, disabled: this.disabled, required: this.required, placeholder: this.placeholder, multiple: this.multiple,
|
|
3501
3579
|
// Events
|
|
3502
3580
|
onInput: this.handleInput, onChange: this.handleChange, onFocusout: this.handleBlur, onFocusin: () => this.inputFocus.emit(),
|
|
3503
3581
|
// Suppress native invalid popup
|
|
3504
|
-
onInvalid: (e) => e.preventDefault(), exportparts: "control, listbox", ref: el => (this.dropdownRef = el) }, index.h("fluent-listbox", { key: '
|
|
3582
|
+
onInvalid: (e) => e.preventDefault(), exportparts: "control, listbox", ref: el => (this.dropdownRef = el) }, index.h("fluent-listbox", { key: '1712ef4796ed9118725f9749ecbb4f056a2c3828' }, (this.loading || this.internalLoading) && (index.h("fluent-option", { key: 'd05adea606a5ab51263c523071e0a500b84a26a3', disabled: true, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, index.h("span", { key: '93f78e1d2018e9ecd68424283a6b606f7d5fcafd' }, "Loading..."), index.h("span", { key: '65c89d6f7e04f382487d2d38b970f510e1d9bc65', slot: "indicator" }))), !this.loading && !this.internalLoading && visibleCount === 0 && !this.freeForm && (index.h("fluent-option", { key: '691c2087c550379c915d6009a649e16aaf831b7a', disabled: true, value: "empty", ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, "No options available")), !this.loading &&
|
|
3505
3583
|
!this.internalLoading &&
|
|
3506
3584
|
(displayOptions === null || displayOptions === void 0 ? void 0 : displayOptions.length) > 0 &&
|
|
3507
3585
|
(() => {
|
|
@@ -3532,7 +3610,7 @@ const UdpAutocomplete = class {
|
|
|
3532
3610
|
} }, optIcon && this.iconPosition === 'start' && (index.h("span", { slot: "start", class: "option-icon-slot" }, index.h("udp-fluent-icon", { name: optIcon, size: "sm" }))), optLabel, optIcon && this.iconPosition === 'end' && (index.h("span", { class: "option-icon-end", style: { pointerEvents: 'none', marginLeft: '4px' } }, index.h("udp-fluent-icon", { name: optIcon, size: "sm" }))), this.renderBadges(optBadges)));
|
|
3533
3611
|
});
|
|
3534
3612
|
return nodes;
|
|
3535
|
-
})(), this.freeForm && (index.h("fluent-option", { key: '
|
|
3613
|
+
})(), this.freeForm && (index.h("fluent-option", { key: '0d8d62ae5341831f3d305ea7cb91c8286dfa0ca0', freeform: true }, index.h("output", { key: 'bba3b3fb94850b416a1ea4aafdd6eb75b60f9fbc' })))), index.h("div", { key: '58331076d6c4db30d1cd0d7e22819bda247f6de9', slot: "indicator", class: "indicator-wrapper" }, index.h("udp-fluent-icon-button", { key: '9347ee56ea89f8e1c9be5fcb6a13a5aa3bc6a3f2', class: {
|
|
3536
3614
|
'clear-button': true,
|
|
3537
3615
|
'is-visible': !this.disabled &&
|
|
3538
3616
|
(this.filterText !== '' ||
|
|
@@ -3540,10 +3618,10 @@ const UdpAutocomplete = class {
|
|
|
3540
3618
|
(this.multiple &&
|
|
3541
3619
|
Array.isArray(this.value) &&
|
|
3542
3620
|
this.value.length > 0)),
|
|
3543
|
-
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), index.h("udp-fluent-icon", { key: '
|
|
3621
|
+
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), index.h("udp-fluent-icon", { key: '662df827d72ee3fd5b879db45c2115779f69a895', name: "chevron-down", size: "sm", class: "chevron-down", onClick: () => this.handleTogglePopover(false) }))), overlayOption && (index.h("div", { key: '04885cd3a7ca59c5efa9c3caf307d957deb96877', class: "selected-overlay", "aria-hidden": "true" }, index.h("span", { key: '1ba24d42ac8dfe6a1a8f6390d4a68bf5288558ac', class: "selected-label" }, overlayLabel), this.renderBadges(overlayBadges)))), index.h("div", { key: 'd956cc5bb911be2b84fcc8baaadc03f50cba20f1', class: {
|
|
3544
3622
|
'message-wrapper': true,
|
|
3545
3623
|
'includeErrorPadding': this.includeErrorPadding,
|
|
3546
|
-
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, index.h("udp-text", { key: '
|
|
3624
|
+
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, index.h("udp-text", { key: '9d10de86797308fd9b9b7598a9f9aa3523b7ad17', variant: "caption1", class: {
|
|
3547
3625
|
message: true,
|
|
3548
3626
|
error: hasError,
|
|
3549
3627
|
} }, message)))));
|
|
@@ -3609,7 +3687,7 @@ const UdpAvatar = class {
|
|
|
3609
3687
|
else {
|
|
3610
3688
|
style['background-color'] = this.getColorForUsername();
|
|
3611
3689
|
}
|
|
3612
|
-
return (index.h("div", { key: '
|
|
3690
|
+
return (index.h("div", { key: '3b327dcb6724cd0239fdc774d61bca2bcbaa8118', class: classes.join(' '), style: style }, this.iconName ? index.h("udp-icon", { iconName: this.iconName, darkIcon: false }) : index.h("unity-typography", { variant: "data-display-two" }, " ", this.getInitial())));
|
|
3613
3691
|
}
|
|
3614
3692
|
};
|
|
3615
3693
|
UdpAvatar.style = udpAvatarCss();
|
|
@@ -3624,7 +3702,7 @@ const UdpBadge = class {
|
|
|
3624
3702
|
}
|
|
3625
3703
|
render() {
|
|
3626
3704
|
const displayContent = this.content > this.max ? `${this.max}+` : this.content;
|
|
3627
|
-
return (index.h("div", { key: '
|
|
3705
|
+
return (index.h("div", { key: '6342e2b951c3cdb08266639c4591d8e0b5e41025', class: "badge-wrapper" }, index.h("slot", { key: '20ecbfe2c069919e57c49e290b5873eeaf2cd7b5' }), index.h("span", { key: '7a8b8a8dd5a05ff6f37b751365dfcefb33facaf1', class: "badge-content" }, index.h("unity-typography", { key: 'ab34efc8406ac5340702898532bd9f8995201ccc', variant: 'caption-text' }, " ", displayContent, " "))));
|
|
3628
3706
|
}
|
|
3629
3707
|
};
|
|
3630
3708
|
UdpBadge.style = udpBadgeCss();
|
|
@@ -3781,7 +3859,7 @@ const UdpChip = class {
|
|
|
3781
3859
|
[`chip--size-${this.size}`]: true,
|
|
3782
3860
|
'chip--clickable': this.clickable,
|
|
3783
3861
|
};
|
|
3784
|
-
return (index.h("div", { key: '
|
|
3862
|
+
return (index.h("div", { key: '32876751f5611b1facc9b1ee9a0ba6380e558d1a', class: chipClasses, onClick: this.handleChipClick }, this.startIcon && (index.h("span", { key: '2aeb3f4152d1010ccd7af3a8ed5ac535d24dfec0', class: "chip__icon chip__icon--start" }, index.h("udp-icon", { key: '3cfb645e5e73d909a04032076eaaa4cefbc5ed75', iconName: this.startIcon, color: 'inherit' }))), index.h("span", { key: '27c7b73be43aeabd3a656099ecc02203adf789f8', class: "chip__label" }, this.label), this.deleteButton && (index.h("span", { key: '0ce21e782d0e6be1ce4206a7f7947f7926841e41', class: "chip__delete-icon", onClick: this.handleDeleteClick, title: "Remove" }, index.h("svg", { key: 'f34e2335e97fc0a6219a59f84ad10bdb60cb2d1d', width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, index.h("path", { key: '31337b47abb0541240dd68dda92211f6976d5cb2', d: "M12 4.7l-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z" }))))));
|
|
3785
3863
|
}
|
|
3786
3864
|
};
|
|
3787
3865
|
UdpChip.style = udpChipCss();
|
|
@@ -3811,14 +3889,6 @@ function getBadgeIconSize(size) {
|
|
|
3811
3889
|
return BADGE_ICON_SIZE_MAP[size];
|
|
3812
3890
|
}
|
|
3813
3891
|
|
|
3814
|
-
/**
|
|
3815
|
-
* Returns true if the host element has any light-DOM child assigned to the given named slot.
|
|
3816
|
-
* Works correctly with web component children (which have no light-DOM children or text of their own).
|
|
3817
|
-
*/
|
|
3818
|
-
function hasSlotContent(hostEl, slotName) {
|
|
3819
|
-
return !!hostEl.querySelector(`[slot="${slotName}"]`);
|
|
3820
|
-
}
|
|
3821
|
-
|
|
3822
3892
|
const udpCompoundButtonCss = () => `:host{display:inline-block;position:relative;width:fit-content}:host([loading]) fluent-compound-button{color:transparent !important}:host([loading]) ::slotted(*){visibility:hidden !important}:host([loading]) .slot-wrapper,:host([loading]) .description-wrapper{visibility:hidden}.loading-overlay{position:absolute;top:55%;left:50%;transform:translate(-50%, -50%);z-index:1;pointer-events:none;display:flex;align-items:center;justify-content:center}`;
|
|
3823
3893
|
|
|
3824
3894
|
const UdpCompoundButton = class {
|
|
@@ -3854,11 +3924,11 @@ const UdpCompoundButton = class {
|
|
|
3854
3924
|
this.loading = false;
|
|
3855
3925
|
}
|
|
3856
3926
|
render() {
|
|
3857
|
-
const showStart = hasSlotContent(this.el, 'start') || !!this.startIconName;
|
|
3858
|
-
const showEnd = hasSlotContent(this.el, 'end') || !!this.endIconName;
|
|
3859
|
-
const showDescription = hasSlotContent(this.el, 'description') || !!this.description;
|
|
3927
|
+
const showStart = slotHelpers.hasSlotContent(this.el, 'start') || !!this.startIconName;
|
|
3928
|
+
const showEnd = slotHelpers.hasSlotContent(this.el, 'end') || !!this.endIconName;
|
|
3929
|
+
const showDescription = slotHelpers.hasSlotContent(this.el, 'description') || !!this.description;
|
|
3860
3930
|
const iconSize = getIconSize(this.size, 'prominent');
|
|
3861
|
-
return (index.h(index.Host, { key: '
|
|
3931
|
+
return (index.h(index.Host, { key: '31ace477600d0a0601300fb7554e981fab5efcf6' }, index.h("fluent-compound-button", { key: 'fb687d99efd21363b556885d550919180ba11b12', appearance: this.appearance, disabled: this.disabled || this.loading, "disabled-focusable": this.disabledFocusable, shape: this.shape, size: this.size, "icon-only": this.iconOnly }, showStart && (index.h("span", { key: 'd532d28690aeee18aad88f4f312446bff96c9272', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: '1bd2f13fe4ca7022cc4daf8b0215791625e247c2', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: '8388e8a9aae16e13c36d64f0dbb33173d3ea9eb3', name: this.startIconName, size: iconSize }))))), showDescription && (index.h("span", { key: '31bff98cdff564bcaba3faa671c4bf3b77faa6d3', slot: "description", class: "description-wrapper" }, index.h("slot", { key: '2cd0e10f2a90a0c6db42e65036eac5b67670a111', name: "description" }, this.description))), index.h("slot", { key: '36fff7c9f6c2fe80fc6ef9d8bc218fc3185a84d5' }), showEnd && (index.h("span", { key: 'b2d6cbc7046cd07dd1b2792b86bcf39a144653d4', class: "slot-wrapper", slot: "end" }, index.h("slot", { key: '2a2d87aae3b9e3e4115826ea904fe9681973317d', name: "end" }, this.endIconName && index.h("udp-fluent-icon", { key: 'c99a2eb4d57224301854c3de76064e72391fd7cb', name: this.endIconName, size: iconSize }))))), this.loading && (index.h("div", { key: '4f01d73f6510fe1b7317a4be289a7e8c93f3ca67', class: "loading-overlay" }, index.h("udp-spinner", { key: '0c4ad255d65515f6ea375715f5de6dec8fd156fb', size: this.size === 'large' ? 'extra-small' : 'tiny' })))));
|
|
3862
3932
|
}
|
|
3863
3933
|
get el() { return index.getElement(this); }
|
|
3864
3934
|
};
|
|
@@ -3902,7 +3972,11 @@ const UdpDateInput = class {
|
|
|
3902
3972
|
* - 'MM/DD/YYYY' - US format
|
|
3903
3973
|
* - 'DD/MM/YYYY' - UK/Europe/Canada format
|
|
3904
3974
|
* - 'YYYY/MM/DD' - ISO/China/Japan format
|
|
3905
|
-
*
|
|
3975
|
+
*
|
|
3976
|
+
* @deprecated Use `dateFormat` instead. `format` collides with the reserved
|
|
3977
|
+
* `format` prop of form libraries (e.g. react-final-form's `<Field>`), which
|
|
3978
|
+
* treats it as a value-formatter function. Retained as an alias; `dateFormat`
|
|
3979
|
+
* takes precedence when both are set.
|
|
3906
3980
|
*/
|
|
3907
3981
|
this.format = 'MM/DD/YYYY';
|
|
3908
3982
|
/**
|
|
@@ -4040,6 +4114,11 @@ const UdpDateInput = class {
|
|
|
4040
4114
|
this.isPopoverOpen = !this.isPopoverOpen;
|
|
4041
4115
|
};
|
|
4042
4116
|
}
|
|
4117
|
+
/** Resolved display format. `dateFormat` wins over the deprecated `format`. */
|
|
4118
|
+
get resolvedFormat() {
|
|
4119
|
+
var _a;
|
|
4120
|
+
return (_a = this.dateFormat) !== null && _a !== void 0 ? _a : this.format;
|
|
4121
|
+
}
|
|
4043
4122
|
onValueChange(newValue) {
|
|
4044
4123
|
// Sync external prop to internal state, normalizing through parseDateInput
|
|
4045
4124
|
if (newValue !== this.internalValue) {
|
|
@@ -4047,6 +4126,13 @@ const UdpDateInput = class {
|
|
|
4047
4126
|
this.displayValue = this.formatDateForDisplay(this.internalValue);
|
|
4048
4127
|
}
|
|
4049
4128
|
}
|
|
4129
|
+
onFormatChange() {
|
|
4130
|
+
// The display string is derived from the format. Props are applied
|
|
4131
|
+
// asynchronously (e.g. via the React wrapper), so the format can land after
|
|
4132
|
+
// the value has already been formatted. Re-derive the display from the
|
|
4133
|
+
// canonical internal value whenever the format changes.
|
|
4134
|
+
this.displayValue = this.formatDateForDisplay(this.internalValue);
|
|
4135
|
+
}
|
|
4050
4136
|
componentWillLoad() {
|
|
4051
4137
|
// Initialize internal state from value prop, normalizing through parseDateInput
|
|
4052
4138
|
if (this.value) {
|
|
@@ -4087,7 +4173,7 @@ const UdpDateInput = class {
|
|
|
4087
4173
|
if (!match)
|
|
4088
4174
|
return isoDate; // Return as-is if not valid ISO format
|
|
4089
4175
|
const [, year, month, day] = match;
|
|
4090
|
-
switch (this.
|
|
4176
|
+
switch (this.resolvedFormat) {
|
|
4091
4177
|
case 'MM/DD/YYYY':
|
|
4092
4178
|
return `${month}/${day}/${year}`;
|
|
4093
4179
|
case 'DD/MM/YYYY':
|
|
@@ -4211,12 +4297,12 @@ const UdpDateInput = class {
|
|
|
4211
4297
|
// 4. Current year shorthand: exactly 4 digits (e.g., 0113)
|
|
4212
4298
|
if (/^\d{4}$/.test(cleaned)) {
|
|
4213
4299
|
let month, day;
|
|
4214
|
-
if (this.
|
|
4300
|
+
if (this.resolvedFormat === 'YYYY/MM/DD') {
|
|
4215
4301
|
// For ISO format, interpret as MMDD
|
|
4216
4302
|
month = parseInt(cleaned.substring(0, 2), 10);
|
|
4217
4303
|
day = parseInt(cleaned.substring(2, 4), 10);
|
|
4218
4304
|
}
|
|
4219
|
-
else if (this.
|
|
4305
|
+
else if (this.resolvedFormat === 'DD/MM/YYYY') {
|
|
4220
4306
|
// Day first
|
|
4221
4307
|
day = parseInt(cleaned.substring(0, 2), 10);
|
|
4222
4308
|
month = parseInt(cleaned.substring(2, 4), 10);
|
|
@@ -4235,13 +4321,13 @@ const UdpDateInput = class {
|
|
|
4235
4321
|
if (separatorMatch) {
|
|
4236
4322
|
const [, part1, part2, part3] = separatorMatch.map(Number);
|
|
4237
4323
|
let year, month, day;
|
|
4238
|
-
if (this.
|
|
4324
|
+
if (this.resolvedFormat === 'YYYY/MM/DD' || part1 > 31) {
|
|
4239
4325
|
// Year first or first part is clearly a year
|
|
4240
4326
|
year = part1;
|
|
4241
4327
|
month = part2;
|
|
4242
4328
|
day = part3;
|
|
4243
4329
|
}
|
|
4244
|
-
else if (this.
|
|
4330
|
+
else if (this.resolvedFormat === 'DD/MM/YYYY') {
|
|
4245
4331
|
day = part1;
|
|
4246
4332
|
month = part2;
|
|
4247
4333
|
year = part3;
|
|
@@ -4270,7 +4356,7 @@ const UdpDateInput = class {
|
|
|
4270
4356
|
const [, part1, part2] = twoPartMatch.map(Number);
|
|
4271
4357
|
const year = today.getFullYear();
|
|
4272
4358
|
let month, day;
|
|
4273
|
-
if (this.
|
|
4359
|
+
if (this.resolvedFormat === 'DD/MM/YYYY' || this.resolvedFormat === 'YYYY/MM/DD') {
|
|
4274
4360
|
// For DD/MM and YYYY/MM/DD, when only two parts, assume DD/MM
|
|
4275
4361
|
day = part1;
|
|
4276
4362
|
month = part2;
|
|
@@ -4423,14 +4509,14 @@ const UdpDateInput = class {
|
|
|
4423
4509
|
render() {
|
|
4424
4510
|
const hasError = !!this.error || !!this.internalError;
|
|
4425
4511
|
const message = this.internalError || this.error || this.hint;
|
|
4426
|
-
return (index.h(index.Host, { key: '
|
|
4512
|
+
return (index.h(index.Host, { key: '9a0b36661cc0bc79733f5e5166b0237c74b8055a', class: { 'has-error': hasError, 'disabled': this.disabled } }, index.h("fluent-field", { key: 'fb3070fa56b39354181e4e1df3125a22673e90e4', class: { 'no-message': !message && !this.includeErrorPadding } }, index.h("udp-popover", { key: '671bbd0c71a947b916eb6b4d2c90f632344e6284', slot: "input", open: this.isPopoverOpen, position: "bottom-start", toggleOnTriggerClick: false, onPopoverClose: () => {
|
|
4427
4513
|
this.isPopoverOpen = false;
|
|
4428
4514
|
// Only return focus to input if Escape was pressed (not on click-away)
|
|
4429
4515
|
if (this.restoreFocusOnClose) {
|
|
4430
4516
|
this.restoreFocusOnClose = false;
|
|
4431
4517
|
requestAnimationFrame(() => this.focusInput());
|
|
4432
4518
|
}
|
|
4433
|
-
}, trapFocus: false, closeOnBlur: false }, index.h("fluent-text-input", { key: '
|
|
4519
|
+
}, trapFocus: false, closeOnBlur: false }, index.h("fluent-text-input", { key: '2ed5e9fb7e708f42ad4ee35fd51e12fad200b76e', slot: "trigger", ref: el => (this.inputRef = el), class: { 'no-label': !this.label }, name: this.name, value: this.displayValue, type: "text", required: this.required, disabled: this.disabled, readonly: this.readonly, autofocus: this.autofocus, autocomplete: this.autocomplete, appearance: this.appearance, controlSize: this.controlSize, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onBlur: this.handleBlur, onFocus: () => this.inputFocus.emit(), onClick: this.handleInputClick, onInvalid: (e) => e.preventDefault() }, index.h("fluent-label", { key: '1b52489eca9d175bb163af05831bc8237b6a3ebb', required: this.required, disabled: this.disabled, onMouseDown: this.handleLabelMouseDown }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'f09510db0e4ceb3a36d6d136627c3284df4aad97', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '0521edcfb7bfd0d4423977bf5fa84459e73a6a3c', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("div", { key: '4847d6b093aec40d1997e0a901b30450d1c096de', slot: "end" }, index.h("udp-fluent-icon-button", { key: '0bad521605aa667ecbe4bc515c59c0a3356bc73a', appearance: "transparent", iconName: "calendar", onMouseDown: this.handleIconMouseDown, onClick: this.handleIconClick, disabled: this.disabled || this.readonly, tabindex: -1 }))), index.h("div", { key: 'd4d7bcf356f63a6e48e2e7a0e729fc1f828fee42', slot: "content" }, index.h("udp-date-range-selector", { key: '4eeaf2c5b00ba70e28f7a5ea0f9df78ce8141f62', ref: el => (this.calendarRef = el), monthsToDisplay: 1, value: this.internalValue, onChange: this.handleDateSelect, minDate: this.minDate, maxDate: this.maxDate, isDateDisallowed: this.isDateDisallowed, getDayParts: this.getDayParts, variant: this.dateSelectionType, size: "sm" }), index.h("div", { key: 'e4f15cc0f854b2d3a389202510bb18202a7f236f', class: "footer-buttons" }, index.h("udp-fluent-button", { key: '6c33fee28a778824bd25f9b6785226a21dee0f18', appearance: "transparent", size: "small", onClick: this.handleToday }, "Today"), index.h("udp-fluent-button", { key: '5a1076da7d313e7798d5a95ad38ce77171b9d207', appearance: "transparent", size: "small", onClick: this.handleClear }, "Clear")))), index.h("udp-text", { key: '2291ebb040091ef54a05999d91597967fc6bbbdb', slot: "message", variant: "caption1", class: {
|
|
4434
4520
|
message: true,
|
|
4435
4521
|
error: hasError,
|
|
4436
4522
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -4441,6 +4527,12 @@ const UdpDateInput = class {
|
|
|
4441
4527
|
static get watchers() { return {
|
|
4442
4528
|
"value": [{
|
|
4443
4529
|
"onValueChange": 0
|
|
4530
|
+
}],
|
|
4531
|
+
"format": [{
|
|
4532
|
+
"onFormatChange": 0
|
|
4533
|
+
}],
|
|
4534
|
+
"dateFormat": [{
|
|
4535
|
+
"onFormatChange": 0
|
|
4444
4536
|
}]
|
|
4445
4537
|
}; }
|
|
4446
4538
|
};
|
|
@@ -4917,10 +5009,10 @@ const UdpDateRangeSelector = class {
|
|
|
4917
5009
|
: 'calendar-range';
|
|
4918
5010
|
const containerWidth = this.getContainerWidth();
|
|
4919
5011
|
const monthWidth = this.getMonthWidth();
|
|
4920
|
-
return (index.h(index.Host, { key: '
|
|
5012
|
+
return (index.h(index.Host, { key: '2c96970f661cbad7b66974124e973671d642d7de', style: {
|
|
4921
5013
|
'--calendar-width': monthWidth,
|
|
4922
5014
|
'--container-width': containerWidth,
|
|
4923
|
-
}, class: `size-${this.size}`, onClick: e => e.stopPropagation() }, index.h("div", { key: '
|
|
5015
|
+
}, class: `size-${this.size}`, onClick: e => e.stopPropagation() }, index.h("div", { key: '084e12c39bb72e4d1ce3c8414fbbea4afe191ca9', class: "calendar-header" }, index.h("udp-fluent-icon-button", { key: 'fbee6a6fc28c57c57a0b03608ac52d65de2e8e27', iconName: "chevron-left", onClick: this.handlePrevious, disabled: this.isPrevDisabled(), appearance: "transparent", ariaLabel: "Previous" }), index.h("udp-fluent-button", { key: 'a87df68ad340f894967e885373da7e41ee8a9f26', appearance: "transparent", onClick: this.handleHeaderClick, ariaLabel: this.viewMode === 'year' ? undefined : 'Change view', disabled: this.viewMode === 'year' }, this.getHeaderText()), index.h("udp-fluent-icon-button", { key: 'fa625115fe2dc34de19cdc97d1ca33a5985805a2', iconName: "chevron-right", onClick: this.handleNext, disabled: this.isNextDisabled(), appearance: "transparent", ariaLabel: "Next" })), this.viewMode === 'day' && (index.h(CalendarTag, { key: '15f4e9fe38ac1daa8b1af228a9f950e538590e56', ref: el => (this.calendarRef = el), value: this.value, min: this.minDate, max: this.maxDate, firstDayOfWeek: 0, months: this.monthsToDisplay, showOutsideDays: true, pageBy: "single", isDateDisallowed: this.isDateDisallowed, getDayParts: this.getDayParts, onChange: this.handleChange, onFocusday: this.handleFocusChange }, index.h("span", { key: '292296bc516a3edf9865fb6fd76b9165ff56ce53', slot: "previous", style: { display: 'none' } }), index.h("span", { key: '7f846eb148e7bf1d22c3cfae742f82650f8c3a74', slot: "next", style: { display: 'none' } }), index.h("div", { key: 'df1eda552a64637b8515b282f719d3e2d2f9f0a7', class: "grid" }, Array.from({ length: this.monthsToDisplay }).map((_, index$1) => (index.h("calendar-month", { offset: index$1 })))))), this.viewMode === 'month' && this.renderMonthGrid(), this.viewMode === 'year' && this.renderYearGrid()));
|
|
4924
5016
|
}
|
|
4925
5017
|
static get delegatesFocus() { return true; }
|
|
4926
5018
|
static get watchers() { return {
|
|
@@ -4949,7 +5041,14 @@ const UdpDateTimeInput = class {
|
|
|
4949
5041
|
this.controlSize = 'medium';
|
|
4950
5042
|
/** When true, the date and time inputs stack vertically instead of sitting side-by-side. */
|
|
4951
5043
|
this.stacked = false;
|
|
4952
|
-
/**
|
|
5044
|
+
/**
|
|
5045
|
+
* Date display format.
|
|
5046
|
+
*
|
|
5047
|
+
* @deprecated Use `dateFormat` instead. `format` collides with the reserved
|
|
5048
|
+
* `format` prop of form libraries (e.g. react-final-form's `<Field>`), which
|
|
5049
|
+
* treats it as a value-formatter function. Retained as an alias; `dateFormat`
|
|
5050
|
+
* takes precedence when both are set.
|
|
5051
|
+
*/
|
|
4953
5052
|
this.format = 'MM/DD/YYYY';
|
|
4954
5053
|
/** Whether to reserve space for error/helper text to prevent layout shift. */
|
|
4955
5054
|
this.includeErrorPadding = true;
|
|
@@ -5015,10 +5114,11 @@ const UdpDateTimeInput = class {
|
|
|
5015
5114
|
this.valueChanged.emit(newValue);
|
|
5016
5115
|
}
|
|
5017
5116
|
render() {
|
|
5117
|
+
var _a;
|
|
5018
5118
|
// If a main label is provided (for date) but no time label, default time label to a non-breaking space
|
|
5019
5119
|
// to maintain vertical alignment (ensuring the time input isn't pushed up).
|
|
5020
5120
|
const effectiveTimeLabel = this.timeLabel === undefined && this.label ? '\u00A0' : this.timeLabel;
|
|
5021
|
-
return (index.h(index.Host, { key: '
|
|
5121
|
+
return (index.h(index.Host, { key: 'c5f2626be05022bd5b05264a1c0f1a9fe8b81e9a' }, index.h("div", { key: '336f70d6084846e6a42f73cbb375e7f0a754804c', class: "date-part" }, index.h("udp-date-input", { key: 'a686ee90c7787b3698dcb2ea901db7789b3bc6f9', name: `${this.name}-date`, value: this.datePart, required: this.required, disabled: this.disabled, autofocus: this.autofocus, appearance: this.appearance, controlSize: this.controlSize, dateFormat: (_a = this.dateFormat) !== null && _a !== void 0 ? _a : this.format, minDate: this.minDate, maxDate: this.maxDate, isDateDisallowed: this.isDateDisallowed, getDayParts: this.getDayParts, error: this.error, includeErrorPadding: this.includeErrorPadding, onValueChanged: this.handleDateChange, label: this.label, popupHint: this.popupHint })), index.h("div", { key: 'a7e909e6b4c4c8cb4393db2bfef4301210056d2e', class: "time-part" }, index.h("udp-time-input", { key: '27e64a895965012ae06c64e2335fe56aad87c8b1', name: `${this.name}-time`, value: this.timePart, required: false, disabled: this.disabled, appearance: this.appearance, controlSize: this.controlSize, label: effectiveTimeLabel, minuteStep: this.minuteStep, use24Hour: this.use24Hour, onValueChanged: this.handleTimeChange, includeErrorPadding: this.includeErrorPadding, error: this.error ? ' ' : undefined }))));
|
|
5022
5122
|
}
|
|
5023
5123
|
static get watchers() { return {
|
|
5024
5124
|
"value": [{
|
|
@@ -5081,7 +5181,7 @@ const UdpDialog = class {
|
|
|
5081
5181
|
document.removeEventListener('keydown', this.handleKeyDown);
|
|
5082
5182
|
}
|
|
5083
5183
|
render() {
|
|
5084
|
-
return (index.h(index.Host, { key: '
|
|
5184
|
+
return (index.h(index.Host, { key: 'ebd57020d1445185156758ba5b4c58912e37ff60', onClick: this.handleOverlayClick }, index.h("div", { key: '697ac1a1b4bea0b750757ab0bc67ed4e95e49b0b', class: "dialog-container", role: "dialog", "aria-modal": "true", "aria-labelledby": this.titleId, "aria-describedby": this.descriptionId, onClick: (event) => event.stopPropagation() }, index.h("div", { key: '0c15bc8eb8163197d27c071614f8ebba35b23b7a', class: "dialog-title", id: this.titleId }, index.h("unity-typography", { key: 'de5509f0b795d780477da91a0652b1af9e97b99f', variant: "h3" }, this.title)), index.h("div", { key: '7f1f33a03fbbb9747a0753f25b26ee6f99b41f58', class: "dialog-content", id: this.descriptionId }, this.message && index.h("unity-typography", { key: '1be061beec7f3b146a2d9be5fa856731afa7a538', variant: "body" }, this.message), index.h("slot", { key: '264cbeffac8277fa43d7bd8c358bdd63b6ce7fb8' })), index.h("div", { key: 'b93585af45896c7eff9e9a7f3b75fcacb2a621fb', class: "dialog-actions" }, !this.buttonTwoHidden && (index.h("udp-button", { key: '64db3289e7ceb16fb309f467e2a72d91a114efdf', variant: 'text', disabled: this.disableTwo, onClick: () => this.actionTwo() }, this.labelTwo)), !this.buttonThreeHidden && (index.h("udp-button", { key: '1b13d2ad75de0d9103fd65dc4a8f40c7bdf34414', variant: 'text', disabled: this.disableThree, onClick: () => this.actionThree() }, this.labelThree)), !this.buttonOneHidden && (index.h("udp-button", { key: '0fb08c9b1bd7c9dfe4b9146e97b93f63b55184ce', variant: 'contained', disabled: this.disableOne, onClick: () => this.actionOne(), loading: !!this.progress }, this.labelOne))))));
|
|
5085
5185
|
}
|
|
5086
5186
|
get hostEl() { return index.getElement(this); }
|
|
5087
5187
|
static get watchers() { return {
|
|
@@ -5316,7 +5416,7 @@ const UdpField = class {
|
|
|
5316
5416
|
}
|
|
5317
5417
|
}
|
|
5318
5418
|
render() {
|
|
5319
|
-
return index.h("slot", { key: '
|
|
5419
|
+
return index.h("slot", { key: 'c0c41371f917711db207012183ccf41a9332cc7f' });
|
|
5320
5420
|
}
|
|
5321
5421
|
get el() { return index.getElement(this); }
|
|
5322
5422
|
};
|
|
@@ -5464,7 +5564,7 @@ const UdpFluentAvatar = class {
|
|
|
5464
5564
|
}
|
|
5465
5565
|
render() {
|
|
5466
5566
|
const imgBorderRadius = this.getImageBorderRadius();
|
|
5467
|
-
return (index.h(index.Host, { key: '
|
|
5567
|
+
return (index.h(index.Host, { key: 'ea07d2bf001f6ece0690b2ea03cf70a57a29623d' }, index.h("fluent-avatar", { key: '068a2fc78714e7ae28c9598e84ab845c5cc8f18d', active: this.active, shape: this.shape, appearance: this.appearance, size: this.size, color: this.color, name: this.name, initials: this.initials }, this.src ? (index.h("img", { src: this.src, alt: this.alt, style: Object.assign({ objectFit: 'cover' }, (imgBorderRadius ? { borderRadius: imgBorderRadius } : {})) })) : this.iconName ? (index.h("udp-fluent-icon", { name: this.iconName, variant: this.iconVariant, size: this.getIconSize() })) : null, index.h("slot", { key: 'bb0408b42e6464c6f035afdfacf5e449d36d1500', name: "badge", slot: "badge" }))));
|
|
5468
5568
|
}
|
|
5469
5569
|
};
|
|
5470
5570
|
UdpFluentAvatar.style = udpFluentAvatarCss();
|
|
@@ -5506,7 +5606,7 @@ const UdpFluentBadge = class {
|
|
|
5506
5606
|
this.ready = true;
|
|
5507
5607
|
}
|
|
5508
5608
|
render() {
|
|
5509
|
-
return (index.h(index.Host, { key: '
|
|
5609
|
+
return (index.h(index.Host, { key: 'f106363d80eaee1e89bed50a3526d1134b82346f', class: { ready: this.ready } }, index.h("fluent-badge", { key: 'f7e59d650b21359f37e9fee7327e28b5928f3864', appearance: this.appearance, color: this.color, shape: this.shape, size: this.size }, (this.startIconName || slotHelpers.hasSlotContent(this.el, 'start')) && (index.h("span", { key: '7e100952cd282baa92c4982d58b66d700f16eebf', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: '60ce857b7854957204e7eae34934493cda344f86', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: '77a62d832aa73d390a289720e435fd282a089825', name: this.startIconName, size: getBadgeIconSize(this.size) }))))), index.h("span", { key: '64edd1b1c3f4ee318867c9a18ee22fb9b3b3f814', class: "default-slot" }, index.h("slot", { key: '8d24330a18c5284a1555f4911b31ce306e90b070' })), this.dismissible ? (index.h("button", { type: "button", class: "dismiss-button", slot: "end", "aria-label": this.dismissLabel, onClick: this.handleDismiss, onMouseDown: (e) => e.preventDefault() }, index.h("udp-fluent-icon", { name: "dismiss", size: getBadgeIconSize(this.size) }))) : ((this.endIconName || slotHelpers.hasSlotContent(this.el, 'end')) && (index.h("span", { class: "slot-wrapper", slot: "end" }, index.h("slot", { name: "end" }, this.endIconName && (index.h("udp-fluent-icon", { name: this.endIconName, size: getBadgeIconSize(this.size) })))))))));
|
|
5510
5610
|
}
|
|
5511
5611
|
get el() { return index.getElement(this); }
|
|
5512
5612
|
};
|
|
@@ -5589,7 +5689,7 @@ const UdpFluentButton = class {
|
|
|
5589
5689
|
const iconSize = getIconSize(this.size);
|
|
5590
5690
|
const isDisabled = this.disabled || this.loading;
|
|
5591
5691
|
const isLoading = this.loading;
|
|
5592
|
-
return (index.h(index.Host, { key: '
|
|
5692
|
+
return (index.h(index.Host, { key: '90f25d959e28de4dbfe1c327c7be676281efdd9e' }, index.h("fluent-button", { key: 'a7f2c909ae7e4c62980dc368ff526715df9c1bb3', appearance: this.appearance, disabled: isDisabled, "disabled-focusable": this.disabledFocusable, shape: this.shape, size: this.size, "icon-only": this.iconOnly, type: this.type, form: this.form, onClick: this.handleClick, tabindex: this.tabIndex, part: "button", exportparts: "content" }, (this.startIconName || slotHelpers.hasSlotContent(this.el, 'start')) && (index.h("span", { key: '8e27b98fa219865d093a20d1a7acd2edc63ac18d', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: '1dfaf4c088cef572412b6a994966c6a119c3f638', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: 'f7fd479646258446d1073f8788f1325b96e00102', name: this.startIconName, size: iconSize }))))), index.h("slot", { key: '5cabc194a63ff1ee32702a18b74d030fe928688e' }), (this.endIconName || slotHelpers.hasSlotContent(this.el, 'end')) && (index.h("span", { key: 'd54b3794e0e5ba112d36cfd488d1a2cbc33dd6ca', class: "slot-wrapper", slot: "end" }, index.h("slot", { key: '4967bb4f4517352fcd91c45df2709113153d39fb', name: "end" }, this.endIconName && index.h("udp-fluent-icon", { key: 'b44ea8c06021c2fa9372d1e5f46e22426cc3535b', name: this.endIconName, size: iconSize }))))), isLoading && (index.h("div", { key: 'f01bd40fab37e673c1ddef97f946ed359cd761ae', class: "loading-overlay" }, index.h("udp-spinner", { key: '5b7da1b3503cb520ec2703f4c3e0235753a1b780', size: this.size === 'large' ? 'extra-small' : 'tiny' })))));
|
|
5593
5693
|
}
|
|
5594
5694
|
get el() { return index.getElement(this); }
|
|
5595
5695
|
};
|
|
@@ -5638,29 +5738,29 @@ const UdpFluentCard = class {
|
|
|
5638
5738
|
}
|
|
5639
5739
|
checkSlots() {
|
|
5640
5740
|
if (this.el) {
|
|
5641
|
-
this.hasHeader = hasSlotContent(this.el, 'header');
|
|
5642
|
-
this.hasHeaderStart = hasSlotContent(this.el, 'header-start');
|
|
5643
|
-
this.hasHeaderAction = hasSlotContent(this.el, 'header-action');
|
|
5644
|
-
this.hasPreview = hasSlotContent(this.el, 'preview');
|
|
5645
|
-
this.hasFooter = hasSlotContent(this.el, 'footer');
|
|
5741
|
+
this.hasHeader = slotHelpers.hasSlotContent(this.el, 'header');
|
|
5742
|
+
this.hasHeaderStart = slotHelpers.hasSlotContent(this.el, 'header-start');
|
|
5743
|
+
this.hasHeaderAction = slotHelpers.hasSlotContent(this.el, 'header-action');
|
|
5744
|
+
this.hasPreview = slotHelpers.hasSlotContent(this.el, 'preview');
|
|
5745
|
+
this.hasFooter = slotHelpers.hasSlotContent(this.el, 'footer');
|
|
5646
5746
|
}
|
|
5647
5747
|
}
|
|
5648
5748
|
render() {
|
|
5649
|
-
return (index.h(index.Host, { key: '
|
|
5749
|
+
return (index.h(index.Host, { key: 'f4673f365aaa3754f7a5ab3625e09ed37b3c3b83', class: {
|
|
5650
5750
|
[`appearance-${this.appearance}`]: true,
|
|
5651
5751
|
[`orientation-${this.orientation}`]: true,
|
|
5652
5752
|
interactive: this.interactive,
|
|
5653
5753
|
}, style: {
|
|
5654
5754
|
width: this.width,
|
|
5655
5755
|
height: this.height,
|
|
5656
|
-
}, tabIndex: this.interactive ? 0 : undefined }, index.h("div", { key: '
|
|
5756
|
+
}, tabIndex: this.interactive ? 0 : undefined }, index.h("div", { key: '6ada15fb6e6db1f5a3bf1fcf9732b4f165353f5c', class: { 'card-preview': true, 'hidden': !this.hasPreview } }, index.h("slot", { key: '5bc565785eae0fa6d51aadaf4dd9a5d09c25b95e', name: "preview", onSlotchange: this.handleSlotChange })), index.h("div", { key: '06a886a5c8a5724d01b849cce30e8a43343e9a5a', class: {
|
|
5657
5757
|
'card-header': true,
|
|
5658
5758
|
'hidden': !(this.hasHeader ||
|
|
5659
5759
|
this.hasHeaderStart ||
|
|
5660
5760
|
this.label ||
|
|
5661
5761
|
this.subtitle ||
|
|
5662
5762
|
this.hasHeaderAction),
|
|
5663
|
-
} }, index.h("div", { key: '
|
|
5763
|
+
} }, index.h("div", { key: '137791edcc47f51450bbe773d208a4d7faf9879f', class: { 'card-header-start': true, 'hidden': !this.hasHeaderStart } }, index.h("slot", { key: '7bf3fafc41b70124bb66032c072063b184b35791', name: "header-start", onSlotchange: this.handleSlotChange })), index.h("div", { key: '7e1853490e0d80fa9f1f9b956b61242dd302e0e4', class: "card-header-content" }, index.h("slot", { key: '3caefe16048c6eb164dfa7781b25317863588c73', name: "header", onSlotchange: this.handleSlotChange }, (this.label || this.subtitle) && (index.h("div", { key: 'f30637632f9f6ac6e3d2098095a6327b88ed4610', class: "header-content-wrapper" }, this.label && index.h("udp-text", { key: 'fe9d5ba8574c1e6cc863145292ed356b58832fa3', variant: "subtitle2" }, this.label), this.subtitle && (index.h("udp-text", { key: '2540c4bd163231c5b14f416bf1e40ab058b31fe8', variant: "caption1", class: "header-subtitle" }, this.subtitle)))))), index.h("udp-flexbox", { key: 'a68c0340da8d1d8df5d59f1bfbe5fa6deb0de8c6', class: { hidden: !this.hasHeaderAction }, direction: "row" }, index.h("slot", { key: '48515b7125c4c0bd7f1fbfa5af0e63dfa868ce06', name: "header-action", onSlotchange: this.handleSlotChange }))), index.h("div", { key: '3ce3091c57d5514d4291b3a574d254678fe66605', class: { 'card-body': true, 'no-padding': !this.bodyPadding } }, index.h("slot", { key: '55ed56e28753ec208356f90646ad91b808815bda' })), index.h("udp-flexbox", { key: '31a4a538ac81822e34539834e51257de6a7592d3', class: { 'card-footer': true, 'hidden': !this.hasFooter }, direction: "row" }, index.h("slot", { key: '58203616e83c77ca159aa871175e54f03fa19ef5', name: "footer", onSlotchange: this.handleSlotChange }))));
|
|
5664
5764
|
}
|
|
5665
5765
|
get el() { return index.getElement(this); }
|
|
5666
5766
|
};
|
|
@@ -5724,7 +5824,7 @@ const UdpFluentCheckbox = class {
|
|
|
5724
5824
|
render() {
|
|
5725
5825
|
const hasError = !!this.error;
|
|
5726
5826
|
const message = this.error || this.hint;
|
|
5727
|
-
return (index.h(index.Host, { key: '
|
|
5827
|
+
return (index.h(index.Host, { key: '555c6212a5afb2d42e070801f4e59f22edd2777c' }, index.h("fluent-field", { key: 'ff43d164636d41b2802c4a4b0df306f9ef04e105', "label-position": this.labelPosition, class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, index.h("fluent-label", { key: 'ef7f13da0b46f7e492de09101a1366a1b86a29be', slot: "label", disabled: this.disabled, onClick: this.handleLabelClick }, this.label, this.popupHint && (index.h("udp-tooltip", { key: '971fbb4c6fe5ea4954440c8550d7104455291da5', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '84dc5caf9af0db0bc7de5cba520fd8d67a9023a7', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("fluent-checkbox", { key: '69fe6dfaf9df48aa71cc5573c46d12a5c413b03a', ref: (el) => (this.internalCheckbox = el), slot: "input", name: this.name, checked: this.checked, indeterminate: this.indeterminate, disabled: this.disabled, shape: this.shape, size: this.controlSize, autofocus: this.autofocus, onChange: this.handleChange }), index.h("udp-text", { key: '58bab00d4eccf1b3b801090a4f64821811544f97', slot: "message", variant: "caption1", class: {
|
|
5728
5828
|
message: true,
|
|
5729
5829
|
error: hasError,
|
|
5730
5830
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -5750,7 +5850,7 @@ const UdpFluentCounterBadge = class {
|
|
|
5750
5850
|
this.dot = false;
|
|
5751
5851
|
}
|
|
5752
5852
|
render() {
|
|
5753
|
-
return (index.h(index.Host, { key: '
|
|
5853
|
+
return (index.h(index.Host, { key: '6d59bd6cf1513c226d55ac32218fcc1d5e775d2a' }, index.h("fluent-counter-badge", { key: '66540dc45927980a937002819c592fd01332875c', appearance: this.appearance, color: this.color, shape: this.shape, size: this.size, count: this.count, "overflow-count": this.overflowCount, "show-zero": this.showZero, dot: this.dot }, index.h("slot", { key: '7fbe6bd20471101e3b3897f3389901972aec71f0', name: "start", slot: "start" }), this.count === undefined && index.h("slot", { key: '3df44bd9fee4d2ba2537b47f5092facc8827be0d' }), index.h("slot", { key: 'f1818aedfa302119d6c1d223e00ce8b071910053', name: "end", slot: "end" }))));
|
|
5754
5854
|
}
|
|
5755
5855
|
};
|
|
5756
5856
|
UdpFluentCounterBadge.style = udpFluentCounterBadgeCss();
|
|
@@ -5814,7 +5914,7 @@ const UdpFluentDialog = class {
|
|
|
5814
5914
|
}
|
|
5815
5915
|
}
|
|
5816
5916
|
render() {
|
|
5817
|
-
return (index.h(index.Host, { key: '
|
|
5917
|
+
return (index.h(index.Host, { key: 'bdc6a742e8edd7617221e3455cd4a34bb8c56765', style: { '--dialog-max-height': this.maxHeight } }, index.h("fluent-dialog", { key: '154d4652d77e56243775e49df95ba2949c387ed6', ref: this.setDialogRef, type: this.type, onToggle: this.handleToggle }, index.h("fluent-dialog-body", { key: 'c8fb1b45882f05b26929814f4b6857f6a2192254' }, index.h("slot", { key: '8d4a10893c21404f517d0568c12d0dfab6906322', name: "header", slot: "title" }, this.dialogTitle && index.h("udp-fluent-text", { key: '1d8c12414b78c0dc9598529e96f5cd1709a9c2d6' }, this.dialogTitle)), this.showHeaderCloseButton && (index.h("udp-fluent-icon-button", { key: 'f6601c314e32a74a89d603c9ea899c3ea58026d0', slot: "close", appearance: "subtle", iconName: "dismiss", ariaLabel: "Close Dialog" })), index.h("div", { key: 'c317d7af79b48a39308c9778f779e2cc698bc35d', class: "dialog-content" }, index.h("slot", { key: 'f7f688477f49c2a201ce91f6b8ce02384600d9cf' })), index.h("udp-flexbox", { key: '57f73d7491219fa5311ac0caaa074b52fa00988a', slot: "action", direction: "row" }, index.h("slot", { key: 'faad63095de48894e82c9d70c87d3d9730c78ba4', name: "action" }))))));
|
|
5818
5918
|
}
|
|
5819
5919
|
get el() { return index.getElement(this); }
|
|
5820
5920
|
static get watchers() { return {
|
|
@@ -5838,7 +5938,7 @@ const UdpFluentDivider = class {
|
|
|
5838
5938
|
this.orientation = 'horizontal';
|
|
5839
5939
|
}
|
|
5840
5940
|
render() {
|
|
5841
|
-
return (index.h(index.Host, { key: '
|
|
5941
|
+
return (index.h(index.Host, { key: 'f85009a84bb481a0ba52fed82c3d26021be81b67', style: { background: 'transparent' } }, index.h("fluent-divider", { key: 'f237b3c0842bc7ed6ea19343e3dbee2a74b9a74d', "align-content": this.alignContent, appearance: this.appearance, inset: this.inset, role: this.role, orientation: this.orientation }, index.h("slot", { key: 'f08a91b63a1b88d059ecf6a03688675e8a61f841' }))));
|
|
5842
5942
|
}
|
|
5843
5943
|
};
|
|
5844
5944
|
|
|
@@ -6177,7 +6277,7 @@ const UdpFluentDrawer = class {
|
|
|
6177
6277
|
}
|
|
6178
6278
|
}
|
|
6179
6279
|
render() {
|
|
6180
|
-
return (index.h(index.Host, { key: '
|
|
6280
|
+
return (index.h(index.Host, { key: '45b1f4b2583f7e77fd033c162c15b1115e49ac8f', class: { 'has-footer': this.hasFooter } }, index.h("fluent-drawer", { key: '63eb8dec0d50001a00f25feb3ba1e0f7b7fdc132', ref: this.setDrawerRef, onToggle: this.handleToggle, type: "modal", position: this.position, size: this.effectiveSize }, index.h("fluent-drawer-body", { key: '04abd30d742279e395f4271847e8de12c26a5235' }, index.h("udp-text", { key: 'a9196ab5508a93901ae4a3f674f6a57c8d80f09b', variant: "subtitle1", slot: "title" }, this.drawerTitle), index.h("udp-fluent-icon-button", { key: '723f3d8af9739883b236d9eaef49fb4d8a9ca97f', slot: "close", appearance: "subtle", iconName: "dismiss", "aria-label": "close" }), this.hasToolbar && (index.h("udp-flexbox", { key: 'd26a9652357c47d072acd3a2e2d498a3ddc13973', class: "drawer-toolbar", direction: "row", width: "100%" }, index.h("slot", { key: 'f79e5ebc5c04127907bee559467c69ae97e8b208', name: "toolbar" }))), index.h("div", { key: '24ff4b4102b64248534fecbed9c8b0583586948e', class: "drawer-scroll-container", ref: el => (this.contentRef = el), onScroll: this.handleScroll }, index.h("div", { key: 'd563034faa7be9798d629b1300f79780dd0dfd8e', class: `scroll-shadow top ${this.showTopShadow ? 'visible' : ''}` }), index.h("div", { key: '33411705f0a93d13fe7669ea93bd43b9902ef2f1', class: `drawer-content-inner${this.excludeVerticalPadding ? '' : ' vertical-padding'}` }, index.h("slot", { key: '59d98bbdc85d325a854f6d17f29f5493356dbf92' })), index.h("div", { key: '4260000ac7c4cfdb963edb7cd2ecdcd19aff7f2e', class: `scroll-shadow bottom ${this.showBottomShadow ? 'visible' : ''}` })), this.hasFooter && (index.h("udp-flexbox", { key: '0453a08e0c9a29236a8f3bd8ea49bbb5e2214538', slot: "footer", direction: "row" }, index.h("slot", { key: '9e7a06250114e7a9a849c67439f35aedf6c5ce8a', name: "footer" })))))));
|
|
6181
6281
|
}
|
|
6182
6282
|
get el() { return index.getElement(this); }
|
|
6183
6283
|
static get watchers() { return {
|
|
@@ -6279,6 +6379,23 @@ const UdpFluentDropdown = class {
|
|
|
6279
6379
|
* Whether the dropdown shows a clear button when a value is selected.
|
|
6280
6380
|
*/
|
|
6281
6381
|
this.clearable = false;
|
|
6382
|
+
/**
|
|
6383
|
+
* Controls the shape of the `valueChanged` payload (see that event's docs):
|
|
6384
|
+
* - `'option'` (default): emit the matched option **object** from `options`
|
|
6385
|
+
* (legacy behavior). Convenient when the consumer wants the full option
|
|
6386
|
+
* (label, metadata) on change.
|
|
6387
|
+
* - `'value'`: emit the scalar resolved via `optionValue` (a `string`, or
|
|
6388
|
+
* `string[]` in `multiple` mode). This is what form bindings want — the
|
|
6389
|
+
* stored value is the option's id, not the object. Set this when wiring the
|
|
6390
|
+
* dropdown into a form (Final Form / react-hook-form / `udp-field`).
|
|
6391
|
+
*
|
|
6392
|
+
* @remarks Default is `'option'` to preserve existing behavior. A future
|
|
6393
|
+
* major version is expected to flip the default to `'value'`, since emitting
|
|
6394
|
+
* the scalar matches the convention of most component libraries (MUI, Ant
|
|
6395
|
+
* Design, Vuetify, Element) and avoids the "[object Object]" / stale-option
|
|
6396
|
+
* class of bug in form contexts.
|
|
6397
|
+
*/
|
|
6398
|
+
this.valueAs = 'option';
|
|
6282
6399
|
this.showClearButton = false;
|
|
6283
6400
|
/**
|
|
6284
6401
|
* Tracks the current selection so the overlay works uncontrolled.
|
|
@@ -6353,7 +6470,7 @@ const UdpFluentDropdown = class {
|
|
|
6353
6470
|
}
|
|
6354
6471
|
this.selectionForOverlay = currentValues;
|
|
6355
6472
|
this.showClearButton = currentValues.length > 0;
|
|
6356
|
-
this.valueChanged.emit(currentValues);
|
|
6473
|
+
this.valueChanged.emit(currentValues.map(v => this.toEmitValue(v)));
|
|
6357
6474
|
ev.preventDefault();
|
|
6358
6475
|
ev.stopPropagation();
|
|
6359
6476
|
}
|
|
@@ -6408,7 +6525,7 @@ const UdpFluentDropdown = class {
|
|
|
6408
6525
|
const originalOption = this.findOptionByValue(option.value);
|
|
6409
6526
|
return originalOption !== undefined ? originalOption : option.value;
|
|
6410
6527
|
});
|
|
6411
|
-
this.valueChanged.emit(values);
|
|
6528
|
+
this.valueChanged.emit(values.map(v => this.toEmitValue(v)));
|
|
6412
6529
|
this.showClearButton = values.length > 0;
|
|
6413
6530
|
this.selectionForOverlay = values;
|
|
6414
6531
|
}
|
|
@@ -6416,7 +6533,7 @@ const UdpFluentDropdown = class {
|
|
|
6416
6533
|
const val = this.dropdownRef.value;
|
|
6417
6534
|
const originalOption = this.findOptionByValue(val);
|
|
6418
6535
|
const emitValue = originalOption !== undefined ? originalOption : val;
|
|
6419
|
-
this.valueChanged.emit(emitValue);
|
|
6536
|
+
this.valueChanged.emit(this.toEmitValue(emitValue));
|
|
6420
6537
|
this.showClearButton = val != null;
|
|
6421
6538
|
this.selectionForOverlay = emitValue;
|
|
6422
6539
|
}
|
|
@@ -6517,6 +6634,17 @@ const UdpFluentDropdown = class {
|
|
|
6517
6634
|
var _a;
|
|
6518
6635
|
return (_a = this.options) === null || _a === void 0 ? void 0 : _a.find(opt => this.getOptionValue(opt) === value);
|
|
6519
6636
|
}
|
|
6637
|
+
/**
|
|
6638
|
+
* Maps a single internal selection entry (option object or primitive) to the
|
|
6639
|
+
* shape `valueChanged` should emit, per `valueAs`. In `'value'` mode this
|
|
6640
|
+
* resolves the scalar via `optionValue`; in `'option'` mode it passes the
|
|
6641
|
+
* entry through unchanged. Callers map this over the array in multi-select.
|
|
6642
|
+
* Internal state (`selectionForOverlay`) keeps the option objects regardless,
|
|
6643
|
+
* so the selected-value overlay renders the same in both modes.
|
|
6644
|
+
*/
|
|
6645
|
+
toEmitValue(selection) {
|
|
6646
|
+
return this.valueAs === 'value' ? this.getOptionValue(selection) : selection;
|
|
6647
|
+
}
|
|
6520
6648
|
getValuesAsArray() {
|
|
6521
6649
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
6522
6650
|
if (Array.isArray(this.value))
|
|
@@ -6574,15 +6702,15 @@ const UdpFluentDropdown = class {
|
|
|
6574
6702
|
const overlayOptions = this.getSelectedOverlayOptions();
|
|
6575
6703
|
const hasOverlay = overlayOptions.length > 0;
|
|
6576
6704
|
const mappedAppearance = this.appearance === 'underline' ? 'transparent' : this.appearance;
|
|
6577
|
-
return (index.h(index.Host, { key: '
|
|
6705
|
+
return (index.h(index.Host, { key: '2739e491826ba8d094f3ecc454c888d4815f0bc9', class: { 'has-error': hasError } }, index.h("fluent-field", { key: '49d9f2af0b1b490ba19cb8ffd76f9e81d80d40e4', class: {
|
|
6578
6706
|
'no-message': !message && !this.includeErrorPadding,
|
|
6579
6707
|
'no-label': !this.label,
|
|
6580
|
-
} }, this.label && (index.h("fluent-label", { key: '
|
|
6708
|
+
} }, this.label && (index.h("fluent-label", { key: 'db3f23065b207e958f1885a93f3f9c3607c32c18', slot: "label", disabled: this.disabled, onClick: () => this.handleTogglePopover(false), style: { paddingTop: '2px', paddingBottom: '2px' } }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'cd9957075c3688082d4b21046b77265bbe8e77b3', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '0198aed441b9c9a1776f0fa3d6d8c4c56b08fe37', name: "info", size: "xs", class: "popup-hint-icon" }))))), index.h("div", { key: 'c2ada338eda46b6c44d3c8bd03e370e08d79df1c', slot: "input", class: {
|
|
6581
6709
|
'input-wrapper': true,
|
|
6582
6710
|
'has-overlay': hasOverlay,
|
|
6583
|
-
} }, index.h("fluent-dropdown", { key: '
|
|
6711
|
+
} }, index.h("fluent-dropdown", { key: 'edbb729b64ca2d23160a9b094ae3e15aee5fad49', type: "dropdown", name: this.name, appearance: mappedAppearance, size: this.controlSize, required: this.required, disabled: this.disabled, placeholder: this.placeholder, multiple: this.multiple, onChange: this.handleChange, onKeyDown: this.handleKeyDown, onFocusout: () => this.inputBlur.emit(), onFocusin: () => this.inputFocus.emit(),
|
|
6584
6712
|
// Suppress native invalid popup
|
|
6585
|
-
onInvalid: (e) => e.preventDefault(), ref: el => (this.dropdownRef = el) }, index.h("fluent-listbox", { key: '
|
|
6713
|
+
onInvalid: (e) => e.preventDefault(), ref: el => (this.dropdownRef = el) }, index.h("fluent-listbox", { key: '648c741cf3f5676f0048e22afe355626cf8f0cb4' }, this.loading && (index.h("fluent-option", { key: '1dd8f2d7b137c0921bb6393489604fef65b88b63', disabled: true, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, index.h("span", { key: '1cd40a943df80a3e4e32279939451f2a884fa611' }, "Loading..."), index.h("span", { key: 'b00ec9c25a83e8ca28c4a7c350750e07cc323d00', slot: "indicator" }))), !this.loading && ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) === 0 && (index.h("fluent-option", { key: '9e459a8416fe0e063196c47ddbca0b2c16859c9e', disabled: true, value: "empty", ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, "No options available")), !this.loading &&
|
|
6586
6714
|
((_b = this.options) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
|
6587
6715
|
(() => {
|
|
6588
6716
|
const nodes = [];
|
|
@@ -6602,17 +6730,17 @@ const UdpFluentDropdown = class {
|
|
|
6602
6730
|
nodes.push(index.h("fluent-option", { key: index$1, disabled: !!optDisabled, value: safeValue, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', !!optDisabled) }, optIcon && this.iconPosition === 'start' && (index.h("span", { slot: "start", class: "option-icon-slot" }, index.h("udp-fluent-icon", { name: optIcon, size: "sm" }))), optLabel, optIcon && this.iconPosition === 'end' && (index.h("span", { class: "option-icon-end", style: { pointerEvents: 'none', marginLeft: '4px' } }, index.h("udp-fluent-icon", { name: optIcon, size: "sm" }))), this.renderBadges(optBadges)));
|
|
6603
6731
|
});
|
|
6604
6732
|
return nodes;
|
|
6605
|
-
})()), index.h("div", { key: '
|
|
6733
|
+
})()), index.h("div", { key: '759461d74da6528e4b33be11cc4a3b80c8f80789', slot: "indicator", class: "indicator-wrapper" }, index.h("udp-fluent-icon-button", { key: '7f43ab70441f994632c89fec4f42772a679fe423', class: {
|
|
6606
6734
|
'clear-button': true,
|
|
6607
6735
|
'is-visible': this.showClearButton && !this.disabled && this.clearable,
|
|
6608
|
-
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), index.h("udp-fluent-icon", { key: '
|
|
6736
|
+
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), index.h("udp-fluent-icon", { key: '59f53079ac480470026413b158154e5e3e4ca505', name: "chevron-down", size: "sm", class: "chevron-down", onClick: (ev) => {
|
|
6609
6737
|
// stopPropagation: fluent's clickHandler would re-open via its `!this.open → showPopover` branch.
|
|
6610
6738
|
ev.stopPropagation();
|
|
6611
6739
|
this.handleTogglePopover(false);
|
|
6612
|
-
} }))), hasOverlay && (index.h("div", { key: '
|
|
6740
|
+
} }))), hasOverlay && (index.h("div", { key: '9f2c12555d194f036e0a81618cb2ae77a595eac0', class: { 'selected-overlay': true, 'multi': overlayOptions.length > 1 }, "aria-hidden": "true" }, overlayOptions.map((opt, i) => (index.h("span", { class: "selected-item", key: this.getOptionValue(opt) || i }, i > 0 && index.h("span", { class: "selected-separator" }, ", "), index.h("span", { class: "selected-label" }, this.resolveProp(opt, this.optionLabel, true)), this.renderBadges(this.getOptionBadges(opt)))))))), index.h("div", { key: 'f336e3cc721c256dae4de0da6e05f87ca3455c43', class: {
|
|
6613
6741
|
'message-wrapper': true,
|
|
6614
6742
|
'includeErrorPadding': this.includeErrorPadding,
|
|
6615
|
-
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, index.h("udp-text", { key: '
|
|
6743
|
+
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, index.h("udp-text", { key: 'bf2bc3358bee4302fc663d0a06edf61eb4a11f13', variant: "caption1", class: {
|
|
6616
6744
|
message: true,
|
|
6617
6745
|
error: hasError,
|
|
6618
6746
|
} }, message)))));
|
|
@@ -6901,7 +7029,7 @@ const UdpFluentIconButton = class {
|
|
|
6901
7029
|
const hoverActive = this.fillOnHover && this.isHovered;
|
|
6902
7030
|
const effectiveVariant = hoverActive ? 'filled' : this.iconVariant;
|
|
6903
7031
|
const effectiveColor = hoverActive ? 'var(--colorBrandForeground1)' : this.iconColor;
|
|
6904
|
-
return (index.h(index.Host, { key: '
|
|
7032
|
+
return (index.h(index.Host, { key: '0cb2fc447a4c7f3114fed7a760ce398fd067b9b6', exportparts: "button", onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false) }, index.h("udp-fluent-button", { key: '527a9b7739a4cb656360e80517e5a50769acd28a', appearance: this.appearance, disabled: this.disabled, "disabled-focusable": this.disabledFocusable, loading: this.loading, shape: this.shape, size: this.size, iconOnly: true, "aria-label": this.ariaLabel, tabIndex: this.tabIndex }, index.h("udp-fluent-icon", { key: '07f3ba0b0cec8064fc23504d895d0ddad14ae7ba', name: this.iconName, size: getIconSize(this.size, 'standard'), variant: effectiveVariant, color: effectiveColor }))));
|
|
6905
7033
|
}
|
|
6906
7034
|
};
|
|
6907
7035
|
UdpFluentIconButton.style = udpFluentIconButtonCss();
|
|
@@ -7081,7 +7209,7 @@ const UdpFluentMenu = class {
|
|
|
7081
7209
|
const startSlot = menuItem.id ? `${menuItem.id}-start` : null;
|
|
7082
7210
|
const endSlot = menuItem.id ? `${menuItem.id}-end` : null;
|
|
7083
7211
|
const bodySlot = menuItem.id ? `${menuItem.id}-body` : null;
|
|
7084
|
-
elements.push(index.h("fluent-menu-item", { key: menuItem.id || index$1, disabled: menuItem.disabled, id: menuItem.id, role: role, checked: menuItem.checked, onChange: (e) => this.handleItemChange(e, menuItem), onMouseEnter: () => { var _a; return (_a = menuItem.onMouseEnter) === null || _a === void 0 ? void 0 : _a.call(menuItem); }, onMouseLeave: () => { var _a; return (_a = menuItem.onMouseLeave) === null || _a === void 0 ? void 0 : _a.call(menuItem); } }, (startSlot && hasSlotContent(this.el, startSlot)) || menuItem.startIconName ? (index.h("slot", { name: startSlot, slot: "start" }, menuItem.startIconName && (index.h("udp-fluent-icon", { name: menuItem.startIconName, size: getIconSize(this.size) })))) : null, bodySlot ? index.h("slot", { name: bodySlot }, menuItem.text) : menuItem.text, (endSlot && hasSlotContent(this.el, endSlot)) || menuItem.endIconName ? (index.h("slot", { name: endSlot, slot: "end" }, menuItem.endIconName && (index.h("udp-fluent-icon", { name: menuItem.endIconName, size: getIconSize(this.size) })))) : null, children.length > 0 && depth < 1 && (index.h("fluent-menu-list", { slot: "submenu" }, this.renderItems(items, menuItem.id, depth + 1)))));
|
|
7212
|
+
elements.push(index.h("fluent-menu-item", { key: menuItem.id || index$1, disabled: menuItem.disabled, id: menuItem.id, role: role, checked: menuItem.checked, onChange: (e) => this.handleItemChange(e, menuItem), onMouseEnter: () => { var _a; return (_a = menuItem.onMouseEnter) === null || _a === void 0 ? void 0 : _a.call(menuItem); }, onMouseLeave: () => { var _a; return (_a = menuItem.onMouseLeave) === null || _a === void 0 ? void 0 : _a.call(menuItem); } }, (startSlot && slotHelpers.hasSlotContent(this.el, startSlot)) || menuItem.startIconName ? (index.h("slot", { name: startSlot, slot: "start" }, menuItem.startIconName && (index.h("udp-fluent-icon", { name: menuItem.startIconName, size: getIconSize(this.size) })))) : null, bodySlot ? index.h("slot", { name: bodySlot }, menuItem.text) : menuItem.text, (endSlot && slotHelpers.hasSlotContent(this.el, endSlot)) || menuItem.endIconName ? (index.h("slot", { name: endSlot, slot: "end" }, menuItem.endIconName && (index.h("udp-fluent-icon", { name: menuItem.endIconName, size: getIconSize(this.size) })))) : null, children.length > 0 && depth < 1 && (index.h("fluent-menu-list", { slot: "submenu" }, this.renderItems(items, menuItem.id, depth + 1)))));
|
|
7085
7213
|
return elements;
|
|
7086
7214
|
})
|
|
7087
7215
|
.flat()
|
|
@@ -7089,8 +7217,8 @@ const UdpFluentMenu = class {
|
|
|
7089
7217
|
}
|
|
7090
7218
|
render() {
|
|
7091
7219
|
const isIconOrSplit = this.buttonType === 'icon' || this.buttonType === 'split';
|
|
7092
|
-
return (index.h(index.Host, { key: '8352f4a655086a09cec6eb440793fbfe688758a9', exportparts: "trigger" }, index.h("fluent-menu", { key: 'b2b10de366d6f3b912e05f18332735beca75fa4a', "open-on-hover": this.openOnHover, "close-on-scroll": this.closeOnScroll, split: this.buttonType === 'split', "persist-on-item-click": this.persistOnMenuClick, "open-on-context": this.openOnContext }, this.buttonType === 'split' && (index.h("fluent-button", { key: '1c28f3bbc4a3486265907230574a23094f07c21a', slot: "primary-action", onClick: this.handlePrimaryClick, appearance: this.appearance, shape: this.shape, size: this.size }, (this.startIconName || hasSlotContent(this.el, 'start')) && (index.h("span", { key: 'd4df319623ca47ec60fac7a8cdfdf11e8aa2491c', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: 'dbf730397f3d6e0eb1ea3dd21ab58c54c38dce08', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: '7e81093bb951c7223a66512a450b03a4e26256fb', name: this.startIconName, size: getIconSize(this.size) }))))), this.label)), index.h("fluent-menu-button", { key: '1cf85f03b4a1186ec0d9a1995f3b5f6ca12dcb0a', part: "trigger", slot: "trigger", "icon-only": isIconOrSplit, appearance: this.appearance, shape: this.shape, size: this.size, disabled: this.disabled }, (this.startIconName || hasSlotContent(this.el, 'start')) &&
|
|
7093
|
-
this.buttonType !== 'split' && (index.h("span", { key: '04577537dd81b578c6ccc78ec44dc83dab1857b4', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: 'de0020b72963f63ebb4a4e645f5a706ff0a93ef0', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: 'ee03719564f2aca3a9c3ad63a09091c5b7aa53a1', name: this.startIconName, size: getIconSize(this.size) }))))), !isIconOrSplit && this.label, (hasSlotContent(this.el, 'end') || this.endIconName) && (index.h("span", { key: 'ee2489c4d4b9853bff420698c3a0e9f7de1d8de0', class: "slot-wrapper", slot: "end" }, this.endIconName ? (index.h("udp-fluent-icon", { name: this.endIconName, size: getIconSize(this.size, 'standard') })) : (index.h("slot", { name: "end" }))))), index.h("fluent-menu-list", { key: '627cf00fb62c94e2d5ceef351dbf85cf32f589e2' }, this.renderItems(this._items)))));
|
|
7220
|
+
return (index.h(index.Host, { key: '8352f4a655086a09cec6eb440793fbfe688758a9', exportparts: "trigger" }, index.h("fluent-menu", { key: 'b2b10de366d6f3b912e05f18332735beca75fa4a', "open-on-hover": this.openOnHover, "close-on-scroll": this.closeOnScroll, split: this.buttonType === 'split', "persist-on-item-click": this.persistOnMenuClick, "open-on-context": this.openOnContext }, this.buttonType === 'split' && (index.h("fluent-button", { key: '1c28f3bbc4a3486265907230574a23094f07c21a', slot: "primary-action", onClick: this.handlePrimaryClick, appearance: this.appearance, shape: this.shape, size: this.size }, (this.startIconName || slotHelpers.hasSlotContent(this.el, 'start')) && (index.h("span", { key: 'd4df319623ca47ec60fac7a8cdfdf11e8aa2491c', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: 'dbf730397f3d6e0eb1ea3dd21ab58c54c38dce08', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: '7e81093bb951c7223a66512a450b03a4e26256fb', name: this.startIconName, size: getIconSize(this.size) }))))), this.label)), index.h("fluent-menu-button", { key: '1cf85f03b4a1186ec0d9a1995f3b5f6ca12dcb0a', part: "trigger", slot: "trigger", "icon-only": isIconOrSplit, appearance: this.appearance, shape: this.shape, size: this.size, disabled: this.disabled }, (this.startIconName || slotHelpers.hasSlotContent(this.el, 'start')) &&
|
|
7221
|
+
this.buttonType !== 'split' && (index.h("span", { key: '04577537dd81b578c6ccc78ec44dc83dab1857b4', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: 'de0020b72963f63ebb4a4e645f5a706ff0a93ef0', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: 'ee03719564f2aca3a9c3ad63a09091c5b7aa53a1', name: this.startIconName, size: getIconSize(this.size) }))))), !isIconOrSplit && this.label, (slotHelpers.hasSlotContent(this.el, 'end') || this.endIconName) && (index.h("span", { key: 'ee2489c4d4b9853bff420698c3a0e9f7de1d8de0', class: "slot-wrapper", slot: "end" }, this.endIconName ? (index.h("udp-fluent-icon", { name: this.endIconName, size: getIconSize(this.size, 'standard') })) : (index.h("slot", { name: "end" }))))), index.h("fluent-menu-list", { key: '627cf00fb62c94e2d5ceef351dbf85cf32f589e2' }, this.renderItems(this._items)))));
|
|
7094
7222
|
}
|
|
7095
7223
|
get el() { return index.getElement(this); }
|
|
7096
7224
|
static get watchers() { return {
|
|
@@ -7160,7 +7288,7 @@ const UdpFluentRadioGroup = class {
|
|
|
7160
7288
|
var _a;
|
|
7161
7289
|
const hasError = !!this.error;
|
|
7162
7290
|
const message = this.error || this.hint;
|
|
7163
|
-
return (index.h(index.Host, { key: '
|
|
7291
|
+
return (index.h(index.Host, { key: '310105e91fd86663ac9db8daa7305f8c6dff9c27' }, index.h("fluent-field", { key: '88ac237d7e1f5700dec8be7f18ef057bc611f7db', "label-position": "above", class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, index.h("fluent-label", { key: '1911ee90e0bf02780ddeb1ceec4d57d7c7c03170', slot: "label", disabled: this.disabled }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'a917bcd2e9b5c583dfc1c2f582b21966dc1da1ff', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '149612a75db4b940228b65a45fcb398fe388dade', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("fluent-radio-group", { key: '4b7608cb7452a5a195c1e2b07e0b215899308d1c', ref: el => (this.internalInput = el), slot: "input", name: this.name, disabled: this.disabled, orientation: this.orientation, onChange: this.handleChange }, (_a = this.items) === null || _a === void 0 ? void 0 : _a.map(item => (index.h("fluent-field", { "label-position": "after" }, index.h("fluent-label", { slot: "label", onClick: () => this.handleLabelClick(item.value, item.disabled) }, item.label), index.h("fluent-radio", { slot: "input", value: item.value, disabled: item.disabled, ref: (el) => this.radioRefs.set(item.value, el) }))))), index.h("udp-text", { key: '2902bac054f7096a946566bc494ef7783a958406', slot: "message", variant: "caption1", class: {
|
|
7164
7292
|
message: true,
|
|
7165
7293
|
error: hasError,
|
|
7166
7294
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -7213,7 +7341,7 @@ const UdpFluentSwitch = class {
|
|
|
7213
7341
|
render() {
|
|
7214
7342
|
const hasError = !!this.error;
|
|
7215
7343
|
const message = this.error || this.hint;
|
|
7216
|
-
return (index.h(index.Host, { key: '
|
|
7344
|
+
return (index.h(index.Host, { key: '91c654669e6e08d366b438d82ce2f56e7c56fdce' }, index.h("fluent-field", { key: '65cbfc5e391cc5c7fbce3eabd4e3ec2d5fe89f18', "label-position": this.labelPosition, class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, index.h("fluent-label", { key: 'e6668f04f88cbcb7c5bb4b7073b00adfb0acc74e', slot: "label", onClick: this.handleLabelClick }, this.label, this.popupHint && (index.h("udp-tooltip", { key: '1978ceaaab8a8306f8a81a01d55445dd6f8c8652', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: 'd3e7c25477403f90921af5f0e0e4ee48f093af01', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("fluent-switch", { key: '9b006bf50ce4589b4a7bc3703d347cb000a8ce34', slot: "input", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.handleChange, ref: (el) => (this.internalSwitch = el) }), index.h("udp-text", { key: '2968daf18e49a4c1fb62beee787371afd05440cd', slot: "message", variant: "caption1", class: {
|
|
7217
7345
|
message: true,
|
|
7218
7346
|
error: hasError,
|
|
7219
7347
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -7223,7 +7351,7 @@ const UdpFluentSwitch = class {
|
|
|
7223
7351
|
};
|
|
7224
7352
|
UdpFluentSwitch.style = udpFluentSwitchCss();
|
|
7225
7353
|
|
|
7226
|
-
const udpFluentTablistCss = () => `.slot-wrapper{display:inline-flex;align-items:center}.tablist-scroll-wrapper{position:relative;display:flex;align-items:center;width:100%;overflow:hidden}.tablist-scroll-container{display:flex;overflow-x:auto;overflow-y:hidden;width:100%;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.tablist-scroll-container::-webkit-scrollbar{display:none}.tablist-inner{display:flex;flex:0 0 auto;padding:3px;border-radius:var(--borderRadiusLarge)}.tablist-scroll-container.collapse-mode{overflow-x:hidden}.scroll-shadow-start,.scroll-shadow-end{position:absolute;top:0;bottom:0;width:48px;pointer-events:none;opacity:0;transition:opacity 0.2s ease;z-index:2;display:flex;align-items:center;justify-content:center}.scroll-shadow-start{left:0;background:linear-gradient(to right, var(--colorNeutralBackground1) 40%, transparent);justify-content:flex-start;padding-left:4px;z-index:5}.scroll-shadow-end{right:0;background:linear-gradient(to left, var(--colorNeutralBackground1) 40%, transparent);justify-content:flex-end;padding-right:4px;z-index:5}.scroll-shadow-start.is-visible,.scroll-shadow-end.is-visible{opacity:1}.scroll-button-container{pointer-events:
|
|
7354
|
+
const udpFluentTablistCss = () => `.slot-wrapper{display:inline-flex;align-items:center}.tablist-scroll-wrapper{position:relative;display:flex;align-items:center;width:100%;overflow:hidden}.tablist-scroll-container{display:flex;overflow-x:auto;overflow-y:hidden;width:100%;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.tablist-scroll-container::-webkit-scrollbar{display:none}.tablist-inner{display:flex;flex:0 0 auto;padding:3px;border-radius:var(--borderRadiusLarge)}.tablist-scroll-container.collapse-mode{overflow-x:hidden}.scroll-shadow-start,.scroll-shadow-end{position:absolute;top:0;bottom:0;width:48px;pointer-events:none;opacity:0;transition:opacity 0.2s ease;z-index:2;display:flex;align-items:center;justify-content:center}.scroll-shadow-start{left:0;background:linear-gradient(to right, var(--colorNeutralBackground1) 40%, transparent);justify-content:flex-start;padding-left:4px;z-index:5}.scroll-shadow-end{right:0;background:linear-gradient(to left, var(--colorNeutralBackground1) 40%, transparent);justify-content:flex-end;padding-right:4px;z-index:5}.scroll-shadow-start.is-visible,.scroll-shadow-end.is-visible{opacity:1}.scroll-button-container{pointer-events:none;display:flex;align-items:center;justify-content:center}.scroll-shadow-start.is-visible .scroll-button-container,.scroll-shadow-end.is-visible .scroll-button-container{pointer-events:auto}.is-overflow{display:none !important}.is-hidden{visibility:hidden;pointer-events:none}fluent-tab[aria-selected="true"]{z-index:3;}.overflow-menu-container{display:flex;align-items:center;border-radius:0 var(--borderRadiusLarge) var(--borderRadiusLarge) 0;padding-right:var(--spacingHorizontalM);margin-left:-4px}.overflow-menu-container udp-fluent-menu{anchor-name:--menu-anchor;margin-left:var(--spacingHorizontalM)}.overflow-menu-container udp-fluent-counter-badge{position:absolute;position-anchor:--menu-anchor;top:anchor(top);right:anchor(right);margin-top:-6px;margin-right:-6px}.contained-variant .tablist-inner{background-color:transparent;border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);border-radius:var(--borderRadiusMedium);padding:0}.contained-variant fluent-tab{padding-top:5px;padding-bottom:5px}.contained-variant .tablist-inner[size='small'] fluent-tab{padding-top:1px;padding-bottom:1px}.contained-variant .tablist-inner[size='large'] fluent-tab{padding-top:8px;padding-bottom:8px}.contained-variant fluent-tab[aria-selected="true"]{color:var(--colorNeutralForeground1)}.contained-variant fluent-tab:hover{background-color:var(--colorSubtleBackgroundHover)}.contained-variant .overflow-menu-container{background-color:transparent}`;
|
|
7227
7355
|
|
|
7228
7356
|
const UdpFluentTablist = class {
|
|
7229
7357
|
constructor(hostRef) {
|
|
@@ -7493,7 +7621,7 @@ const UdpFluentTablist = class {
|
|
|
7493
7621
|
}
|
|
7494
7622
|
renderTab(tab) {
|
|
7495
7623
|
const iconSize = getIconSize(this.size, 'standard');
|
|
7496
|
-
return (index.h("fluent-tab", { id: tab.id, disabled: tab.disabled }, (tab.startIconName || hasSlotContent(this.el, `${tab.id}-start`)) && (index.h("span", { class: "slot-wrapper", slot: "start" }, index.h("slot", { name: `${tab.id}-start` }, tab.startIconName && index.h("udp-fluent-icon", { name: tab.startIconName, size: iconSize })))), tab.label, (tab.endIconName || hasSlotContent(this.el, `${tab.id}-end`)) && (index.h("span", { class: "slot-wrapper", slot: "end" }, index.h("slot", { name: `${tab.id}-end` }, tab.endIconName && index.h("udp-fluent-icon", { name: tab.endIconName, size: iconSize }))))));
|
|
7624
|
+
return (index.h("fluent-tab", { id: tab.id, disabled: tab.disabled }, (tab.startIconName || slotHelpers.hasSlotContent(this.el, `${tab.id}-start`)) && (index.h("span", { class: "slot-wrapper", slot: "start" }, index.h("slot", { name: `${tab.id}-start` }, tab.startIconName && index.h("udp-fluent-icon", { name: tab.startIconName, size: iconSize })))), tab.label, (tab.endIconName || slotHelpers.hasSlotContent(this.el, `${tab.id}-end`)) && (index.h("span", { class: "slot-wrapper", slot: "end" }, index.h("slot", { name: `${tab.id}-end` }, tab.endIconName && index.h("udp-fluent-icon", { name: tab.endIconName, size: iconSize }))))));
|
|
7497
7625
|
}
|
|
7498
7626
|
render() {
|
|
7499
7627
|
// Standard rendering for vertical (no scroll behavior needed typically)
|
|
@@ -7583,11 +7711,11 @@ const UdpFluentTextInput = class {
|
|
|
7583
7711
|
const hasError = !!this.error;
|
|
7584
7712
|
const message = this.error || this.hint;
|
|
7585
7713
|
const noMessage = !message && !this.includeErrorPadding;
|
|
7586
|
-
return (index.h(index.Host, { key: '
|
|
7714
|
+
return (index.h(index.Host, { key: '83e92ed8f16c3051a0ca726e81ff4a51550984ad', class: { 'has-error': hasError } }, index.h("fluent-field", { key: '9fbcdf450ab82e2850f31e1f4660b56f9d7fce5a', class: { 'no-message': noMessage } }, index.h("fluent-text-input", { key: '22017a3dc277acd03dbc7b021381ea3a7b0afdf1', ref: el => (this.internalInput = el), slot: "input", class: { 'no-label': !this.label }, name: this.name, value: this.value, type: this.type, placeholder: this.placeholder, required: this.required, disabled: this.disabled, readonly: this.readonly, autofocus: this.autofocus, autocomplete: this.autocomplete, spellcheck: this.spellcheck ? 'true' : 'false', appearance: this.appearance, controlSize: this.controlSize, maxlength: this.maxLength,
|
|
7587
7715
|
// Events
|
|
7588
7716
|
onInput: this.handleInput, onBlur: () => this.inputBlur.emit(), onFocus: () => this.inputFocus.emit(),
|
|
7589
7717
|
// Suppress native invalid popup
|
|
7590
|
-
onInvalid: (e) => e.preventDefault() }, index.h("slot", { key: '
|
|
7718
|
+
onInvalid: (e) => e.preventDefault() }, index.h("slot", { key: '06db34c98acda08ce3bbc6069d9b00c345c665fb', slot: "start", name: "start" }), index.h("slot", { key: '3ca5e0ed49dc7f92bc0a1b22795982f6d3d2059c', slot: "end", name: "end" }), this.label && (index.h("fluent-label", { key: 'ce228830fc9a6bb7e2143c585e98a829dbc6fc9e', required: this.required, disabled: this.disabled }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'e806bdc4d058a67039c649e5a65b47c41f46e23e', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: 'bee18eb447ee5a2c9348e26df0f8885114d0f300', name: "info", size: "xs", class: "popup-hint-icon" })))))), index.h("udp-text", { key: '695e97d2aa86e70d8b188a26285bff1deb69d2fc', slot: "message", variant: "caption1", class: {
|
|
7591
7719
|
message: true,
|
|
7592
7720
|
error: hasError,
|
|
7593
7721
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -7629,7 +7757,7 @@ const UdpFluentToggleButton = class {
|
|
|
7629
7757
|
}
|
|
7630
7758
|
render() {
|
|
7631
7759
|
const iconSize = getIconSize(this.size);
|
|
7632
|
-
return (index.h(index.Host, { key: '
|
|
7760
|
+
return (index.h(index.Host, { key: '7063ff374b0be78469d61a5cd0702a763b2226a9' }, index.h("fluent-toggle-button", { key: 'f29f372892205ae54829b2ab8791652360769c56', pressed: this.pressed, mixed: this.mixed, disabled: this.disabled, size: this.size, appearance: this.appearance, shape: this.shape }, (this.startIconName || slotHelpers.hasSlotContent(this.el, 'start')) && (index.h("span", { key: '4977733f57427a16f67a6930cd60ed6da765e84e', class: "slot-wrapper", slot: "start" }, index.h("slot", { key: 'adda33214afc7987dd9a26b521a23945a52b71fb', name: "start" }, this.startIconName && (index.h("udp-fluent-icon", { key: '3a1458c1e97f523f915d0dbb382468d0450809fd', name: this.startIconName, size: iconSize }))))), index.h("slot", { key: 'bf0d94afe5284b9604fcdb6b76ded71cf54566e0' }), (this.endIconName || slotHelpers.hasSlotContent(this.el, 'end')) && (index.h("span", { key: '2b1de85e37bb2afca1e11d55e3142d75052c5eef', class: "slot-wrapper", slot: "end" }, index.h("slot", { key: 'd0e28a78465274173dfbbc48626236008e612d32', name: "end" }, this.endIconName && index.h("udp-fluent-icon", { key: '311410f9cef7ccffb1af50bfe994e87297e2c25d', name: this.endIconName, size: iconSize })))))));
|
|
7633
7761
|
}
|
|
7634
7762
|
get el() { return index.getElement(this); }
|
|
7635
7763
|
};
|
|
@@ -7731,10 +7859,10 @@ const UdpFormComponent = class {
|
|
|
7731
7859
|
}
|
|
7732
7860
|
}
|
|
7733
7861
|
render() {
|
|
7734
|
-
return (index.h("form", { key: '
|
|
7862
|
+
return (index.h("form", { key: '7aa36000dfbc6b70f9e47a7d5767c134364995db', id: this.formId, noValidate: true, onSubmit: e => {
|
|
7735
7863
|
e.preventDefault();
|
|
7736
7864
|
void this.form.submit();
|
|
7737
|
-
} }, index.h("slot", { key: '
|
|
7865
|
+
} }, index.h("slot", { key: '3a84c27a4b9b0b277cb722c509010d2c886ca52c' })));
|
|
7738
7866
|
}
|
|
7739
7867
|
get el() { return index.getElement(this); }
|
|
7740
7868
|
static get watchers() { return {
|
|
@@ -7842,7 +7970,7 @@ const UdpLazyLoader = class {
|
|
|
7842
7970
|
}
|
|
7843
7971
|
}
|
|
7844
7972
|
render() {
|
|
7845
|
-
return index.h(index.Host, { key: '
|
|
7973
|
+
return index.h(index.Host, { key: 'd93d224698a89a86e2ab1778bdabe82925428f2b' }, this.shouldRender && this.content ? this.content() : null);
|
|
7846
7974
|
}
|
|
7847
7975
|
static get watchers() { return {
|
|
7848
7976
|
"if": [{
|
|
@@ -7866,7 +7994,7 @@ const UdpLinearLoader = class {
|
|
|
7866
7994
|
loader: true,
|
|
7867
7995
|
[`loader--color-${this.color}`]: true,
|
|
7868
7996
|
};
|
|
7869
|
-
return (index.h(index.Host, { key: '
|
|
7997
|
+
return (index.h(index.Host, { key: '761a94eebc2e9c8805fa82cc61c4a76668f5015b' }, index.h("div", { key: 'ab746cfda51c4c64191a91cf9ac7e54dd27b3a2e', class: loaderClasses }, index.h("div", { key: '4c08ea0a28de807b3836b832bcca9f0557db3804', class: "indeterminate" }))));
|
|
7870
7998
|
}
|
|
7871
7999
|
};
|
|
7872
8000
|
UdpLinearLoader.style = udpLinearLoaderCss();
|
|
@@ -7925,11 +8053,11 @@ const UdpListRenderer = class {
|
|
|
7925
8053
|
render() {
|
|
7926
8054
|
const showPrimaryText = this.primaryText || this.hasPrimaryTextSlot;
|
|
7927
8055
|
const showSecondaryText = this.secondaryText || this.hasSecondaryTextSlot;
|
|
7928
|
-
return (index.h(index.Host, { key: '
|
|
8056
|
+
return (index.h(index.Host, { key: '38b8402037018050b955dfdd1b10d8dc050db57a' }, index.h("div", { key: 'db06e7c9c2404c512dab266f00cf20ff4cbdca64', class: {
|
|
7929
8057
|
'list-item': true,
|
|
7930
8058
|
'clickable': this.clickable,
|
|
7931
8059
|
'variant-compact': this.variant === 'compact',
|
|
7932
|
-
}, onClick: this.handleClick, onKeyPress: this.handleKeyPress, role: this.clickable ? 'button' : undefined, tabindex: this.clickable ? 0 : -1 }, this.iconName && (index.h("div", { key: '
|
|
8060
|
+
}, onClick: this.handleClick, onKeyPress: this.handleKeyPress, role: this.clickable ? 'button' : undefined, tabindex: this.clickable ? 0 : -1 }, this.iconName && (index.h("div", { key: '5638e84985d9f200e7f69d918ea10b14f88eaec6', class: "avatar-container" }, index.h("udp-avatar", { key: '6d51c030025482eeeaa269eca7938f7ffa406d93', iconName: this.iconName, variant: this.avatarVariant, color: this.avatarBackgroundColor }))), index.h("div", { key: '799b85e83c00ab20c4d1ee186aa6ce831c818d27', class: "text-container" }, showPrimaryText && (index.h("div", { key: 'b98a0096aba1767d4775f377cef302583d980cc9', class: "primary-text" }, index.h("slot", { key: '212d09710969f9bb35d0d464a5fb7059aa6a651e', name: "primary-text" }, index.h("unity-typography", { key: 'a8232e206e5d720e97779f150c39ca068c456ec7', variant: "body" }, this.primaryText)))), showSecondaryText && (index.h("div", { key: 'e9f2a85b108cc2cbbcae8be90a18bf41a8ab177f', class: "secondary-text" }, index.h("slot", { key: '4fad8114d2af181df09f111fbebfc3a9f8c3ae0e', name: "secondary-text" }, index.h("unity-typography", { key: '04c8bbfba3705679dcf08962737b8726a182c890', variant: "caption-text", color: "textSecondary" }, this.secondaryText))))), this.hasStatusChipSlot && (index.h("div", { key: '85c7190bebe53677d9cbe0eb9d529e50e0a9586c', class: "status-chip-container" }, index.h("slot", { key: 'e04bc7b9fc83f88910a8d87b2c0982021dd88cf2', name: "status-chip" }))), this.hasActionsSlot && (index.h("div", { key: '94c532b6238ed87709069828e9800fab2230918c', class: "actions-container" }, index.h("slot", { key: '80fe2b1653b00ed5061c1c13e861bc0fa1b96f74', name: "actions" }))))));
|
|
7933
8061
|
}
|
|
7934
8062
|
get hostEl() { return index.getElement(this); }
|
|
7935
8063
|
};
|
|
@@ -7951,7 +8079,7 @@ const UdpMenuItem = class {
|
|
|
7951
8079
|
};
|
|
7952
8080
|
}
|
|
7953
8081
|
render() {
|
|
7954
|
-
return (index.h("button", { key: '
|
|
8082
|
+
return (index.h("button", { key: 'b26afc2ab755b1b71822b89208e5d45f0733787f', class: "menu-item-root", onClick: this.handleItemClick, disabled: this.disabled, role: "menuitem" }, this.iconName && index.h("udp-icon", { key: '214be4eabb71a7cf8d3eeec8151ae381012a8e79', iconName: this.iconName, class: "menu-icon" }), index.h("span", { key: '8604d5cc4d0f3cb5233c06a8408beaf1da98c590', class: "menu-item-label" }, index.h("unity-typography", { key: '6f9352bd35d5cb919968ac7836b77f52b5de0f82', variant: 'body1' }, this.label))));
|
|
7955
8083
|
}
|
|
7956
8084
|
};
|
|
7957
8085
|
UdpMenuItem.style = udpMenuItemCss();
|
|
@@ -7981,7 +8109,7 @@ const UdpMessageBar = class {
|
|
|
7981
8109
|
};
|
|
7982
8110
|
}
|
|
7983
8111
|
render() {
|
|
7984
|
-
return (index.h(index.Host, { key: '
|
|
8112
|
+
return (index.h(index.Host, { key: '84eb625214dc77c60004a0a44d4d57242e1f44a9' }, index.h("fluent-message-bar", { key: '62497532a0ffeff30ce08693b91794ecc09c4dc2', shape: this.shape, layout: this.layout, intent: this.intent }, index.h("udp-flexbox", { key: '1208b31ee665592212c6cb48410cdbfa798b2455', direction: "row", gap: "sm", slot: "actions" }, index.h("slot", { key: '257a8c42983d8a12e27cd0deb2634c1f2a0180d2', name: "actions" })), this.dismissible ? (index.h("udp-fluent-icon-button", { slot: "dismiss", appearance: "subtle", iconName: "dismiss", "aria-label": "Dismiss", onClick: this.handleDismissClick })) : (index.h("slot", { name: "dismiss", slot: "dismiss" })), index.h("slot", { key: 'a072d93e6d19f01a44dc62b9024490cb102c749f', name: "icon", slot: "icon" }), index.h("slot", { key: '55ea279fe5b7d247c9fbe37fe06068a342d6667e' }))));
|
|
7985
8113
|
}
|
|
7986
8114
|
};
|
|
7987
8115
|
|
|
@@ -8101,7 +8229,7 @@ const UdpPopOver = class {
|
|
|
8101
8229
|
maxHeight: this.popoverMaxHeight,
|
|
8102
8230
|
overflow: this.overflow
|
|
8103
8231
|
};
|
|
8104
|
-
return (index.h(index.Host, { key: '
|
|
8232
|
+
return (index.h(index.Host, { key: 'd1dcfc4885536250c52af3e6b05371a7a9fd24d0' }, index.h("div", { key: 'c4a0946facfb54a99974e74fb70935ccdcc4fba9', class: "popover", style: style }, index.h("slot", { key: '8b76a9950358a1e5305af4aded8e29b0a927223f' }))));
|
|
8105
8233
|
}
|
|
8106
8234
|
get hostEl() { return index.getElement(this); }
|
|
8107
8235
|
static get watchers() { return {
|
|
@@ -8507,10 +8635,10 @@ const UdpPrimaryActionHeader = class {
|
|
|
8507
8635
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
8508
8636
|
}
|
|
8509
8637
|
checkSlots() {
|
|
8510
|
-
this.hasInline = hasSlotContent(this.el, 'inline');
|
|
8511
|
-
this.hasSubtitle = hasSlotContent(this.el, 'subtitle');
|
|
8512
|
-
this.hasActions = hasSlotContent(this.el, 'actions');
|
|
8513
|
-
this.hasToolbar = hasSlotContent(this.el, 'toolbar');
|
|
8638
|
+
this.hasInline = slotHelpers.hasSlotContent(this.el, 'inline');
|
|
8639
|
+
this.hasSubtitle = slotHelpers.hasSlotContent(this.el, 'subtitle');
|
|
8640
|
+
this.hasActions = slotHelpers.hasSlotContent(this.el, 'actions');
|
|
8641
|
+
this.hasToolbar = slotHelpers.hasSlotContent(this.el, 'toolbar');
|
|
8514
8642
|
}
|
|
8515
8643
|
/**
|
|
8516
8644
|
* Measure overflow and update compressionLevel.
|
|
@@ -8735,7 +8863,7 @@ const UdpProgressBar = class {
|
|
|
8735
8863
|
this.validationState = 'info';
|
|
8736
8864
|
}
|
|
8737
8865
|
render() {
|
|
8738
|
-
return (index.h(index.Host, { key: '
|
|
8866
|
+
return (index.h(index.Host, { key: '0948de54e61747c0fc87ad8467391d475a8937b8' }, index.h("fluent-progress-bar", { key: '78cf79e927b60e3f1eb8bf165e490045da03a62f', thickness: this.thickness, shape: this.shape, "validation-state": this.validationState, value: this.value, min: this.min, max: this.max })));
|
|
8739
8867
|
}
|
|
8740
8868
|
};
|
|
8741
8869
|
|
|
@@ -8811,14 +8939,14 @@ const UdpSearchInput = class {
|
|
|
8811
8939
|
render() {
|
|
8812
8940
|
const hasError = !!this.error;
|
|
8813
8941
|
const message = this.error || this.hint;
|
|
8814
|
-
return (index.h(index.Host, { key: '
|
|
8942
|
+
return (index.h(index.Host, { key: 'c0ad7e57ba5f4a9eda2ce854c778ba559a0ab4c6', class: { 'has-error': hasError } }, index.h("fluent-field", { key: 'e8b058e088387a5c1b970d2a0c37515829c29789', class: { 'no-message': !message && !this.includeErrorPadding } }, index.h("fluent-text-input", { key: 'a80688686d5a642472aeb5edc64e059efe823d35', ref: el => (this.internalInput = el), class: { 'no-label': !this.label }, slot: "input", name: this.name, value: this.value, type: this.type, placeholder: this.placeholder, required: this.required, disabled: this.disabled, readonly: this.readonly, autofocus: this.autofocus, autocomplete: this.autocomplete, spellcheck: this.spellcheck ? 'true' : 'false', appearance: this.appearance, controlSize: this.controlSize,
|
|
8815
8943
|
// Events
|
|
8816
8944
|
onInput: this.handleInput, onBlur: () => this.inputBlur.emit(), onFocus: () => this.inputFocus.emit(),
|
|
8817
8945
|
// Suppress native invalid popup
|
|
8818
|
-
onInvalid: (e) => e.preventDefault() }, index.h("slot", { key: '
|
|
8946
|
+
onInvalid: (e) => e.preventDefault() }, index.h("slot", { key: 'e286143785d07aed1ecbb7ae7aacc6185f3967da', slot: "start", name: "start" }, index.h("udp-fluent-icon", { key: '4ffcfbb08de2f19e78efa2b2654ea74ebf401a2a', name: "search", size: "xs" })), index.h("udp-fluent-icon-button", { key: '6271fb0be37b314c2a7ef01777e790cdfde4aafd', class: {
|
|
8819
8947
|
'clear-button': true,
|
|
8820
8948
|
'is-visible': !!this.internalValue && !this.disabled && !this.readonly,
|
|
8821
|
-
}, slot: "end", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), this.label && (index.h("fluent-label", { key: '
|
|
8949
|
+
}, slot: "end", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), this.label && (index.h("fluent-label", { key: '76c6d879ab5081ebb682fb673ae4cc17cfed843d', required: this.required, disabled: this.disabled }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'e9458ccc073f21a35e708913d01247b1cde0b4f7', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: 'e01470ae5dd057c2fd3f327269a8434669af0027', name: "info", size: "xs", class: "popup-hint-icon" })))))), (!!message || this.includeErrorPadding) && (index.h("udp-text", { key: '04724c87df263e121eca183b1c3b4f15a9e7c34e', slot: "message", variant: "caption1", class: {
|
|
8822
8950
|
message: true,
|
|
8823
8951
|
error: hasError,
|
|
8824
8952
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -9060,27 +9188,27 @@ const UdpSideSheet = class {
|
|
|
9060
9188
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9061
9189
|
const headerStartIcon = Boolean(this.headerActionButtonIcon) ? (index.h("udp-icon", { iconName: this.headerActionButtonIcon, color: "inherit" })) : undefined;
|
|
9062
9190
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9063
|
-
const overflowIcon = index.h("udp-icon", { key: '
|
|
9064
|
-
return (index.h("div", { key: '
|
|
9191
|
+
const overflowIcon = index.h("udp-icon", { key: '114fb6c9c7672ed0c8e0350d35fcaafc5e90fc9d', iconName: "overflowMenuVertical", color: "inherit" });
|
|
9192
|
+
return (index.h("div", { key: '36c5d92ff2dfe298b600c15a973e05b4e03ef612', class: "backdrop", onClick: this.onCloseBackdrop }, index.h("div", { key: 'c0d84cde7128de85fd492c8c4002fcef0c65571c', class: { sheet: true, [this.position]: true, [widthClass]: true }, style: sideSheetStyle }, index.h("div", { key: '91c2ae473b6158d0671fda0f8e89e993b239f659', class: "title-container" }, index.h("div", { key: '277dd337d923754dd50a8f671498717cf2208f3e', class: "close-button" }, index.h("stencil-icon-button", { key: '56ad80ad182e482cdfc8b786f99b6962354487de',
|
|
9065
9193
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9066
|
-
icon: Close24__default.default, onClick: this.onClose, secondary: true })), index.h("div", { key: '
|
|
9067
|
-
_b.map((item) => (index.h("udp-button", { variant: "outlined", disabled: item.disabled, onClick: item.onClick, endIcon: item.icon }, item.label))), this.headerActionButtonLabel && (index.h("udp-button", { key: '
|
|
9194
|
+
icon: Close24__default.default, onClick: this.onClose, secondary: true })), index.h("div", { key: 'ec6288c444babe7cd43b9fa107aa914b7af1a0c0', class: "title-text" }, index.h("unity-typography", { key: '9a7f020155a46e9258f8c21afe3f41d6df4b60f2', variant: "h6" }, this.title)), (this.headerActionButtonLabel || ((_a = this.headerSecondaryButtons) === null || _a === void 0 ? void 0 : _a.length) > 0) && (index.h("div", { key: '87d81014638a9229a195ffbf9f982307db2c13ef', class: "header-action-button" }, (_b = this.headerSecondaryButtons) === null || _b === void 0 ? void 0 :
|
|
9195
|
+
_b.map((item) => (index.h("udp-button", { variant: "outlined", disabled: item.disabled, onClick: item.onClick, endIcon: item.icon }, item.label))), this.headerActionButtonLabel && (index.h("udp-button", { key: '7b53fad664ba84d8eeeb2893d18085decdc635d9', disabled: this.headerActionButtonDisabled, onClick: this.onHeaderActionButtonClick,
|
|
9068
9196
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9069
|
-
startIcon: headerStartIcon, variant: "contained" }, this.headerActionButtonLabel))))), index.h("div", { key: '
|
|
9197
|
+
startIcon: headerStartIcon, variant: "contained" }, this.headerActionButtonLabel))))), index.h("div", { key: '47a68f2b5d8a94709249b8d90a2ca67542d76e4a', class: "loader-container" }, index.h("udp-linear-loader", { key: '9ec156c748a5faceb4de0db2ca87ef2490294aa2', class: { 'is-loading': this.loading }, color: "primary" })), index.h("div", { key: '17e9cda2a7d3709f4bb6043c62165efb0685308e', class: { content: true, padding: this.padding } }, index.h("slot", { key: '43e24e734199f3bae197752b6d284e40a0af84dc' })), (this.primaryButtonLabel || ((_c = this.footerSecondaryButtons) === null || _c === void 0 ? void 0 : _c.length) > 0) && (index.h("div", { key: '5b5c4916c753d4cf9f87c31d929d163fc96cefd9' }, index.h("div", { key: '6866f082dcd22d831cf938b7749baa40860badf0', class: "loader-container" }), index.h("div", { key: '779dcc447ed0f2d8e6fdc7c54d6c8d9f424b6028', class: {
|
|
9070
9198
|
footer: true,
|
|
9071
|
-
}, ref: el => (this.footerRef = el) }, !this.showOverflowButton && ((_d = this.footerSecondaryButtons) === null || _d === void 0 ? void 0 : _d.length) > 0 && (index.h("div", { key: '
|
|
9199
|
+
}, ref: el => (this.footerRef = el) }, !this.showOverflowButton && ((_d = this.footerSecondaryButtons) === null || _d === void 0 ? void 0 : _d.length) > 0 && (index.h("div", { key: 'd06b60b390d1a71fa363a2154eafb9061fb3bebd', class: "footer-secondary-buttons-container" }, index.h("div", { key: 'eefa3e4c23c680817567e9cafc6aadfd88671151', class: "footer-secondary-buttons" }, (_e = this.footerSecondaryButtons) === null || _e === void 0 ? void 0 : _e.map((item) => (index.h("udp-button", { variant: "outlined", disabled: item.disabled, onClick: item.onClick, endIcon: item.icon }, item.label)))))), this.showOverflowButton && (index.h("udp-button", { key: 'aa5fe72411ecbc3a9b13a104dc2b56fc0992b3c2', variant: "outlined", onClick: this.onMoreActionButtonClick, color: "secondary",
|
|
9072
9200
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9073
|
-
endIcon: overflowIcon }, "More")), this.primaryButtonLabel && (index.h("udp-button", { key: '
|
|
9201
|
+
endIcon: overflowIcon }, "More")), this.primaryButtonLabel && (index.h("udp-button", { key: 'caefbeae9aa3a1bc103b36014d21654fc5463c74', variant: "contained", disabled: this.primaryButtonDisabled, onClick: this.onPrimaryButtonClick, endIcon: this.primaryButtonIcon }, this.primaryButtonLabel)), this.showOverflowButton && (index.h("udp-pop-over", { key: '887bc8092861206af6bb4dabcfeaf2dd1b3fdb3b', anchorElement: this.overflowMenuAnchor, isOpen: this.openOverflowMenu, popoverWidth: '200px', popoverMaxHeight: '300px', handleOnClose: this.handleCloseOverflowMenu }, index.h("div", { key: 'd0178781341edf03446cc3fb51caf92c20559c01', class: "menu" }, (_f = this.footerSecondaryButtons) === null || _f === void 0 ? void 0 : _f.map(item => (index.h("udp-menu-item", { label: item === null || item === void 0 ? void 0 : item.label, iconName: item === null || item === void 0 ? void 0 : item.icon, onItemClick: () => {
|
|
9074
9202
|
item === null || item === void 0 ? void 0 : item.onClick();
|
|
9075
9203
|
this.handleCloseOverflowMenu();
|
|
9076
|
-
}, disabled: item === null || item === void 0 ? void 0 : item.disabled })))))), index.h("div", { key: '
|
|
9204
|
+
}, disabled: item === null || item === void 0 ? void 0 : item.disabled })))))), index.h("div", { key: '4bee880fe9710a26eb03b074ef35bb7f75802c96', ref: el => (this.measurementContainerRef = el), style: {
|
|
9077
9205
|
position: 'absolute',
|
|
9078
9206
|
visibility: 'hidden',
|
|
9079
9207
|
pointerEvents: 'none',
|
|
9080
9208
|
display: 'flex',
|
|
9081
9209
|
gap: 'var(--spacing-02, 4px)',
|
|
9082
9210
|
}, "aria-hidden": "true" }, (_g = this.footerSecondaryButtons) === null || _g === void 0 ? void 0 :
|
|
9083
|
-
_g.map((item) => (index.h("udp-button", { variant: "text", size: "medium", disabled: item.disabled, endIcon: item.icon }, item.label))), this.primaryButtonLabel && (index.h("udp-button", { key: '
|
|
9211
|
+
_g.map((item) => (index.h("udp-button", { variant: "text", size: "medium", disabled: item.disabled, endIcon: item.icon }, item.label))), this.primaryButtonLabel && (index.h("udp-button", { key: 'bc6ddc8680666fee42ef35997bda54a3d895bc30', variant: "contained", size: "medium", disabled: this.primaryButtonDisabled, endIcon: this.primaryButtonIcon }, this.primaryButtonLabel)))))))));
|
|
9084
9212
|
}
|
|
9085
9213
|
get hostEl() { return index.getElement(this); }
|
|
9086
9214
|
static get watchers() { return {
|
|
@@ -9127,7 +9255,7 @@ const UdpSlider = class {
|
|
|
9127
9255
|
render() {
|
|
9128
9256
|
const hasError = !!this.error;
|
|
9129
9257
|
const message = this.error || this.hint;
|
|
9130
|
-
return (index.h(index.Host, { key: '
|
|
9258
|
+
return (index.h(index.Host, { key: '968e919a567381345434edbf781862a31dc91af3' }, index.h("fluent-field", { key: 'e86bf259ec53806c62aa0a0dcd61088088a80d91', "label-position": "above", class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, index.h("fluent-label", { key: 'e22647bd497fe52f2e393969e1443c20ea0f3a38', slot: "label", disabled: this.disabled }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'e9814f13f25e7c0a4aad486bf3b01dbae3a6453e', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: 'bc4ca6609a1cb4e245d2e80f1ef664bf0f885be7', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("fluent-slider", { key: '921ee04d6b373be00cb96eda57c3c4bef4766c78', slot: "input", name: this.name, disabled: this.disabled, min: this.min, max: this.max, step: this.step, orientation: this.orientation, value: this.value, onChange: this.handleChange }), index.h("udp-text", { key: 'f16788b1ce17b13b2c98194324d66174d92b7369', slot: "message", variant: "caption1", class: {
|
|
9131
9259
|
message: true,
|
|
9132
9260
|
error: hasError,
|
|
9133
9261
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -9141,7 +9269,7 @@ const UdpSpinner = class {
|
|
|
9141
9269
|
index.registerInstance(this, hostRef);
|
|
9142
9270
|
}
|
|
9143
9271
|
render() {
|
|
9144
|
-
return (index.h(index.Host, { key: '
|
|
9272
|
+
return (index.h(index.Host, { key: 'b2ebebedd1f2d8dc407f468ed5be898f18be92c4' }, index.h("fluent-spinner", { key: 'd5ffa74b2face2f7ccba2cda261bee48abbbceb6', size: this.size, appearance: this.appearance })));
|
|
9145
9273
|
}
|
|
9146
9274
|
};
|
|
9147
9275
|
|
|
@@ -9407,7 +9535,7 @@ const UdpTabPanel = class {
|
|
|
9407
9535
|
}
|
|
9408
9536
|
render() {
|
|
9409
9537
|
const isActive = this.activeTabId === this.id;
|
|
9410
|
-
return (index.h(index.Host, { key: '
|
|
9538
|
+
return (index.h(index.Host, { key: '067b209fb2c85ef835fb236e1964f019e0c1266d', role: "tabpanel", "aria-labelledby": this.id, "aria-hidden": !isActive ? 'true' : 'false', hidden: !isActive }, index.h("slot", { key: 'a3c13914b547903978700e6304f68fa406190e3d' })));
|
|
9411
9539
|
}
|
|
9412
9540
|
static get delegatesFocus() { return true; }
|
|
9413
9541
|
};
|
|
@@ -9532,11 +9660,11 @@ const UdpTextarea = class {
|
|
|
9532
9660
|
render() {
|
|
9533
9661
|
const hasError = !!this.error;
|
|
9534
9662
|
const message = this.error || this.hint;
|
|
9535
|
-
return (index.h(index.Host, { key: '
|
|
9663
|
+
return (index.h(index.Host, { key: '77859e24a772df8c9be07c9b06b0cdd2515e0f7b', class: { 'has-error': hasError } }, index.h("fluent-field", { key: 'fa47373ad6ab9e226b98f2ff4353ef5dbf2e0b53', class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, index.h("fluent-textarea", { key: '749fec0b2025ce254760de7ae4db8b7254d0e5de', ref: el => (this.internalInput = el), slot: "input", name: this.name, value: this.value, placeholder: this.placeholder, required: this.required, disabled: this.disabled, readonly: this.readonly, autofocus: this.autofocus, spellcheck: this.spellcheck ? 'true' : 'false', appearance: this.appearance, resize: this.resize, maxlength: this.maxLength, autoResize: this.autoResize, size: this.controlSize, displayShadow: true,
|
|
9536
9664
|
// Events
|
|
9537
9665
|
onInput: this.handleInput, onBlur: () => this.inputBlur.emit(), onFocus: () => this.inputFocus.emit(),
|
|
9538
9666
|
// Suppress native invalid popup
|
|
9539
|
-
onInvalid: (e) => e.preventDefault() }), index.h("fluent-label", { key: '
|
|
9667
|
+
onInvalid: (e) => e.preventDefault() }), index.h("fluent-label", { key: '60dd872557b36cee9345bb9a5d7b823f613a156c', slot: "label", disabled: this.disabled }, this.label, this.popupHint && (index.h("udp-tooltip", { key: 'a6e9e0a150bf5c329338ac3036b654e43ec15960', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '6c415371038d73c8c8f77db341b5b65484c69acf', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("udp-text", { key: 'e7da461e4f27239319db9f2d62b2b4d00de9eb46', slot: "message", variant: "caption1", class: {
|
|
9540
9668
|
message: true,
|
|
9541
9669
|
error: hasError,
|
|
9542
9670
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -10016,7 +10144,7 @@ const UdpTimeInput = class {
|
|
|
10016
10144
|
const effectiveError = this.internalError || this.error;
|
|
10017
10145
|
const hasError = !!effectiveError;
|
|
10018
10146
|
const message = effectiveError || this.hint;
|
|
10019
|
-
return (index.h(index.Host, { key: '
|
|
10147
|
+
return (index.h(index.Host, { key: '44d0689e7988d9a72fc1a9e322d348bcdac7bbed', class: { 'has-error': hasError } }, index.h("fluent-field", { key: 'deb61a054545c8fefe432414c3ee53979704cf35', class: { 'no-message': !message && !this.includeErrorPadding } }, index.h("udp-popover", { key: 'b83cfbd2db1c0454c6fa066f7f75e95143271a5c', slot: "input", open: this.isOpen, position: "bottom-start", toggleOnTriggerClick: false, matchTriggerWidth: true, onPopoverClose: this.handlePopoverClose }, index.h("fluent-text-input", { key: 'b7aa35470775979cfdbb7eb3a3f51735637b1682', slot: "trigger", ref: el => (this.internalInput = el), class: { 'no-label': !this.label }, value: this.inputValue, name: this.name, autocomplete: "off", placeholder: this.placeholder, disabled: this.disabled, appearance: this.appearance, controlSize: this.controlSize, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onClick: this.handleInputClick }, index.h("fluent-label", { key: 'f3dc0195ce785fc62bb35723c619a8996803e7cb', required: this.required, disabled: this.disabled, onMouseDown: this.handleLabelMouseDown }, this.label, this.popupHint && (index.h("udp-tooltip", { key: '03b5638ac5a585f976e94e36b6b59f42c16812b2', content: this.popupHint, positioning: "above" }, index.h("udp-fluent-icon", { key: '4e7f21d6b631214930e9aba8fb0ec46eb117d050', name: "info", size: "xs", class: "popup-hint-icon" })))), index.h("div", { key: 'bbe3485bf19a013b1ac9ae93a9528da270a4b5e2', slot: "end" }, index.h("udp-fluent-icon-button", { key: '46663269176388b61a586aa68bf237d3d74ac1d5', appearance: "transparent", iconName: "clock", disabled: this.disabled, tabindex: -1, onMouseDown: this.handleIconMouseDown, onClick: this.handleIconClick }))), index.h("div", { key: '55509c3c56fff966a1fc709e82f7788fd88659ea', slot: "content", class: "listbox-container" }, index.h("fluent-listbox", { key: '9afbeb89265f4a34fed387aaaa9a0b071341e3fc' }, this.timeOptions.map((option, index$1) => (index.h("fluent-option", { key: option.value, value: option.value, class: { active: index$1 === this.activeIndex }, onClick: () => this.handleOptionClick(option) }, index.h("span", { slot: "checked-indicator" }), option.label)))))), index.h("udp-text", { key: '7aa55e4723dffd30df6b256e00496a1936fd6ce6', slot: "message", variant: "caption1", class: {
|
|
10020
10148
|
message: true,
|
|
10021
10149
|
error: hasError,
|
|
10022
10150
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -10064,18 +10192,18 @@ const UdpTooltip = class {
|
|
|
10064
10192
|
render() {
|
|
10065
10193
|
// A stable, internal ID is safe because it is scoped to this Shadow Root
|
|
10066
10194
|
const anchorId = 'internal-anchor';
|
|
10067
|
-
return (index.h(index.Host, { key: '
|
|
10195
|
+
return (index.h(index.Host, { key: '0067d7a56b24d183eb0b91f931f2d19d01f2e5d6' }, index.h("div", { key: '60e0ce5333db01759dfc0fd7b56ce7b5dd4d9a29', id: anchorId, onFocusin: (e) => {
|
|
10068
10196
|
var _a, _b;
|
|
10069
10197
|
// Only show on keyboard-driven focus, not pointer clicks or programmatic focus restoration
|
|
10070
10198
|
if ((_a = e.target) === null || _a === void 0 ? void 0 : _a.matches(':focus-visible')) {
|
|
10071
10199
|
(_b = this.tooltipRef) === null || _b === void 0 ? void 0 : _b.showTooltip(0);
|
|
10072
10200
|
}
|
|
10073
|
-
}, onFocusout: () => { var _a; return (_a = this.tooltipRef) === null || _a === void 0 ? void 0 : _a.hideTooltip(0); } }, index.h("slot", { key: '
|
|
10201
|
+
}, onFocusout: () => { var _a; return (_a = this.tooltipRef) === null || _a === void 0 ? void 0 : _a.hideTooltip(0); } }, index.h("slot", { key: 'b6be513e4eb69604e26ddec26fdf4329164d21d8' })), index.h("fluent-tooltip", { key: '52c743de0edb443bea54e174cd76858777a9adce', ref: el => (this.tooltipRef = el), anchor: anchorId, delay: this.delay, positioning: this.positioning }, this.content)));
|
|
10074
10202
|
}
|
|
10075
10203
|
};
|
|
10076
10204
|
UdpTooltip.style = udpTooltipCss();
|
|
10077
10205
|
|
|
10078
|
-
const udpTreeCss = () => `:host{display:block}`;
|
|
10206
|
+
const udpTreeCss = () => `:host{display:block}.interaction-button fluent-tree-item::part(chevron){display:none}.interaction-button.collapsible fluent-tree-item::part(chevron){display:inline-flex;cursor:pointer;border-radius:var(--borderRadiusSmall)}.interaction-button.collapsible fluent-tree-item::part(chevron):hover{background-color:var(--colorSubtleBackgroundHover)}.interaction-button fluent-tree-item::part(positioning-region){height:auto;min-height:32px;margin:1px var(--spacingHorizontalS);padding-block:var(--spacingVerticalXXS);border-radius:var(--borderRadiusMedium);transition:background-color var(--durationFaster, 0.1s) ease}.interaction-button fluent-tree-item::part(positioning-region):hover{background-color:var(--colorSubtleBackgroundHover)}.interaction-button fluent-tree-item[selected]::part(positioning-region){background-color:var(--colorBrandBackground2)}.interaction-button fluent-tree-item[selected]::part(positioning-region):hover{background-color:var(--colorBrandBackground2Hover, var(--colorBrandBackground2))}.interaction-button fluent-tree-item::part(content){gap:var(--spacingHorizontalXS)}`;
|
|
10079
10207
|
|
|
10080
10208
|
const UdpTree = class {
|
|
10081
10209
|
constructor(hostRef) {
|
|
@@ -10105,6 +10233,49 @@ const UdpTree = class {
|
|
|
10105
10233
|
* Path to the content property, or a function to generate the content (default slot).
|
|
10106
10234
|
*/
|
|
10107
10235
|
this.itemContent = 'label';
|
|
10236
|
+
/**
|
|
10237
|
+
* How a row click behaves:
|
|
10238
|
+
* - `'tree'` (default): native Fluent tree behavior — clicking a row toggles
|
|
10239
|
+
* its expansion and selects it; `itemClick` fires for the directly-clicked
|
|
10240
|
+
* row. Selection is managed internally by Fluent.
|
|
10241
|
+
* - `'button'`: rows act as buttons. A click anywhere on the row (icon, text,
|
|
10242
|
+
* aside) emits `itemClick` exactly once and stops there — no built-in
|
|
10243
|
+
* expand toggle and no internal selection. Pair with `selectedId` (for the
|
|
10244
|
+
* highlight) and `itemExpanded` (to control which parents are open).
|
|
10245
|
+
*/
|
|
10246
|
+
this.interaction = 'tree';
|
|
10247
|
+
/**
|
|
10248
|
+
* When `true`, parent rows get a disclosure chevron that toggles their
|
|
10249
|
+
* expansion, while the rest of the row keeps its normal click behavior.
|
|
10250
|
+
* Designed to pair with `interaction="button"`: clicking a row body still
|
|
10251
|
+
* emits `itemClick` (open details), but clicking the chevron only
|
|
10252
|
+
* expands/collapses that group — it neither selects the row nor emits
|
|
10253
|
+
* `itemClick`. Initial open/closed state is seeded from `itemExpanded`
|
|
10254
|
+
* (so a tree can render fully expanded on load); the user's subsequent
|
|
10255
|
+
* collapse/expand choices are owned internally and persist by id across
|
|
10256
|
+
* re-renders. No effect in `interaction="tree"` mode, where Fluent's native
|
|
10257
|
+
* row-click already toggles expansion.
|
|
10258
|
+
*/
|
|
10259
|
+
this.collapsible = false;
|
|
10260
|
+
/**
|
|
10261
|
+
* Per-id expansion overrides applied on top of the `itemExpanded` seed.
|
|
10262
|
+
* Empty until the user clicks a chevron; an entry means "the user set this
|
|
10263
|
+
* row's expansion explicitly." Keyed by resolved item id so the choice
|
|
10264
|
+
* survives `treeItems` edits (e.g. the builder re-flattening the form).
|
|
10265
|
+
*/
|
|
10266
|
+
this.expandedOverrides = {};
|
|
10267
|
+
}
|
|
10268
|
+
/** True when the click landed on a row's disclosure chevron `::part`. */
|
|
10269
|
+
isChevronClick(e) {
|
|
10270
|
+
return e.composedPath().some(el => el instanceof Element &&
|
|
10271
|
+
(el.getAttribute('part') === 'chevron' ||
|
|
10272
|
+
el.classList.contains('chevron') ||
|
|
10273
|
+
el.getAttribute('slot') === 'chevron'));
|
|
10274
|
+
}
|
|
10275
|
+
/** Flip the stored expansion for one row, seeding from its initial state. */
|
|
10276
|
+
toggleExpanded(id, initialExpanded) {
|
|
10277
|
+
const current = id in this.expandedOverrides ? this.expandedOverrides[id] : initialExpanded;
|
|
10278
|
+
this.expandedOverrides = Object.assign(Object.assign({}, this.expandedOverrides), { [id]: !current });
|
|
10108
10279
|
}
|
|
10109
10280
|
/**
|
|
10110
10281
|
* Flexible resolver to get data from the item
|
|
@@ -10127,6 +10298,38 @@ const UdpTree = class {
|
|
|
10127
10298
|
}
|
|
10128
10299
|
return undefined;
|
|
10129
10300
|
}
|
|
10301
|
+
/** Icon size that pairs with the tree's row size. */
|
|
10302
|
+
iconSizeForTree() {
|
|
10303
|
+
return this.size === 'small' ? 'sm' : 'md';
|
|
10304
|
+
}
|
|
10305
|
+
/** Start-slot icon from `itemIcon` (string name or `{ name, color?, size? }`). */
|
|
10306
|
+
renderItemIcon(item) {
|
|
10307
|
+
var _a;
|
|
10308
|
+
const resolved = this.resolveProp(item, this.itemIcon);
|
|
10309
|
+
if (!resolved)
|
|
10310
|
+
return null;
|
|
10311
|
+
const d = typeof resolved === 'string' ? { name: resolved } : resolved;
|
|
10312
|
+
if (!d || !d.name)
|
|
10313
|
+
return null;
|
|
10314
|
+
return index.h("udp-fluent-icon", { name: d.name, size: (_a = d.size) !== null && _a !== void 0 ? _a : this.iconSizeForTree(), color: d.color });
|
|
10315
|
+
}
|
|
10316
|
+
/** Start-slot avatar from `itemAvatar`. Wins over `itemIcon` when both resolve. */
|
|
10317
|
+
renderItemAvatar(item) {
|
|
10318
|
+
var _a, _b;
|
|
10319
|
+
const d = this.resolveProp(item, this.itemAvatar);
|
|
10320
|
+
if (!d || typeof d !== 'object')
|
|
10321
|
+
return null;
|
|
10322
|
+
return (index.h("udp-fluent-avatar", { name: d.name, initials: d.initials, src: d.src, color: d.color, shape: (_a = d.shape) !== null && _a !== void 0 ? _a : 'circular', size: (_b = d.size) !== null && _b !== void 0 ? _b : (this.size === 'small' ? 24 : 28), iconName: d.iconName }));
|
|
10323
|
+
}
|
|
10324
|
+
/** End-slot badge from `itemBadge` (scalar content, or a descriptor object). */
|
|
10325
|
+
renderItemBadge(item) {
|
|
10326
|
+
var _a, _b, _c;
|
|
10327
|
+
const resolved = this.resolveProp(item, this.itemBadge);
|
|
10328
|
+
if (resolved === null || resolved === undefined || resolved === '')
|
|
10329
|
+
return null;
|
|
10330
|
+
const d = typeof resolved === 'object' ? resolved : { content: resolved };
|
|
10331
|
+
return (index.h("udp-fluent-badge", { color: d.color, appearance: (_a = d.appearance) !== null && _a !== void 0 ? _a : 'tint', shape: (_b = d.shape) !== null && _b !== void 0 ? _b : 'rounded', size: (_c = d.size) !== null && _c !== void 0 ? _c : 'small', startIconName: d.startIconName, endIconName: d.endIconName }, d.content));
|
|
10332
|
+
}
|
|
10130
10333
|
/**
|
|
10131
10334
|
* Recursively renders tree items and their children
|
|
10132
10335
|
*/
|
|
@@ -10139,20 +10342,57 @@ const UdpTree = class {
|
|
|
10139
10342
|
return itemsAtLevel.map(item => {
|
|
10140
10343
|
const id = this.resolveProp(item, this.itemId);
|
|
10141
10344
|
const content = this.resolveProp(item, this.itemContent);
|
|
10142
|
-
const start = this.resolveProp(item, this.itemStart);
|
|
10143
|
-
const end = this.resolveProp(item, this.itemEnd);
|
|
10144
10345
|
const aside = this.resolveProp(item, this.itemAside);
|
|
10346
|
+
const selected = this.selectedId !== undefined && id === this.selectedId;
|
|
10347
|
+
// Start slot: avatar wins over icon, which wins over plain itemStart text.
|
|
10348
|
+
const avatar = this.renderItemAvatar(item);
|
|
10349
|
+
const icon = avatar ? null : this.renderItemIcon(item);
|
|
10350
|
+
const startText = this.resolveProp(item, this.itemStart);
|
|
10351
|
+
const start = avatar || icon || (startText != null ? startText : null);
|
|
10352
|
+
// End slot: plain itemEnd content plus an optional declarative badge.
|
|
10353
|
+
const endContent = this.resolveProp(item, this.itemEnd);
|
|
10354
|
+
const badge = this.renderItemBadge(item);
|
|
10355
|
+
const end = endContent != null || badge ? [endContent, badge] : null;
|
|
10145
10356
|
// Find children of this item
|
|
10146
10357
|
const children = items.filter(child => this.resolveProp(child, this.itemParentId) === id);
|
|
10147
10358
|
const hasChildren = children.length > 0;
|
|
10148
|
-
|
|
10359
|
+
// Seed expansion from `itemExpanded`; once the user toggles a chevron in
|
|
10360
|
+
// `collapsible` mode, the stored override wins so the choice sticks.
|
|
10361
|
+
const seedExpanded = this.itemExpanded !== undefined
|
|
10362
|
+
? !!this.resolveProp(item, this.itemExpanded)
|
|
10363
|
+
: undefined;
|
|
10364
|
+
const expanded = this.collapsible && id in this.expandedOverrides
|
|
10365
|
+
? this.expandedOverrides[id]
|
|
10366
|
+
: seedExpanded;
|
|
10367
|
+
return (index.h("fluent-tree-item", { key: id, size: this.size, appearance: this.appearance, expanded: expanded, selected: selected, onClick: (e) => {
|
|
10368
|
+
// Chevron in collapsible mode: toggle this group's expansion only —
|
|
10369
|
+
// no selection, no `itemClick`. Stop here so the click never reaches
|
|
10370
|
+
// Fluent's tree handler (which would also select the row).
|
|
10371
|
+
if (this.collapsible && hasChildren && this.isChevronClick(e)) {
|
|
10372
|
+
e.stopPropagation();
|
|
10373
|
+
this.toggleExpanded(id, !!seedExpanded);
|
|
10374
|
+
return;
|
|
10375
|
+
}
|
|
10376
|
+
if (this.interaction === 'button') {
|
|
10377
|
+
// Whole row is a button: emit once for this row and stop, so the
|
|
10378
|
+
// click never bubbles to ancestor items or to Fluent's tree
|
|
10379
|
+
// click handler (which would toggle expansion / auto-select).
|
|
10380
|
+
e.stopPropagation();
|
|
10381
|
+
this.itemClick.emit(item);
|
|
10382
|
+
return;
|
|
10383
|
+
}
|
|
10384
|
+
// 'tree' mode — preserve native behavior: only the directly-clicked
|
|
10385
|
+
// row emits; Fluent's tree handler manages toggle + selection.
|
|
10149
10386
|
if (e.target === e.currentTarget)
|
|
10150
10387
|
this.itemClick.emit(item);
|
|
10151
10388
|
} }, start && index.h("div", { slot: "start" }, start), content, end && index.h("div", { slot: "end" }, end), aside && index.h("div", { slot: "aside" }, aside), hasChildren && this.renderTreeItems(items, id)));
|
|
10152
10389
|
});
|
|
10153
10390
|
}
|
|
10154
10391
|
render() {
|
|
10155
|
-
return (index.h(index.Host, { key: '
|
|
10392
|
+
return (index.h(index.Host, { key: '60890c72952a6f5cff22c20e40afc2fece25a464' }, index.h("fluent-tree", { key: 'b22362f90a108f7342c7b9f56a3d5cdaa8129fbc', class: {
|
|
10393
|
+
'interaction-button': this.interaction === 'button',
|
|
10394
|
+
collapsible: this.collapsible,
|
|
10395
|
+
}, size: this.size, appearance: this.appearance }, this.treeItems.length > 0 ? this.renderTreeItems(this.treeItems) : index.h("slot", null))));
|
|
10156
10396
|
}
|
|
10157
10397
|
};
|
|
10158
10398
|
UdpTree.style = udpTreeCss();
|