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
|
@@ -18,6 +18,7 @@ import '@fluentui/web-components/option.js';
|
|
|
18
18
|
import '@fluentui/web-components/listbox.js';
|
|
19
19
|
import '@fluentui/web-components/button.js';
|
|
20
20
|
import '@fluentui/web-components/compound-button.js';
|
|
21
|
+
import { h as hasSlotContent } from './slot-helpers-Dx6EW-PP.js';
|
|
21
22
|
import '@fluentui/web-components/text-input.js';
|
|
22
23
|
import 'cally';
|
|
23
24
|
import '@fluentui/web-components/avatar.js';
|
|
@@ -167,7 +168,7 @@ function createAgGridTheme() {
|
|
|
167
168
|
wrapperBorderRadius: 0,
|
|
168
169
|
wrapperBorder: false,
|
|
169
170
|
headerCellHoverBackgroundColor: 'var(--udp-grid-column-header-bg-hover)',
|
|
170
|
-
borderColor: '
|
|
171
|
+
borderColor: '#E9ECEF',
|
|
171
172
|
accentColor: 'var(--primary-color)',
|
|
172
173
|
browserColorScheme: 'light',
|
|
173
174
|
}, 'light')
|
|
@@ -1068,9 +1069,37 @@ class BulkActions {
|
|
|
1068
1069
|
this.onRowSelectionChanged = () => {
|
|
1069
1070
|
var _a;
|
|
1070
1071
|
startGuardedTransition(() => {
|
|
1071
|
-
|
|
1072
|
-
this.
|
|
1073
|
-
|
|
1072
|
+
var _a, _b, _c, _d;
|
|
1073
|
+
if (this.api.getGridOption('rowModelType') === 'serverSide') {
|
|
1074
|
+
// SSRM: selection is a rule, not a row list. Derive the count from the
|
|
1075
|
+
// rule. getSelectedRows() must NOT be called while select-all is active
|
|
1076
|
+
// (AG Grid warning #199), so only read concrete rows for explicit picks.
|
|
1077
|
+
const state = this.api.getServerSideSelectionState();
|
|
1078
|
+
const total = (_b = (_a = this.api.getGridOption('context')) === null || _a === void 0 ? void 0 : _a.rowCount) !== null && _b !== void 0 ? _b : 0;
|
|
1079
|
+
const toggledNodes = (_c = state === null || state === void 0 ? void 0 : state.toggledNodes) !== null && _c !== void 0 ? _c : [];
|
|
1080
|
+
const selectAll = (_d = state === null || state === void 0 ? void 0 : state.selectAll) !== null && _d !== void 0 ? _d : false;
|
|
1081
|
+
this.selectedRows = selectAll ? [] : this.api.getSelectedRows();
|
|
1082
|
+
this.selectedRowCount = selectAll
|
|
1083
|
+
? Math.max(total - toggledNodes.length, 0)
|
|
1084
|
+
: toggledNodes.length;
|
|
1085
|
+
this.selectionState = {
|
|
1086
|
+
rowModelType: 'serverSide',
|
|
1087
|
+
selectAll,
|
|
1088
|
+
toggledNodes,
|
|
1089
|
+
selectedCount: this.selectedRowCount,
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
else {
|
|
1093
|
+
const rows = this.api.getSelectedRows();
|
|
1094
|
+
this.selectedRows = rows;
|
|
1095
|
+
this.selectedRowCount = rows.length;
|
|
1096
|
+
this.selectionState = {
|
|
1097
|
+
rowModelType: 'clientSide',
|
|
1098
|
+
selectAll: false,
|
|
1099
|
+
toggledNodes: [],
|
|
1100
|
+
selectedCount: rows.length,
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1074
1103
|
this.refresh();
|
|
1075
1104
|
});
|
|
1076
1105
|
//Refetch server action if gridId has changed, or fetch has not happened
|
|
@@ -1099,13 +1128,13 @@ class BulkActions {
|
|
|
1099
1128
|
this.executeLocalFunction = (functionName) => {
|
|
1100
1129
|
const selectedFunction = this.localFunctions.find(f => f.label === functionName);
|
|
1101
1130
|
if (selectedFunction) {
|
|
1102
|
-
selectedFunction.callback(this.selectedRows);
|
|
1131
|
+
selectedFunction.callback(this.selectedRows, this.selectionState);
|
|
1103
1132
|
}
|
|
1104
1133
|
this.refresh();
|
|
1105
1134
|
};
|
|
1106
1135
|
this.executeActionProviderAction = (actionId) => {
|
|
1107
1136
|
if (this.actionProviderCallback) {
|
|
1108
|
-
this.actionProviderCallback(actionId, this.selectedRows);
|
|
1137
|
+
this.actionProviderCallback(actionId, this.selectedRows, this.selectionState);
|
|
1109
1138
|
}
|
|
1110
1139
|
this.refresh();
|
|
1111
1140
|
};
|
|
@@ -1125,11 +1154,22 @@ class BulkActions {
|
|
|
1125
1154
|
this.api.setGridOption('rowSelection', { mode: 'multiRow', enableClickSelection: true });
|
|
1126
1155
|
}
|
|
1127
1156
|
else {
|
|
1157
|
+
// SSRM: the header checkbox selects ALL matching rows (every page), stored
|
|
1158
|
+
// as a selection rule ({ selectAll, toggledNodes }) — not a row list.
|
|
1159
|
+
// 'currentPage'/'filtered' are invalid for SSRM and silently fall back to
|
|
1160
|
+
// 'all', so we leave selectAll at its default. Selection is read from
|
|
1161
|
+
// getServerSideSelectionState() in onRowSelectionChanged.
|
|
1128
1162
|
this.api.setGridOption('rowSelection', {
|
|
1129
1163
|
mode: 'multiRow',
|
|
1130
1164
|
enableClickSelection: true,
|
|
1131
|
-
headerCheckbox:
|
|
1165
|
+
headerCheckbox: true,
|
|
1132
1166
|
});
|
|
1167
|
+
// SSRM row selection requires Row IDs; without getRowId the select-all
|
|
1168
|
+
// state and selection tracking are unreliable.
|
|
1169
|
+
if (!this.api.getGridOption('getRowId')) {
|
|
1170
|
+
console.warn('[bulkActions] Server-side row selection requires `getRowId` in gridOptions. ' +
|
|
1171
|
+
'Without it the header checkbox select-all and selection state are unreliable.');
|
|
1172
|
+
}
|
|
1133
1173
|
}
|
|
1134
1174
|
//Get gridId from context and fetch bulk actions, or set empty server actions if no gridId
|
|
1135
1175
|
this.gridId = (_b = this.api.getGridOption('context')) === null || _b === void 0 ? void 0 : _b.gridId;
|
|
@@ -1697,7 +1737,7 @@ const AgGridBase = class {
|
|
|
1697
1737
|
this.updateGridContextValues();
|
|
1698
1738
|
}
|
|
1699
1739
|
render() {
|
|
1700
|
-
return (h("div", { key: '
|
|
1740
|
+
return (h("div", { key: '104459ae3bbc35124905c375284deea7fd4a18e2', ref: el => (this.gridContainerEl = el) }, h("ghost-render", { key: '9246393a0abf0f32551fc7783747328dbba99ec7' }, h("div", { key: 'b8e6d1fdb1ff7884e6723a0ff9421bd12ad63740' }, h("udp-dialog", { key: '4e2de434c26d11fa47104e6c8f06d76d3e617500' }), h("udp-list-item", { key: 'c46d7dec91a2bae694631f095c9904f85d607ba6' }), h("hint-panel", { key: '4177e50ac5fedda3f15de57153de46201f104454' }), h("udp-side-sheet", { key: '2e8914c6d8ea1bb83e48cce4489fd2d636884498' }), h("udp-fluent-dialog", { key: '482719dc0f89bdbe4749d28aa1d2509343de1ca7' }), h("udp-fluent-text", { key: '03a30ea4a724b2d003befd88f4fa8eba27685411' }), h("udp-fluent-text-input", { key: 'a6e25454b5bd17db8ed441363c81b66902987323' }), h("udp-fluent-switch", { key: 'b547bd01dda86ba3b1c94a5973de9b562cf7cb59' }), h("udp-fluent-button", { key: '9d5b809d46caaedf783b42598adb23f2d181a8b8' }), h("udp-text", { key: 'f4ce740ea9998d756f4e9518a1c304dd5e4208a3' }), h("udp-search-input", { key: '8192e2ac08b3ee6052578677c3361e9dc7648ec5' }), h("udp-fluent-avatar", { key: '8e7f9bb0c6e9dee5d50b5740a9599a7a1271f677' }), h("udp-fluent-icon-button", { key: '059f897ae01e52266e938f77c70dd848efd12f43' }), h("udp-fluent-icon", { key: '33b02e8a98bb6fee997ac180942dbb2545ea2c21' }), h("udp-fluent-badge", { key: '5b0ca3ac9944d662c9593602fe8adfd13da4a2b8' }))), h("grid-header", { key: '5a1a52b5e07dd84dbc5f7b0c8d6ac3cca3faa2d9', headerConfig: this.headerConfig, gridFunctions: this.gridFunctions, gridFunctionInstances: this.gridFunctionInstances, refreshKey: this.refreshKey, onHeaderAction: this.onHeaderAction }), h("div", { key: 'ea69fb43b9a875f35ef7851662af90474321ef81', ref: el => (this.gridEl = el) })));
|
|
1701
1741
|
}
|
|
1702
1742
|
static get watchers() { return {
|
|
1703
1743
|
"gridFunctions": [{
|
|
@@ -1760,7 +1800,7 @@ const ClientSideGrid = class {
|
|
|
1760
1800
|
this.clientSideConfig = Object.assign(Object.assign({}, this.gridOptions), { rowModelType: 'clientSide' });
|
|
1761
1801
|
}
|
|
1762
1802
|
render() {
|
|
1763
|
-
return (h("ag-grid-base", { key: '
|
|
1803
|
+
return (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 }));
|
|
1764
1804
|
}
|
|
1765
1805
|
static get watchers() { return {
|
|
1766
1806
|
"rowData": [{
|
|
@@ -1846,7 +1886,7 @@ const GhostRender = class {
|
|
|
1846
1886
|
// The <slot /> is necessary to prevent the Stencil compiler from
|
|
1847
1887
|
// overly optimizing this component's output and aliasing the
|
|
1848
1888
|
// defineCustomElement export, which breaks downstream wrappers.
|
|
1849
|
-
return (h(Host, { key: '
|
|
1889
|
+
return (h(Host, { key: 'bec0fa4741a39ce0d804f3f98ce8c211138028d3' }, h("slot", { key: 'f6934523537cde4b6ebc2fe0f8af1a83c3cab2d8' })));
|
|
1850
1890
|
}
|
|
1851
1891
|
};
|
|
1852
1892
|
GhostRender.style = `:host {
|
|
@@ -2018,7 +2058,7 @@ const HintPanel = class {
|
|
|
2018
2058
|
};
|
|
2019
2059
|
}
|
|
2020
2060
|
render() {
|
|
2021
|
-
return (h("div", { key: '
|
|
2061
|
+
return (h("div", { key: '9f3e0a64c558e9640f0452edaf641053460c8a39', class: "hint-container" }, this.showHint && (h("div", { key: '357a51d28445c9ef44d285b90d414adc79a3c0c4', class: "hint-content" }, h("div", { key: '955c8e4bdb80681728a3b1e828eef95c830e0f86' }, h("unity-typography", { key: 'c13886bc1eb7869e3e4c5fccc19a53d559227f9f', variant: "body" }, " ", this.hint, " ")), this.hideHintText && (h("div", { key: 'a17cfbf74ace9228b4633a9ab15b525801bbc552', class: "hide-help" }, h("udp-button", { key: '71c170ce3161e76a96dae07649d72b0598352db4', size: "small", color: "info", onClick: this.handleHideHint }, this.hideHintText)))))));
|
|
2022
2062
|
}
|
|
2023
2063
|
};
|
|
2024
2064
|
HintPanel.style = hintPanelCss();
|
|
@@ -2471,51 +2511,51 @@ const TestComponentsPage = class {
|
|
|
2471
2511
|
}
|
|
2472
2512
|
render() {
|
|
2473
2513
|
var _a;
|
|
2474
|
-
return (h("div", { key: '
|
|
2514
|
+
return (h("div", { key: 'a9c2322a26615d31613089bc327c27e3ec4917aa', style: { display: 'flex', flexDirection: 'column' } }, h("div", { key: 'bf2ba944baa02b50dd338098d9d5c3ed4e92eac9', style: { display: 'flex', gap: '1rem', marginTop: '1rem' } }, h("udp-fluent-button", { key: '242492378dad7dd52621678294e2647c6dbb499c', onClick: () => (this.formDrawerOpen = true) }, "Open Form Drawer"), h("udp-fluent-button", { key: '66126efb0e275889a5377d0a8b3e4dcd42d4e715', onClick: () => (this.drawerOpen = true) }, "Open Grid Drawer")), h("div", { key: '919821dfd30a7cf09bad796e7d3b4b5ca3ac8097', style: { display: 'flex', flexDirection: 'column', gap: '1rem', marginTop: '2rem' } }, h("h4", { key: '00e3320913a1c3c53978f2b1b07d78165930214c' }, "Scroll Overflow Strategy"), h("udp-fluent-tablist", { key: '9ab08dcfddfdbe4d43d22533bb7e91e4eb306b6d', tabList: this.tabs, onTabChange: this.handleTabChange, appearance: "transparent", size: "small", orientation: "horizontal", overflowStrategy: "scroll" }, h("span", { key: 'a70671fda6c6472f7fe8b21800b295ab122a8c7e', slot: "grids-start", style: { color: 'red', fontWeight: 'bold' } }, "!")), h("h4", { key: '963ef03978a78e87336b27be5add4c29f5a2efb0' }, "Collapse Overflow Strategy"), h("udp-fluent-tablist", { key: 'ea61b3879d3cbbeb9c6618e5858d41c2f836028e', tabList: this.tabs, onTabChange: this.handleTabChange, appearance: "contained", size: "small", orientation: "horizontal", overflowStrategy: "collapse" }, h("span", { key: '72ca1c8badafb439d583d3361492a33c50203d07', slot: "grids-start", style: { color: 'red', fontWeight: 'bold' } }, "!")), h("div", { key: 'bc463889ac07a431dc87c73f067fb8addbc24cc5', style: { padding: '1rem', border: '1px solid #ccc' } }, h("udp-tab-panel", { key: 'ac7bcd1e0855661c1b006bdd8d5f25ffd1575743', id: "buttons-inputs", activeTabId: this.currentTab }, h("div", { key: '63b0192e96eb71b182b0707d8db7eeae399ebcef', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, h("h3", { key: 'e3d5f9758314ab4d5d7cba2cead95d182a143b82' }, "Buttons & Inputs"), h("div", { key: 'd2d95504692b3429c7fb43bc27ae938f4e7626ff', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-switch", { key: 'e9ce5e96a67c67afe668d3bfe1c60cc3fbaeabc2', label: "Toggle Loading", checked: this.isButtonLoading, onValueChanged: e => (this.isButtonLoading = e.detail) }), h("udp-fluent-button", { key: '076a4b9c8b3939fca0e5b0fe165f38c1e1478c4f', loading: this.isButtonLoading, size: "medium" }, h("udp-fluent-icon", { key: '35c7becc662dd5d891f5aaee818cacb728a9aab5', name: "calendar", size: "sm", slot: "start" }), "Loading Button")), h("div", { key: 'c36f993d3d0034655fdea10d24ae114d0fb55fba' }, h("udp-fluent-button", { key: '005f381234113fd751518aadae7dbf5f98b2d60d', onClick: () => console.log('Click Me Clicked') }, "Click Me")), h("div", { key: '21a9b646be50f2c9adf88a1cbb7c159e8a3a1708' }, h("h4", { key: '71fb818808575b24d24fdfbe78e23e3fba82f405' }, "New Icon Props"), h("div", { key: '9877970aeb3fd51cb725b7a7423fc0af02c24ee9', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-button", { key: '926b5e5137ad0533897ab4dd303cb9106eea1f80', startIconName: "checkmark", onClick: () => console.log('Start Icon Clicked') }, "Start Icon"), h("udp-fluent-button", { key: '92cca95950d0eed95c50a6292564e32a92ced897', size: "large", onClick: () => console.log('End Icon Clicked'), endIconName: "home" }, "End Icon"), h("udp-fluent-button", { key: 'f960cf20882fcd125b7a53c0a2576350d4889347', appearance: "primary", onClick: () => console.log('Primary Clicked') }, "Delete"), h("udp-fluent-button", { key: 'c93088bb38d605f6d3d895c4e078366a6b91c396', startIconName: "checkmark", onClick: () => console.log('Override Icon Clicked') }, h("span", { key: '9caa795afb3ca4f0037bb44c561ea2b4cefe27ef', slot: "start" }, h("udp-fluent-icon", { key: 'cdf66302bae34dad84acdc7e87251c2f9386e336', name: "home", size: "md" })), "Slotted icon override"))), h("div", { key: 'd323f8e769102769a062974da71b7eb8d6658f10' }, h("h4", { key: '038bb2e73ad76f03f3e2b8de5359e29b0b319611' }, "Compound Buttons"), h("div", { key: '57dfa5e9eb921e6b2c602098677a4144119b4ca1', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-compound-button", { key: '99830baa92fae322458cacaf94a554aad816d02c', description: "Hello World", startIconName: "calendar" }, "Compound Button"), h("udp-compound-button", { key: '0e07486eb840a6af2ea73f1cd57f582d2ead0cbb', appearance: "primary", description: "With End Icon", endIconName: "delete" }, "Primary"), h("udp-compound-button", { key: 'bb60625d8140dbc78f1a382381bcb7225b244818', description: "Custom Slot", size: "small", startIconName: "add", onClick: () => console.log('Compound Button Clicked') }, h("span", { key: '29f365a8cf5a0c3887a47b87faabe40682037408', slot: "description" }, "Slotted Description"), "Compound")), h("div", { key: '6d7109606ba0485a72b5152245c97cb8a18844a4', style: {
|
|
2475
2515
|
marginTop: '1rem',
|
|
2476
2516
|
display: 'flex',
|
|
2477
2517
|
gap: '1rem',
|
|
2478
2518
|
alignItems: 'center',
|
|
2479
|
-
} }, h("udp-fluent-switch", { key: '
|
|
2519
|
+
} }, h("udp-fluent-switch", { key: '04ebf651f2230fdcc81a7928662cbbb4ae9b9161', checked: this.isButtonLoading, onValueChanged: e => (this.isButtonLoading = e.detail) }, "Toggle Loading"), h("udp-compound-button", { key: '0e7638c6075fb794c97e7d2ee59db594e561c2c0', description: "Click switch to load", endIconName: "add", loading: this.isButtonLoading, onClick: () => console.log('Compound Button Clicked') }, "Loading Test"))), h("div", { key: '244a86372c3cf3d16236c6f0e154b53af3836bbe' }, h("h4", { key: '9b3a0148eb4009f814f1b023b3bb7e4e55312d83' }, "Toggle Buttons"), h("div", { key: '5d2e76afc817c86021017b7b2ad25a0678453906', style: { display: 'flex', gap: '1rem', alignItems: 'center', flexWrap: 'wrap' } }, h("udp-fluent-toggle-button", { key: 'aa415541152a25e399d92646448824e9e3c1b444' }, "Toggle Me"), h("udp-fluent-toggle-button", { key: 'f393ebdba5b63d7d45cf02e62b52ddedcfe2d13e', pressed: true, disabled: true }, "Disabled Pressed"), h("udp-fluent-toggle-button", { key: '5956343beeaa7358a451ad981ff7ee8a8f4ac354' }, h("udp-fluent-icon", { key: 'aa7a3e07e6d9d2686db547fea62ff4340e57ab11', name: "add", size: "sm", slot: "start" }), "Slotted icon"), h("udp-fluent-toggle-button", { key: 'a6fe9d77dea303d942a68accf448b12d6421ac92', endIconName: "settings" }, "End Icon Prop"), h("udp-fluent-toggle-button", { key: '3197c1f85d6036e9269f5291d803ae2c588ff97f', size: "small", startIconName: "add" }, "Small"), h("udp-fluent-toggle-button", { key: 'c87a03c8762ea5d6a72e249c4ed5d89431ba3e3d', size: "large", endIconName: "delete" }, "Large"))), h("div", { key: '1342cf8a51ffc4824988f222c16f44faa1bb4288' }, h("h4", { key: '734d04a76b6933f8ed9ef859a8a944d3c1811651' }, "Icon Buttons (Dynamic Sizing)"), h("div", { key: 'ba2567c6e53d8a8ff789f28981a3696cf024da39', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("div", { key: 'bdb25678cde5a8689296ed1410cc44d6445ac720', style: { display: 'flex', flexDirection: 'column', alignItems: 'center' } }, h("udp-fluent-icon-button", { key: '785795590edcbcd3b3c33791c858600491e91fe2', iconName: "settings", size: "small", appearance: "primary", ariaLabel: "Edit" }), h("span", { key: '80f869560b0087cbd3f47d382f6a27944d254cb1', style: { fontSize: '12px' } }, "Small (Subtle)")), h("div", { key: '5bce1bbceb8d92fd34870279d7ed9cadae945a72', style: { display: 'flex', flexDirection: 'column', alignItems: 'center' } }, h("udp-fluent-icon-button", { key: '8b97470503d8d99e0c4eb10c9503170fe9579df5', iconName: "settings", size: "medium",
|
|
2480
2520
|
//appearance="primary"
|
|
2481
|
-
ariaLabel: "Delete" }), h("span", { key: '
|
|
2521
|
+
ariaLabel: "Delete" }), h("span", { key: '5e340cabab8b0461ae2b394d63e9b92e70bc520f', style: { fontSize: '12px' } }, "Medium (Outline)")), h("div", { key: '2fade4d53bf10e7587db6cec326b2ad5737aabc3', style: { display: 'flex', flexDirection: 'column', alignItems: 'center' } }, h("udp-fluent-icon-button", { key: 'c37eb2ac3fbdb5de76487babd3927fdb52adfc25', iconName: "settings", size: "large", appearance: "primary", ariaLabel: "Settings" }), h("span", { key: 'ecea0b60ed282a75bb468c53e2e1e31d29c5b5f0', style: { fontSize: '12px' } }, "Large (Transparent)")))), h("div", { key: '743c684b4f721cedea7f24350be72a95c4094dee' }, h("udp-loading-spinner", { key: '1637fc4d712521bb23fb795917c7f9b6437bfca6', size: "tiny", appearance: "primary" })))), h("udp-tab-panel", { key: '972256fea6668009ab1811ff1bff073de2198e45', id: "inputs", activeTabId: this.currentTab }, h("div", { key: 'f03349ae64368fac7a1aedf2adb50cb78043ffe1', style: { display: 'flex', gap: '1rem', flexDirection: 'column' } }, h("div", { key: '9c28839e42105ee9ac55df10299bfe964c65b7f6', style: {
|
|
2482
2522
|
padding: '1rem',
|
|
2483
2523
|
backgroundColor: 'var(--colorNeutralBackground3, #f5f5f5)',
|
|
2484
2524
|
borderRadius: '8px',
|
|
2485
2525
|
marginBottom: '1rem',
|
|
2486
|
-
} }, h("h3", { key: '
|
|
2526
|
+
} }, h("h3", { key: 'ec492fbcc5045a6717e23c54316d6e939b50db63', style: { margin: '0 0 1rem 0', fontSize: '16px', fontWeight: '600' } }, "Global Property Controls"), h("div", { key: '80207364c26854976d42c08da0ebbc2f4e4ffb7d', style: {
|
|
2487
2527
|
display: 'flex',
|
|
2488
2528
|
gap: '2rem',
|
|
2489
2529
|
flexWrap: 'wrap',
|
|
2490
2530
|
alignItems: 'flex-end',
|
|
2491
|
-
} }, h("udp-fluent-dropdown", { key: '
|
|
2531
|
+
} }, h("udp-fluent-dropdown", { key: 'f855a9ab7b7bd02d74e781cac1fe7a0b705eacac', label: "Appearance", value: this.inputControlAppearance, options: [
|
|
2492
2532
|
{ label: 'Outline', value: 'outline' },
|
|
2493
2533
|
{ label: 'Underline', value: 'underline' },
|
|
2494
2534
|
{ label: 'Filled Lighter', value: 'filled-lighter' },
|
|
2495
2535
|
{ label: 'Filled Darker', value: 'filled-darker' },
|
|
2496
|
-
], 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' } }), h("udp-fluent-dropdown", { key: '
|
|
2536
|
+
], 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' } }), h("udp-fluent-dropdown", { key: 'ba01afa7f9b176741781818ca5e4b3342a9621fb', label: "Control Size", value: this.inputControlSize, options: [
|
|
2497
2537
|
{ label: 'Small', value: 'small' },
|
|
2498
2538
|
{ label: 'Medium', value: 'medium' },
|
|
2499
2539
|
{ label: 'Large', value: 'large' },
|
|
2500
|
-
], 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' } }), h("udp-fluent-switch", { key: '
|
|
2540
|
+
], 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' } }), h("udp-fluent-switch", { key: 'e5732edab996b12c60eaba885c5f2348ce51b2db', label: "Required", labelPosition: "after", checked: this.inputControlRequired, onValueChanged: (e) => (this.inputControlRequired = e.detail) }), h("udp-fluent-switch", { key: '1db41ed259be9907ea3a18cf3137eb6811a6b103', label: "Disabled", labelPosition: "after", checked: this.inputControlDisabled, onValueChanged: (e) => (this.inputControlDisabled = e.detail) }), h("udp-fluent-switch", { key: 'c2c7ac38c8277ffd3e193576973a2067c8c4d109', label: "Readonly", labelPosition: "after", checked: this.inputControlReadonly, onValueChanged: (e) => (this.inputControlReadonly = e.detail) })), h("p", { key: '2c9bd808f492554642680aba181876402d33399a', style: {
|
|
2501
2541
|
margin: '0.75rem 0 0',
|
|
2502
2542
|
fontSize: '12px',
|
|
2503
2543
|
color: 'var(--colorNeutralForeground3)',
|
|
2504
|
-
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), h("udp-fluent-text-input", { key: '
|
|
2544
|
+
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), 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" }), 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" }), 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' }), 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' }), 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' }), 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' }), 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' }), h("udp-fluent-dropdown", { key: 'e215c9f73c96f9d04b9e58242e06af0763b50a06', label: "Dropdown", placeholder: "Select an option...", appearance: this.inputControlAppearance, disabled: this.inputControlDisabled, optionValue: "value", optionLabel: "label", options: [
|
|
2505
2545
|
{ label: 'Option 1', value: 'option1' },
|
|
2506
2546
|
{ label: 'Option 2', value: 'option2' },
|
|
2507
2547
|
{ label: 'Option 3', value: 'option3' },
|
|
2508
|
-
], controlSize: this.inputControlSize, multiple: true }), h("udp-autocomplete", { key: '
|
|
2548
|
+
], controlSize: this.inputControlSize, multiple: true }), h("udp-autocomplete", { key: '4dd6158d4eb44f8573fe1a89813c0778d2a4b0c4', label: "Autocomplete", placeholder: "Type to search...", appearance: this.inputControlAppearance, disabled: this.inputControlDisabled, optionValue: "value", optionLabel: "label", options: [
|
|
2509
2549
|
{ label: 'Apple', value: 'apple' },
|
|
2510
2550
|
{ label: 'Banana', value: 'banana' },
|
|
2511
2551
|
{ label: 'Cherry', value: 'cherry' },
|
|
2512
2552
|
{ label: 'Date', value: 'date' },
|
|
2513
2553
|
{ label: 'Elderberry', value: 'elderberry' },
|
|
2514
|
-
], controlSize: this.inputControlSize }), h("udp-fluent-checkbox", { key: '
|
|
2554
|
+
], controlSize: this.inputControlSize }), h("udp-fluent-checkbox", { key: 'bc4ee065153d67b6eb67074e5447e1c49c305cac', label: "Checkbox", hint: "Check me!", disabled: this.inputControlDisabled, controlSize: this.inputControlSize, checked: true }), h("udp-fluent-switch", { key: '80ec3e6a600fb60d89511355c8932eef6be076fc', label: "Switch", labelPosition: "after", disabled: this.inputControlDisabled, checked: true }), h("udp-slider", { key: '6e367840c051db800dd02c0ad71655fe7a18fed7', label: "Slider", min: "0", max: "100", hint: "Slide to adjust value", disabled: this.inputControlDisabled, value: '50' }), h("udp-fluent-radio-group", { key: '42c1ce960ddc437c35c3335eea46a6108e4dd69e', label: "Radio Group", disabled: this.inputControlDisabled, items: [
|
|
2515
2555
|
{ label: 'Option A', value: 'a' },
|
|
2516
2556
|
{ label: 'Option B', value: 'b' },
|
|
2517
2557
|
{ label: 'Option C', value: 'c' },
|
|
2518
|
-
], value: "a" }))), h("udp-tab-panel", { key: '
|
|
2558
|
+
], value: "a" }))), h("udp-tab-panel", { key: '77fdaf9cfbc1ecfbe95de9164bcf0decdee4bb12', id: "data-display", activeTabId: this.currentTab }, h("div", { key: '2bf6711e09b598cb7378fddeb54eba1448ef531f', style: { display: 'flex', flexDirection: 'column', gap: '3rem' } }, h("div", { key: '6e32607f36fd0c4172f8c1fbac1c54a45bb92f99' }, h("h3", { key: '3398cc45b6cf68f2aa43a971992a0fcb9ba20b44' }, "Tree Example - Animal Kingdom (Conservation Status)"), h("p", { key: '8e33b49ba9ec0846e98828c04c0d068e23c69564', style: { fontSize: '14px', color: '#6b7280', marginBottom: '1rem' } }, "Explore the animal kingdom with conservation status, population data, and more."), h("udp-tree", { key: '40cbeb7889dcf3b85a0152571c9b415bd38b3f22', treeItems: this.animals, itemContent: "name", itemStart: "emoji", itemEnd: this.getStatusBadge, itemAside: this.getItemAside, size: "medium", appearance: "subtle" })), h("div", { key: 'c5b9b9ac6697aaec324d3e228cc512446fac2fd3' }, h("h3", { key: '401301b8a2e88501a42f5f00ecdb122de09109c8' }, "Accordion Example"), h("udp-accordion", { key: 'f24bf1be554c94b9f444c9572de8668896d96d60', items: [
|
|
2519
2559
|
{
|
|
2520
2560
|
id: 'simple',
|
|
2521
2561
|
label: 'Simple Item (Default)',
|
|
@@ -2550,29 +2590,29 @@ const TestComponentsPage = class {
|
|
|
2550
2590
|
id: 'complex-slotted',
|
|
2551
2591
|
// complex content provided via slots below
|
|
2552
2592
|
},
|
|
2553
|
-
] }, h("span", { key: '
|
|
2593
|
+
] }, h("span", { key: 'ae3f3a9bf405fd5e851debc02f9e76ada576d5b5', slot: "complex-slotted-heading" }, h("div", { key: 'fa1c0adc0c5005ff8acd6b350a03e41883704764', style: { display: 'flex', alignItems: 'center', gap: '8px' } }, h("udp-fluent-icon", { key: 'f97f8e764feb2d77fc79767dcb45d3f0fe2ae9b4', name: "star", size: "md" }), h("span", { key: '6badcee5af6ccaac8e23da312b5141f858eea384' }, "Complex Slotted Header"), h("udp-chip", { key: '74328823d59e5508a11bf2fddaf91ee640c01817', label: "New", color: "success", size: "small", variant: "filled" }))), h("div", { key: 'e816c8ea48e64c3d21f17dd16d3b887f5d8f4690', slot: "complex-slotted-content" }, h("p", { key: '82709cbd97bfc95cff776dec0f34defbb842f30b' }, "This content uses slots for complete control.", h("br", { key: 'a164b912bb1fdf8e4c90a8fa9b9d0efb1b520387' }), h("span", { key: 'd3974ad2398721510eda3be33991eeaab4b10a89', style: { fontSize: '12px', color: 'gray' } }, "(Try adding buttons, forms, or any component here)")), h("div", { key: '019147e252c0d8a78cbb8c755aa3983eab72ae98', style: { marginTop: '8px' } }, h("udp-fluent-button", { key: 'dcb6c913ce3a460cfabfd30ce221a0f16c08185e', size: "small" }, "Action A"), h("udp-fluent-button", { key: 'cbb8b41e5c020c1339c23b03369d5863f0504628', size: "small", appearance: "outline" }, "Action B"))))), h("div", { key: '6a1ff2d1e1b7df9fc7581bec977e48d39ca70c88' }, h("h3", { key: '22ce55c72c726aa45e60f12da34ae3a56f62c297' }, "Auto-Wrapping Tooltip"), h("udp-tooltip", { key: '135947f4097c79cfc6b548d2cd263533c2640e05', positioning: "above", content: "This works with Shadow DOM!" }, h("udp-fluent-button", { key: '46d2dfd14852bf3f6223f15f85b5601d8e87caeb' }, "Hover me"))), h("div", { key: '6709b19d3c5d890829b91c9acca6ee68c208884a' }, h("h3", { key: '28bd6a5155973ee5a918789563e637e4d69ccc64' }, "Message Bar Example"), h("div", { key: '52cf20b28a27d8068370ee82d49c89299bc39195', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, h("udp-message-bar", { key: '7e9e931d762b851a4ccb2fbeb9d417e64d0720f3', intent: "info" }, "This is an informational message bar."), h("udp-message-bar", { key: '2f9be85b01d731556fa9d756ddb2f260fd17e982', intent: "warning" }, "This is a warning message bar."), h("udp-message-bar", { key: '3ec65b1bb0f04447033c63dbbcd9f1074e6ed066', intent: "error" }, "This is an error message bar with actions.", h("udp-fluent-button", { key: 'ee74859f779e23707a1113a0d38e594846ba9cde', slot: "actions", appearance: "outline", size: "small" }, "Resolve")), this.showMessageBar && (h("udp-message-bar", { key: 'f5af3b8d64e49f51f6a4041091bddbb7d4000f45', intent: "success", shape: "square" }, "This is a success message bar (square).", h("udp-icon", { key: 'dc1d5a7e89796415354c0fb3188be90300571227', iconName: "add", slot: "icon" }), h("udp-fluent-icon-button", { key: '7c2b86365dbc0999822dc5b25c4312287748b449', iconName: "dismiss", shape: "circular", appearance: "subtle", ariaLabel: "Close drawer", onClick: () => (this.showMessageBar = false), slot: "dismiss" }))))), h("div", { key: 'ad70349e1a5cbc2c345871c7f993870d155c5fb2' }, h("h3", { key: '8d761f238da5f183af39d5133b421742863f4842' }, "Progress Bar Examples"), h("h4", { key: 'd6ef6d3eded2d0d7332bd382bb7647c38ee212b9' }, "Indeterminate"), h("udp-progress-bar", { key: '85c12d201fe8b96b4ce5893e0bdfb1fada820f6c', thickness: "large" }), h("h4", { key: '07d84941bd21e6cf5c6c0235fd2ab15c505c5e0c' }, "Determinate (Success)"), h("udp-progress-bar", { key: 'e4b8a2973657ff90e0be96720d8b8cd3cc446793', value: 75, validationState: "success", shape: "square" }), h("h4", { key: '846cff45e7b69fe8eeae43b79c3ededce2005c8c' }, "Interactive"), h("div", { key: 'e73b5c33064a47a278f3238100996e7960c5038e', style: {
|
|
2554
2594
|
display: 'flex',
|
|
2555
2595
|
gap: '1rem',
|
|
2556
2596
|
alignItems: 'center',
|
|
2557
2597
|
marginBottom: '1rem',
|
|
2558
|
-
} }, h("udp-fluent-text-input", { key: '
|
|
2598
|
+
} }, 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)) })), h("udp-progress-bar", { key: 'b2dda92b20fcfeade5aa48926e486bbdfc6156b7', value: this.progressValue, min: 0, max: 100, shape: "square" })), h("div", { key: 'c1b029c3d0d676c8b87e11e25e0b5e1e3bb4c662' }, h("h3", { key: 'ce0ce2425846b779ad62f913726011df4d24aa38' }, "Divider Examples"), h("p", { key: '23bc63207378d6578e9c9409b3bf3755a421b27b' }, "Default Divider:"), h("udp-fluent-divider", { key: '9e4c3ae8be07c5b6c426bb329264770156dc9116' }), h("p", { key: '990820751b2c9dc457dd995742ab6aaef75c20cc' }, "Align Content:"), h("udp-fluent-divider", { key: 'ccac08a2a35b75b56bee460abdb28c10f5686694', "align-content": "start" }, "Start"), h("udp-fluent-divider", { key: 'e58ecd7c9ab898dc891a397aa3050d0268d3c2e0', "align-content": "center" }, "Center"), h("udp-fluent-divider", { key: 'cb5dede99f948589591e9a38636c0368c20fb9f0', "align-content": "end" }, "End"), h("p", { key: 'b31a3bcd204dc33f88930a75c0b4f78d36a6a6b4' }, "Appearance:"), h("udp-fluent-divider", { key: 'b109e20f375e9c7c1582d2a87b44b91fdae86867', appearance: "strong" }, h("udp-icon", { key: '8c674e724aa6b996c171f865a5bbf28c9b6350e1', iconName: "add" })), h("div", { key: '149502fc02f6bd96a335b433745b7b184b689f90', style: { height: '10px' } }), h("udp-fluent-divider", { key: 'd807ac65751e7278c340a15967946cc8df6d8b8e', appearance: "brand" }, "Brand"), h("div", { key: 'd98881c01cfbd4d736b26942ca18a0fee698d65f', style: { height: '10px' } }), h("udp-fluent-divider", { key: 'da12ebc90414cb2db322e36dae167a2a7e1292e1', appearance: "subtle" }, "Subtle"), h("p", { key: '7130f6f91e9f8f1443d1dffec3c4f32cf9b9a67f' }, "Vertical Divider (inside flex container):"), h("div", { key: '5c2b2bb4db35c6396171cdf4c5b9232c9f288d57', style: {
|
|
2559
2599
|
display: 'flex',
|
|
2560
2600
|
height: '50px',
|
|
2561
2601
|
alignItems: 'center',
|
|
2562
2602
|
border: '1px solid #ccc',
|
|
2563
2603
|
padding: '10px',
|
|
2564
|
-
} }, h("span", { key: '333244c443e04fe684c9e3c9301042bcccf4cbaf' }, "Item 1"), h("udp-fluent-divider", { key: '3d5579d1647af12b6d21eceaac68b58a12f1dcad', orientation: "vertical" }), h("span", { key: '256a9111d76dcc7dba202c240c5287a01b62a10d' }, "Item 2"), h("udp-fluent-divider", { key: 'af3455b99d29ac67e1040616ff37675cd3c0b78a', orientation: "vertical", appearance: "brand" }), h("span", { key: '805e66f370a4dd2a19e63b54a3e1623433674306' }, "Item 3"))), h("div", { key: 'e94ac056e8a7308f4c7d5bed1cb7dc97f47c0460' }, h("h3", { key: '38a7857c73ebfcc141a79b07f29f3ee9e28973f2' }, "Fluent Icon Examples"), h("p", { key: 'd08ecc4ed38eb7e35f9e19547dd63a41434df78c' }, "Basic usage (new simplified API):"), h("div", { key: '5001e48a61e5ec5ca8848066ce9b736633e2f0d8', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: '13161f20c4c1aee65bf917cc75af9ff2c26fdcb9', name: "add" }), h("udp-fluent-icon", { key: '9341532c7e670248e874822ac19aeeb1cae58a72', name: "home" }), h("udp-fluent-icon", { key: '5155515f81ca248dc30ad0c533036883e47be5a3', name: "settings" })), h("p", { key: '819e70763a2371b2f9eaa8177868735ac7a8855f' }, "Colored:"), h("div", { key: '537e6ccbc81061d515f5f3150bc63982579d0da9', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: '0ca369a1a17e13cb39433b1a2c77d31dd00e87f9', name: "add", variant: "filled", color: "green" }), h("udp-fluent-icon", { key: '4ecd0d2071ca6f3bad36b4a9569ffeee66fd13c6', name: "delete", color: "red" })), h("p", { key: 'ad2d75ebfae5854ff09cf2af522172b294998953' }, "Sizes (xs=16px, sm=20px, md=24px, lg=28px):"), h("div", { key: 'b7835777ff815d941a77ac5f0983f26ebe7ac652', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: 'ba09140d10a02f62eb813d9da88748b815ffa664', name: "home", size: "xs" }), h("udp-fluent-icon", { key: '351ee06fb8894f14f9d5960634bd4076321f385a', name: "home", size: "sm" }), h("udp-fluent-icon", { key: 'e6e0a670dd30d7e3629a406e137912658d432b33', name: "home", size: "md" }), h("udp-fluent-icon", { key: '5e6cbd7a3e03a06144c64035a1c39d41a82cb7af', name: "home", size: "lg" })), h("p", { key: 'c7ecefd4f36deedbe329e66f0a81d0365c3d639a' }, "Variants (regular vs filled):"), h("div", { key: '801197df75e2f40179e73f83d79086606e66f334', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: 'aa8355a86481bdd99ba74ea2eeeb3408736212d0', name: "star", variant: "regular", size: "lg" }), h("udp-fluent-icon", { key: '7298e568df494b18530b5a5dfc7753b1e4a66e05', name: "star", variant: "filled", size: "lg", color: "gold" }))))), h("udp-tab-panel", { key: '471a56a7d6c01a2690f4d445768856f2b1e30d04', id: "text", activeTabId: this.currentTab }, h("div", { key: '1e633f39b3e1dcc414d7f3d3b525b9160db2cffa', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, h("h3", { key: '5de23485afe65df129274898174363501e42bacf' }, "Text Component - All Variants"), h("div", { key: '4ff6cc7eb098dd90150cebed4ddea92d3013212c' }, h("h4", { key: '6a902e48f73f6fd2ec319814ec743db7b340a782' }, "Display Variant"), h("udp-text", { key: 'acef62c4fda7db942504ecb2e884ddc7d7eb22ff', variant: "display" }, "Display Text (h1)")), h("div", { key: '61eadcedee69c40b819826a4e4a92e03dfd2449f' }, h("h4", { key: 'f590ade708fb42d017046e2118aa799eb51a5691' }, "Large Title Variant"), h("udp-text", { key: 'b532f6d0aaf49db7aa0a3789813d6a296d0a5401', variant: "largeTitle" }, "Large Title Text (h2)")), h("div", { key: 'fd6dccfbffbf3175044542481a99696573c98f55' }, h("h4", { key: '1b1e2a101ef12ad43b2d53c7ea95516e5a830845' }, "Title Variants"), h("udp-text", { key: '3240124338197c4ded60512513ba6bd6fa68686e', variant: "title1" }, "Title 1 Text (h3)"), h("udp-text", { key: '44dce98a19cc404762f78181483f80039e60d9ec', variant: "title2" }, "Title 2 Text (h4)"), h("udp-text", { key: 'abdc383cd4be36ad9eb5c040438c221e199de3ba', variant: "title3" }, "Title 3 Text (h5)")), h("div", { key: '41771c664381345589ea21105b290ba2b3a09404' }, h("h4", { key: 'd28fc88db883a181e7d2a165c68944fe322cc97b' }, "Subtitle Variants"), h("udp-text", { key: 'ba46a5e1064677c2f5300fd75ba8c45adf9bee99', variant: "subtitle1" }, "Subtitle 1 Text (h6, medium weight)"), h("udp-text", { key: '0bc952ab545b33354642e5cd9af2d83fac31cb12', variant: "subtitle2" }, "Subtitle 2 Text (h6, semibold weight)")), h("div", { key: '4c95eba2483b636fa3e11fd11186a69a2f4174a7' }, h("h4", { key: '8aabec17542a60378eebe4f92f0cbde10d5bc4b1' }, "Body Variants"), h("udp-text", { key: '07ac26bb90ffd8c589eeed2c4f3f3b92953e1cba', variant: "body1" }, "Body 1 Text (p) - This is the default variant. Lorem ipsum dolor sit amet, consectetur adipiscing elit."), h("udp-text", { key: '413f05881746ce9f46cd6556e0d796e0e9452576', variant: "body1Strong" }, "Body 1 Strong - Semibold weight for emphasis."), h("udp-text", { key: '45e302e95c492ec4db14f2c4bc57a67be8331731', variant: "body1Stronger" }, "Body 1 Stronger - Bold weight for strong emphasis."), h("udp-text", { key: '60891ea2f4bdd3140d976678a793f7f64a137863', variant: "body2" }, "Body 2 Text - Slightly larger than body1.")), h("div", { key: 'c2254624baf7ff5f52f035e1f077cfe23fc1d5c5' }, h("h4", { key: 'af7e6cc35c37420e821ec8cb900884d9429fa44e' }, "Caption Variants"), h("udp-text", { key: '29097b5ad8aeacf7fca44a9d701ce644f9bcb5ba', variant: "caption1" }, "Caption 1 Text (span, inline)"), h("br", { key: '58e4525489bd8a6daf94b1cc935347cedb612111' }), h("udp-text", { key: '81daeb313d62c34225e4ce29d1701800cfd3c05a', variant: "caption1Strong" }, "Caption 1 Strong (semibold)"), h("br", { key: 'd9b683d01870f2f11ddde6ec6aff6be7436a64f7' }), h("udp-text", { key: 'c0867df8e47aa0d43a84c924cafddd2051f58d3d', variant: "caption1Stronger" }, "Caption 1 Stronger (bold)"), h("br", { key: '99a9dbbd754d53f93a3f615876fc6c24cd3b4dfd' }), h("udp-text", { key: '8dddbbe824472dec44bfa4d9009c5725bbad342a', variant: "caption2" }, "Caption 2 Text (span, inline, smaller)"), h("br", { key: 'ea90994227bfdc4fad84e6ac12333700808a357c' }), h("udp-text", { key: '47084c2285fffe3f5a9de53f2db5c7b54459d2ec', variant: "caption2Strong" }, "Caption 2 Strong (semibold)")), h("div", { key: '59bdddec5575a63ccdbbbdaf8f70b9252755c98c' }, h("h4", { key: '9e0734307e09a4085c647337b4d5c173c3817b40' }, "Text Alignment"), h("udp-text", { key: '29aea473bff9cfee154a36744ecf0a375c0d19e2', variant: "body1", align: "start" }, "Aligned to start"), h("udp-text", { key: '2d87e540a75ef43e752aa1066ec94fb523c50188', variant: "body1", align: "center" }, "Centered text"), h("udp-text", { key: '54e3d78cf5e5fefad49775c083debd94e75ed89c', variant: "body1", align: "end" }, "Aligned to end")), h("div", { key: 'aa2394c29efc6d5ec11d6db2e829e68cc4cd4851' }, h("h4", { key: '9d2028fc32c998fffc3b1ff9011869dc77f5ead5' }, "Text Styling"), h("udp-text", { key: '235c1501afd71ed2dca479d19dd0fa0e55b9ef26', variant: "body1", italic: true }, "Italic text"), h("udp-text", { key: '28a3cdff1c88252a3fd6b44587967d1c11596fa6', variant: "body1", underline: true }, "Underlined text"), h("udp-text", { key: 'd9eea48e8c60c7d7744231da7ecaeac283223dc5', variant: "body1", strikethrough: true }, "Strikethrough text"), h("udp-text", { key: 'f3514a2f671c3edace30a6d712052237a19a0a32', variant: "body1", weight: "bold" }, "Bold text")), h("div", { key: '281306d725bf18e5aa11f14662feb75aad9721e0' }, h("h4", { key: '23f3c8e2eac16d5a9bb43fb1792963946e2be22b' }, "Custom Semantic Tags"), h("udp-text", { key: 'e5ef7c2a3c1355556e2a51abf1f094f26bc2e462', as: "h1" }, "text as h1 element"), h("udp-text", { key: 'c4f2df5862bdbbcd91cfb6a8a623c28525bd0957', variant: "caption1", as: "p" }, "Caption text as paragraph")), h("div", { key: '0a1ebbd5a0961885b543f12d487a5ca52cac57e0' }, h("h4", { key: 'b289f4567b7f99a913f4c1949de4aee1f88dbba1' }, "Font Variants"), h("udp-text", { key: '135e5d9d20806c7d280b0eba2108776b04aed0b2', variant: "body1", font: "base" }, "Base font (default)"), h("udp-text", { key: '48906e8aa6d9ea2f10efc722a3b12b1cc5951505', variant: "body1", font: "numeric" }, "Numeric font: 1234567890"), h("udp-text", { key: '8a79dbe8fcc8c80002c99d3e201bcb8a7279116e', variant: "body1", font: "monospace" }, "Monospace font: const x = 42;")), h("div", { key: 'd25677b707f4c0a49012f00d6111786167f8f5be' }, h("h4", { key: 'f2ecbc915ba2445b9816657572558032ef85b5c6' }, "Size Override"), h("udp-text", { key: '2a508d8ddf7b2c968e4e405999b23cd129cee2cc', variant: "body1", size: "200" }, "Body variant with size 200"), h("udp-text", { key: 'eb37e0dec4fd6d66da85f06a87a271729750fdd7', variant: "body1", size: "600" }, "Body variant with size 600"), h("udp-text", { key: '2462846ea539b4f1ec06e41e6c7e896967ca8d4e', variant: "body1", size: "1000" }, "Body variant with size 1000")), h("div", { key: '55a5b70a842b2ac38b74b3982a7d6eeae2fa29f7' }, h("h4", { key: '97f984363429aea12b614e740a6225a97cb438c7' }, "Lists"), h("udp-text", { key: 'a229c279bab6b11d969ad97276fa6ce1c4591832', variant: "body1", as: "ul" }, h("li", { key: 'bc878ae9b273a672ab561a858cf47013fd4c6c4f' }, "First list item"), h("li", { key: '24db49505571ef816c51305fdca0c3c5d8ade7bb' }, "Second list item"), h("li", { key: 'cb9021a8bb3c036e8fe264375271a8587c164bd3' }, "Third list item")), h("udp-text", { key: '01836f6efcae5a35a2ead4b59fb399c487268217', variant: "body1", as: "ol" }, h("li", { key: 'fc184bdf81d7cd33aee1617a4b300a254601e39b' }, "First ordered item"), h("li", { key: '7a03ba1729a89c51274ea683617bfa8347929d94' }, "Second ordered item"), h("li", { key: 'd55e0124eeeaa0dd5d2d725d004ff35436627efb' }, "Third ordered item"))))), h("udp-tab-panel", { key: '00aa0d4e2c042bbf12fa4eb9a745c4794954c1e6', id: "menus", activeTabId: this.currentTab }, h("div", { key: '811cc275049f45ab679f64998720e89e8264896d', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, h("div", { key: 'd6f5ca6e7afe5f1985fbdd231448c3ae663d0013' }, h("udp-fluent-menu", { key: 'a9d41b1041d1f2a48f06da5b92cc9c34825dfc12', items: this.nestedMenuItems, label: "Nested Menu" })), h("div", { key: '097ca2e38c7da71d98f048c019c55491ab695a8f' }, h("udp-fluent-menu", { key: '29598112299fc3de48842c32ff411d9ebd4e934b', items: this.sectionedMenuItems, label: "Sectioned Menu", endIconName: "add" })), h("div", { key: '0afa3ae23f102753411af589148e3abdc17d46f5' }, h("udp-fluent-menu", { key: '88563137aba8c16cc406090fc3c8bb417064c0f2', items: this.iconMenuItems, label: "Icons & Slots", startIconName: "grid_20_regular" }, h("div", { key: '9f86d8231f2ceac2b29292d8082d6a3deaa3b9ed', slot: "slot-test-start", style: { color: 'magenta', fontSize: '20px' } }, "\u2605"), h("span", { key: 'ffde4c595153b108773f080e8742b041c42d26a4', slot: "slot-test-end", style: {
|
|
2604
|
+
} }, h("span", { key: '949c3f42383aeb454af50263566939746ae02bfe' }, "Item 1"), h("udp-fluent-divider", { key: '32501ff8f93a48e9bcb3da217283698e421e162e', orientation: "vertical" }), h("span", { key: 'e59aea9c027fec6cb4fec15f5a65162f5e0555a3' }, "Item 2"), h("udp-fluent-divider", { key: 'b7f357dc17bf5debb609a3c5cd5532cef0859d26', orientation: "vertical", appearance: "brand" }), h("span", { key: 'd0a6b9254ae004e7f137dc569b653f12039d2d51' }, "Item 3"))), h("div", { key: 'afb0078edd8f1fa66461dbe778614ef6b409ed8d' }, h("h3", { key: '8065dbf16dd3114762ddbefbc443937bfd7602d9' }, "Fluent Icon Examples"), h("p", { key: '51044c3113f5291337d2010de72d64841028fe83' }, "Basic usage (new simplified API):"), h("div", { key: '8bc7c0797842640871e7d031f5a5372f1ed152a6', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: '9ee788cbb5cd10e59965f8b963c1f5ea0204d041', name: "add" }), h("udp-fluent-icon", { key: '8901e7b5a636b00df07065e78b17b5e7f70c923f', name: "home" }), h("udp-fluent-icon", { key: '6f3b282efe40abe6ea726d432a649c8296e0bda9', name: "settings" })), h("p", { key: '52ef93c801604ef54a0f3a1c4df63da18394e133' }, "Colored:"), h("div", { key: 'b1c65ab33791399c5315a477db9ef727e65038df', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: 'f5f6b380d9ee2d12ddfed4ecd3877c8abb024fbc', name: "add", variant: "filled", color: "green" }), h("udp-fluent-icon", { key: 'c3208182c81fc385e901caf2661480a17e18227b', name: "delete", color: "red" })), h("p", { key: '1f6c84b57822e26d98e217d895cb7400beea9b7f' }, "Sizes (xs=16px, sm=20px, md=24px, lg=28px):"), h("div", { key: '46ef5ec269427ff516300029a19dd340584dfd71', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: 'd4dd1aa55b8e5be00a30294e74114c297b68b14c', name: "home", size: "xs" }), h("udp-fluent-icon", { key: 'ef7a5fed6b38072b4ed7af72c54a3fd9c630f6d4', name: "home", size: "sm" }), h("udp-fluent-icon", { key: '703428e322d4690b431f7702b262ecb9a39d668c', name: "home", size: "md" }), h("udp-fluent-icon", { key: '3b0260ec7ff93e5f6fb759c3b8bf5dd2ead5f536', name: "home", size: "lg" })), h("p", { key: 'c6305854d59e3379ee3d1941b9426eaba1eea838' }, "Variants (regular vs filled):"), h("div", { key: 'a3e344ba6f6c0e2d131e8714f2fb68c5349f84b0', style: { display: 'flex', gap: '1rem', alignItems: 'center' } }, h("udp-fluent-icon", { key: '634d1679ff10b3fc68885ccb6e82ecbae533d9f3', name: "star", variant: "regular", size: "lg" }), h("udp-fluent-icon", { key: '1808ffc37a71b6ec3e21d8061aa22b8f767606c3', name: "star", variant: "filled", size: "lg", color: "gold" }))))), h("udp-tab-panel", { key: '9061491c7408ef518c93e4510c0342f4196b00a5', id: "text", activeTabId: this.currentTab }, h("div", { key: '42158fd01324be5ac6580d127e3cf517db55800b', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, h("h3", { key: '19955508b8ce1e974f2718b3f368ff2249563e76' }, "Text Component - All Variants"), h("div", { key: 'cd20ac11a81b0a18840a65fb25776ca7ba9ba8f0' }, h("h4", { key: 'fc43111ddef3bf567c20b4f60843144abdbc73cd' }, "Display Variant"), h("udp-text", { key: '815fc4167ae4cb1855db99460af931c54428c422', variant: "display" }, "Display Text (h1)")), h("div", { key: 'b4b2b4052cc782e20d0c7ed4bfc53661c7e8067b' }, h("h4", { key: '208f0f42c37d1da8798bb1abeec4d9312ed9e7e1' }, "Large Title Variant"), h("udp-text", { key: 'f90529216b82c76cc2fd883cc3788c01f12a1fcd', variant: "largeTitle" }, "Large Title Text (h2)")), h("div", { key: '5953ab7ce98fc9ede62e35266b58a7fefc055531' }, h("h4", { key: '6f89ce02716c6f55724907fb150a2fed11d0da1b' }, "Title Variants"), h("udp-text", { key: '6becaa1002625599a274c54fef2a8d7392836aaf', variant: "title1" }, "Title 1 Text (h3)"), h("udp-text", { key: '26107029e3ff5f2f3324080cfcbc4f927f7cab17', variant: "title2" }, "Title 2 Text (h4)"), h("udp-text", { key: '8efa0ccb5fe059e835f1249dcad355921a5d7d64', variant: "title3" }, "Title 3 Text (h5)")), h("div", { key: '82102e3003627b38457b6080657f0d1df1bf6d40' }, h("h4", { key: 'ff3e79501db293156d8cf8df92d27c2acd4d657b' }, "Subtitle Variants"), h("udp-text", { key: '174c06c8299b92577a434ffb93f0944cdcbcc8a7', variant: "subtitle1" }, "Subtitle 1 Text (h6, medium weight)"), h("udp-text", { key: '7de1a0ca543e14f9eef0856750c5cb3b6b09bd24', variant: "subtitle2" }, "Subtitle 2 Text (h6, semibold weight)")), h("div", { key: '39fe2b088383f16fa2af20ea26fd2f67af619176' }, h("h4", { key: '472e5693b40fec8fae2dd5b75ab59ac2f8fe7e95' }, "Body Variants"), h("udp-text", { key: '2aee779b847fea987a9cd08035c240ceed7d85be', variant: "body1" }, "Body 1 Text (p) - This is the default variant. Lorem ipsum dolor sit amet, consectetur adipiscing elit."), h("udp-text", { key: 'a2729ead635e58a09332ed8e11e7c6aa057b6d8c', variant: "body1Strong" }, "Body 1 Strong - Semibold weight for emphasis."), h("udp-text", { key: 'cbadb54e7c02a661dffa6eec403bc30978bf73e8', variant: "body1Stronger" }, "Body 1 Stronger - Bold weight for strong emphasis."), h("udp-text", { key: 'df56890ce3b82fbaf497ad094cf86a3a8b7771e0', variant: "body2" }, "Body 2 Text - Slightly larger than body1.")), h("div", { key: '4d3e11a28bc6981e5d1438d4aff3f6ef570af346' }, h("h4", { key: 'e55f6012ac4b09ddf2a961768e6c3326c719f409' }, "Caption Variants"), h("udp-text", { key: '101f698517f16e40f1bc5a9426d3d595ed6e0a9d', variant: "caption1" }, "Caption 1 Text (span, inline)"), h("br", { key: 'c82297bb0390e94c31e560a7b6435504ff25abe9' }), h("udp-text", { key: '892f817148acb710d89167bb7e86a447993f6ee6', variant: "caption1Strong" }, "Caption 1 Strong (semibold)"), h("br", { key: '49cc7284229bbe1bc365188e358e3835fbd38cee' }), h("udp-text", { key: '76414d1d212289c51723a55d97a5d3da6668112e', variant: "caption1Stronger" }, "Caption 1 Stronger (bold)"), h("br", { key: 'f2d4edd51aceba3c1b5797c0df6c44c73130614c' }), h("udp-text", { key: '9b87b6b4b833a6b70fca0d0391b1366a879b0b6f', variant: "caption2" }, "Caption 2 Text (span, inline, smaller)"), h("br", { key: '75910dcc73dae664d7f82ee2ffc92c8c86adf812' }), h("udp-text", { key: '4ac1b89267ba36e4b85b0479a68b979523e51e1a', variant: "caption2Strong" }, "Caption 2 Strong (semibold)")), h("div", { key: '33d91d6bc2df8df1cdafa8708cb69eae03f5d680' }, h("h4", { key: '00cfc23ea8e5032482e0d659d47f876e28f5f014' }, "Text Alignment"), h("udp-text", { key: '52850e1292d7986ca7161904bc09135d453d9c20', variant: "body1", align: "start" }, "Aligned to start"), h("udp-text", { key: 'c41f33e30c168e4cb5f802753605c94b410481d2', variant: "body1", align: "center" }, "Centered text"), h("udp-text", { key: 'b7c0fabbf8587e0ab2f73d827bc3f829b2147576', variant: "body1", align: "end" }, "Aligned to end")), h("div", { key: '703ee79f1eaae0231ac61c266c615f5ea5fec6d5' }, h("h4", { key: '1054bde800cf17649dbecb1c81a879e0b697e335' }, "Text Styling"), h("udp-text", { key: '7821df898438bf0702d039787ad00b0be9eca6aa', variant: "body1", italic: true }, "Italic text"), h("udp-text", { key: '3bc080c0ee2267c0c1339136e0020cbd91571b17', variant: "body1", underline: true }, "Underlined text"), h("udp-text", { key: '4caebcfd35cc80f55158258daf79aa407633fc4a', variant: "body1", strikethrough: true }, "Strikethrough text"), h("udp-text", { key: '9e7073072d1d5680d7d388215d0ee1102cad78f6', variant: "body1", weight: "bold" }, "Bold text")), h("div", { key: '77d272c771c34dba5f6f99fb7ee720d74c58c743' }, h("h4", { key: '17ece7137fe4f964d94e3c483fb84ca4d7f32ded' }, "Custom Semantic Tags"), h("udp-text", { key: '39755ecf77e42c99174074ae7b4eab2fe751177b', as: "h1" }, "text as h1 element"), h("udp-text", { key: '673b2f4bff5af8c2c0c56845805bf68dbda8b956', variant: "caption1", as: "p" }, "Caption text as paragraph")), h("div", { key: 'e8323a13cf76eda241134f81f886459d3ad01d6e' }, h("h4", { key: 'd9ab19fbfe1098b9fca8a08ddfa26753548eaa2b' }, "Font Variants"), h("udp-text", { key: 'e8664100b4ae37e4e9e69af3778c0bf45d0fbafc', variant: "body1", font: "base" }, "Base font (default)"), h("udp-text", { key: '38e11a31a0d8bbf35264aa4861fc4afac36f2e8e', variant: "body1", font: "numeric" }, "Numeric font: 1234567890"), h("udp-text", { key: '52a7644e31499d395237032bf032f9ab6481977e', variant: "body1", font: "monospace" }, "Monospace font: const x = 42;")), h("div", { key: 'cdc154b83212b95e06c8ea2de0ba37154e1dabe7' }, h("h4", { key: 'd44a775577d89517f846c64f0feb89f3c2257e75' }, "Size Override"), h("udp-text", { key: '575308b06fdf994e4b7449fa3f5971d821a58d20', variant: "body1", size: "200" }, "Body variant with size 200"), h("udp-text", { key: 'e596a8db486ef37988b2f2f51a6838faba14dc5d', variant: "body1", size: "600" }, "Body variant with size 600"), h("udp-text", { key: '65e1308031cdebe08a72f7793e87fc9906de4690', variant: "body1", size: "1000" }, "Body variant with size 1000")), h("div", { key: 'b83b0c0d342a0840bd810dd64cac688aa7b88160' }, h("h4", { key: '0be4f9b3587be6d6fcc2245a0f15bb6db5d3da4d' }, "Lists"), h("udp-text", { key: 'b14c6454f28ce670231b6e1844ed3be18d9f453b', variant: "body1", as: "ul" }, h("li", { key: '43d751fe5a10ec5f47fa4c5dc353b16c5255d86c' }, "First list item"), h("li", { key: 'f54de0ea90e30bda8134965448c15fed9d7c2d4c' }, "Second list item"), h("li", { key: '06cc15e35287b6974cb963c3e59e1ede8e52f30d' }, "Third list item")), h("udp-text", { key: 'f2178019b003d4567ae6b093f323ad8c190f57f3', variant: "body1", as: "ol" }, h("li", { key: '7c0b27016a2e2e8c100a4c2c6e2adf9e7b5994dc' }, "First ordered item"), h("li", { key: '4157bc9ebebde329fe1a819f79646dda4646c189' }, "Second ordered item"), h("li", { key: 'b5bd89272c56938cb2402ff4bdafd57939a399bb' }, "Third ordered item"))))), h("udp-tab-panel", { key: 'e09ec247aee6bbc0c14af4b2b88a3748f282635e', id: "menus", activeTabId: this.currentTab }, h("div", { key: '528334b1baaf0100c2e802bd3f68a454a81af316', style: { display: 'flex', flexDirection: 'column', gap: '2rem' } }, h("div", { key: '38b76ef11eba3a3df0e85f9079b5506f75b0acf4' }, h("udp-fluent-menu", { key: '1768f62fa29af9d8ca8ff6a4ea3231ecd6068b2d', items: this.nestedMenuItems, label: "Nested Menu" })), h("div", { key: 'd4f4c26e153846cc898a85c9bfe67eb749a8c1e8' }, h("udp-fluent-menu", { key: 'ec8fe2cfe87e2e07873915c8a9dacf75597fb72d', items: this.sectionedMenuItems, label: "Sectioned Menu", endIconName: "add" })), h("div", { key: 'bee5317fe4aa275a5dc99d2657d68da2aef53034' }, h("udp-fluent-menu", { key: '8785cdb3add784ad2914ea3cbe33bee14de9c7ac', items: this.iconMenuItems, label: "Icons & Slots", startIconName: "grid_20_regular" }, h("div", { key: 'db4b00a2e2ca38188b624bbc1057c3c1c8e26a48', slot: "slot-test-start", style: { color: 'magenta', fontSize: '20px' } }, "\u2605"), h("span", { key: 'd8da4b6bdd4c55ff0d5868e1dac87d588046dc96', slot: "slot-test-end", style: {
|
|
2565
2605
|
backgroundColor: 'red',
|
|
2566
2606
|
color: 'white',
|
|
2567
2607
|
borderRadius: '4px',
|
|
2568
2608
|
padding: '2px 6px',
|
|
2569
2609
|
fontSize: '10px',
|
|
2570
|
-
} }, "NEW"), h("span", { key: '
|
|
2610
|
+
} }, "NEW"), h("span", { key: 'fe2933edadf9522cbeb3f82b8d9a44557bfdf50f', slot: "end-slot-item-end", style: { color: 'magenta', fontSize: '12px' } }, "Custom"))), h("div", { key: 'eeb74aef44dccdf1f150a27aa700d80a9d5df277', style: {
|
|
2571
2611
|
display: 'flex',
|
|
2572
2612
|
justifyContent: 'flex-end',
|
|
2573
2613
|
border: '1px dashed #ccc',
|
|
2574
2614
|
padding: '1rem',
|
|
2575
|
-
} }, h("span", { key: '
|
|
2615
|
+
} }, h("span", { key: 'a5bd09fbb99708406bb2e8e5089abc1c3f775b7b', style: { marginRight: 'auto' } }, "Menu Overflow Test (far right):"), h("udp-tooltip", { key: 'ad2726ab98706cf206102bbd2015da142906f64d', positioning: "before", content: "More Options" }, 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 }))), h("div", { key: 'ad74c9b25c3cbb2205120c0140c520008c8467cc' }, h("h3", { key: 'ba375eaddee10a6e45af3800be15f72349808d36' }, "New Radio Group Example"), h("udp-fluent-menu", { key: '00bc97736e57296a4324b616dc46febbb0269a68', items: this.newRadioGroupItems, label: "Select Option", onCheckedChange: e => console.log('New Radio Group Change:', e.detail) })), h("div", { key: '7e5a52bb673728dbfca40aec7dc932605269d0d4', style: { padding: '1rem', border: '1px dashed #ccc' } }, h("h3", { key: '8f44971154efa9b004f15a34d854205d98babfdf' }, "Menu at Bottom (Testing onClick handlers)"), 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" }, h("udp-icon", { key: '8b1486b295de9e7685f42d4eace70ec408294201', slot: "start", iconName: "add" }))))), h("udp-tab-panel", { key: 'b961a0a978e6d7d40b1837e91087b6061dc42af0', id: "grids", activeTabId: this.currentTab }, h("udp-lazy-loader", { key: '207ddc9a9f3be697c933bf9cc6c6eaa37c21ab5c', if: this.currentTab === 'grids', content: () => (h("client-side-grid", { columnDefs: [
|
|
2576
2616
|
{ field: 'make' },
|
|
2577
2617
|
{ field: 'model' },
|
|
2578
2618
|
{ field: 'price' },
|
|
@@ -2583,7 +2623,7 @@ const TestComponentsPage = class {
|
|
|
2583
2623
|
{ make: 'Toyota', model: 'Celica', price: 35000 },
|
|
2584
2624
|
{ make: 'Ford', model: 'Mondeo', price: 32000 },
|
|
2585
2625
|
{ make: 'Porsche', model: 'Boxster', price: 72000 },
|
|
2586
|
-
] })) })), h("udp-tab-panel", { key: '
|
|
2626
|
+
] })) })), h("udp-tab-panel", { key: '611f7081c5f5a5e944bd3d61b2b0f7783090c7f9', id: "dialogs", activeTabId: this.currentTab }, h("div", { key: '98e221d954d163cbb8f9e1daee827936088f1192' }, h("udp-fluent-button", { key: '8ea4674f753f07f7003bb54ede8beb21fba87221', onClick: () => (this.dialogOpen = true) }, "Open Dialog"), h("udp-fluent-dialog", { key: 'fd736dbb071b2dbbacf85a7710ffacdebc662afc', open: this.dialogOpen, dialogTitle: "Example Dialog", onDialogClose: () => (this.dialogOpen = false) }, h("div", { key: '81228808f36ed196e99c3dc42cb4fb2dc630ec41' }, "This is a simple dialog example."), h("udp-fluent-button", { key: '9d97aa4e3e028b03642953654d844dd9d6c74c46', slot: "action", onClick: () => (this.dialogOpen = false) }, "Custom Close"), h("udp-fluent-button", { key: 'adfd1d446af0eb2598c1df104a2da110f920e40d', appearance: "primary", slot: "action" }, "Confirm")))), h("udp-tab-panel", { key: 'b9fb3c07db15a11f001351c324949ede16f207b2', id: "cards", activeTabId: this.currentTab }, h("div", { key: '6d1818cad04a021d24a118847515f7aa319726f2', style: { display: 'flex', flexDirection: 'column', gap: '2rem', padding: '1rem' } }, h("h3", { key: '9d156fb3b4b73423b94673335938d84e0cb7c211' }, "Cards"), h("h4", { key: 'a2ffc49ed0848d086ca9e2e2b38bdb5ce176300f' }, "Basic & Outlined (Default)"), h("div", { key: '2ef335dd7d90637cb6c8fc05b7301f42cfde1a70', style: { display: 'flex', gap: '1rem', flexWrap: 'wrap' } }, h("udp-fluent-card", { key: '70829bee58c2ec8285a44a444d53fbce8751b376', appearance: "filled" }, h("div", { key: 'dfcb7b7f222eaf8e77f245b51c94255130dd9012', slot: "header" }, h("h3", { key: 'f6b00b7fa2ec7a5891c9a7861181fae72a8c0173', style: { margin: '0' } }, "Basic Card"), h("span", { key: 'c8d30963ccf89f556d606123649c356e7c61425a', style: { fontSize: '12px', color: 'var(--colorNeutralForeground2)' } }, "This is a basic outlined card")), h("span", { key: 'd05b6fe416a7c7357becd7e25c881c25c922afbd' }, "Card content goes here. The card handles its own slots for header, preview, and footer."))), h("h4", { key: '6d2e56c8b2d5767810f31f3a9d89e6060cabd8bc' }, "Elevated & Media"), h("div", { key: '5ba088c7b7269a07d8b3eab80de07d25efdd35a5', style: { display: 'flex', gap: '1rem', flexWrap: 'wrap' } }, 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." }, h("img", { key: '9801355d1a8068a994c3452a7f9a26f91ee9d488', slot: "preview", src: "https://images.unsplash.com/photo-1557683316-973673baf926?w=600&h=400&fit=crop", alt: "Abstract gradient preview" }), h("span", { key: '335ce1eab18d86a827cecdef09299272b73c1b9d' }, "Card content"), h("div", { key: '51d47a4d29bd753e77f190a338edd12c78ae4548', slot: "footer", style: { display: 'flex', gap: '8px' } }, h("udp-fluent-button", { key: '1641ee437373db6d6d538097c7db6f89837db400', size: "small" }, "Action 1"), h("udp-fluent-button", { key: 'bb33a0b8c4a57490ef6398bf2cda70af2a67f789', size: "small", appearance: "outline" }, "Action 2"))), h("udp-fluent-card", { key: 'ba1f891b2aa1abf587f77c8f76d037f7cb0ee5f0', appearance: "subtle", label: "Prop provided title", subtitle: "Prop provided subtitle" }, h("span", { key: 'ad929628071f1322c5618228cc91f04960e70860' }, "This card uses the subtle appearance. Good for lists or less emphasized content."), h("div", { key: '12eff546d98f7a685bf418bf1c8d261e268d12ad', slot: "footer" }, h("udp-fluent-button", { key: '38d4bdec852840c087c23791896a098997c2ed04', appearance: "primary" }, "Dismiss"))), h("udp-fluent-card", { key: '38034b70915f98fe91c225b6a064669e04c8f655', appearance: "outline", label: "Card with Action", subtitle: "Header action example", width: "320px" }, 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') }), h("span", { key: '8b9c1fbf27a737f16f1090e8acbca4d04e7b060b' }, "This card demonstrates the header-action slot with an icon button.")), h("udp-fluent-card", { key: 'c9f7c868be35f782de8dcf063990a59f17dd7b00', appearance: "muted" }, h("h4", { key: '1a85d7b49b40edae1a63ead9bd953f064a174111', slot: "header", style: { margin: '0' } }, "Muted Card"), h("span", { key: 'fa980e6c65a542b828db0aee4c6186534c167bb9' }, "Flat with subtle grey shading."))), h("h4", { key: 'f4df5b5d26cc98354243b5478cc95dfba2e2c2ca' }, "Horizontal & Sized"), h("div", { key: '4f949b219111544edf3d675cb2711d11147b6c58', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, h("udp-fluent-card", { key: '0c0e1a5ff93e8cd224c471eeb47e7ef317e9bc47', orientation: "horizontal", width: "400px" }, h("div", { key: '6ce20fb5151344423e3da874db695454b1390bd0', slot: "preview", style: {
|
|
2587
2627
|
width: '80px',
|
|
2588
2628
|
height: '100%',
|
|
2589
2629
|
backgroundColor: 'var(--colorNeutralBackground3)',
|
|
@@ -2591,7 +2631,7 @@ const TestComponentsPage = class {
|
|
|
2591
2631
|
alignItems: 'center',
|
|
2592
2632
|
justifyContent: 'center',
|
|
2593
2633
|
fontSize: '24px',
|
|
2594
|
-
} }, "\uD83D\uDCF7"), h("div", { key: '
|
|
2634
|
+
} }, "\uD83D\uDCF7"), h("div", { key: '51b50fb75f90fadd2837918012372dbfd6ab14d1', style: { display: 'flex', flexDirection: 'column', width: '100%' } }, h("div", { key: 'fdf7b30429d6a89ccc4c1bd0ac56bac95185e718', slot: "header" }, h("h4", { key: '6e157a9fcd5a0ec43a3094b6aa0db68e6f753929', style: { margin: '0' } }, "Horizontal Card")), h("span", { key: '14d33efeeacb3578cf14c28b18c07c694ee6cd42' }, "Fixed 400px width."))), h("udp-fluent-card", { key: 'd7950aa84eaa206c74ffa019c0a3e3e07a37cf5e', width: "300px", appearance: "filled" }, h("div", { key: '69a0f6c5261327d8416f3ea2272e5b7fa57d6c62', slot: "header", style: { display: 'flex', justifyContent: 'space-between' } }, h("span", { key: 'b4d4436867f934db8f56afe3ec858017d8303f72', style: { fontWeight: '600' } }, "Fixed Width User"), h("udp-fluent-icon", { key: 'c9037b4b1eae9c93e6b402c03a6c0d3cc32eab01', name: "person_20_regular" })), h("span", { key: 'f9e486ae96bd6e1bfc09e418125128d33966d8a0' }, "Fixed width (300px), auto height. Reduced padding is no longer controlled by a prop."))), h("h4", { key: '97414297ba0b8d6b5be4e784c36a2ccc92b86d67' }, "Complex Interaction"), h("div", { key: 'e3809ba88425145900456a1c2067cebb3ee0145d', style: { display: 'flex', gap: '1rem', flexWrap: 'wrap' } }, h("udp-fluent-card", { key: '6078b9865ca44f56e4f8d00b71f566e20cdef4d9', interactive: true, appearance: "outline", onClick: () => console.log('Card clicked'), style: { width: '280px' }, label: "John Doe", subtitle: "Software Engineer" }, h("div", { key: '2d6742805d89224d04c9c628056fee2e802dd464', style: {
|
|
2595
2635
|
width: '32px',
|
|
2596
2636
|
height: '32px',
|
|
2597
2637
|
borderRadius: '50%',
|
|
@@ -2600,39 +2640,39 @@ const TestComponentsPage = class {
|
|
|
2600
2640
|
display: 'flex',
|
|
2601
2641
|
alignItems: 'center',
|
|
2602
2642
|
justifyContent: 'center',
|
|
2603
|
-
}, slot: "header-start" }, "JD"), h("udp-fluent-icon-button", { key: '
|
|
2643
|
+
}, slot: "header-start" }, "JD"), h("udp-fluent-icon-button", { key: '4db66fa4e7495b02e9eb344746dca88cf08c4006', iconName: "more", slot: "header-action", shape: "circular" }), h("udp-fluent-icon-button", { key: '00ccae5c21a5e63a9a8be2d3942b5cc83c7c132a', iconName: "dismiss", slot: "header-action", shape: "circular" }), h("div", { key: '1f41bbf20173c61b387cf9c841c5afb0c2aab509' }, "(div) Responsible for maintaining the core design system and ensuring accessibility compliance across all products."), h("udp-typography", { key: '43cd1d08d5ff0d181a72360813e15ec0ab3c96f1', variant: "body1" }, "(body1) Responsible for maintaining the core design system and ensuring accessibility compliance across all products."), h("udp-typography", { key: '0693a1dd4cc8e9f801453c5567c3765fe49b1034', variant: "body2" }, "(body2) Responsible for maintaining the core design system and ensuring accessibility compliance across all products."), h("udp-fluent-button", { key: '78e4b10feb952643aa1d9e9b5cfc8870e93f0c92', slot: "footer", appearance: "primary", size: "small", onClick: () => console.log('Profile clicked') }, "View Profile"), h("udp-fluent-button", { key: '1b55a80c412ace704016945d7e7754a2c30ce02c', slot: "footer", appearance: "outline", size: "small", onClick: () => console.log('Help clicked') }, "Help Center"))), h("h4", { key: '92695342613fa80150a47949a9decc5a9de768ff' }, "Flex Layout (Grid System)"), h("div", { key: '74b2cf35e7d4273c01a51b9a0434be304c499b33', style: { display: 'flex', flexDirection: 'column', gap: '1rem' } }, h("div", { key: '7ccce1e2ec6cffdb14f5da5403bd02a833799695', style: { display: 'flex', gap: '1rem' } }, h("div", { key: 'c54f057f09461122bf8df32ec41c30fa0ce3710e', style: { flex: '1' } }, h("udp-fluent-card", { key: '77a8cff7730a3406e6a9310fad104e0c44c45d02', width: "100%" }, h("div", { key: 'a624d19751e9080670e2a58c1550388f0b232c83', slot: "header" }, h("h3", { key: '3de162c68af8128fd9bf9eedf5d1f31652c29624' }, "Card 1 (50%)")), h("span", { key: 'eeb79fb1288fb75ae095a92cc3c4baee9753a4a3' }, "Flex item 1"))), h("div", { key: '1ea1bf23f48b77b49a454878e056bc0c2e6cee4a', style: { flex: '1' } }, h("udp-fluent-card", { key: '78def1ef68ea9d2cb28d6cbb03b068586ed9bde8', width: "100%" }, h("div", { key: '37c24dbe2b807fb8d8c342480e59fac7380b9ac8', slot: "header" }, h("h3", { key: '4451a1fb49bdf86da969dc7e36ec36fd9d052d4e' }, "Card 2 (50%)")), h("span", { key: '6f7555032ebb12c868940dbbf72d0eb9ef1580de' }, "Flex item 2")))), h("div", { key: 'af0b1bfa1411a7ac4125ece9864fed2156044274', style: { display: 'flex', gap: '1rem' } }, h("div", { key: '1084f82b5f6c3a1da18ebc04523400adc5ed9a3c', style: { flex: '1' } }, h("udp-fluent-card", { key: '30bdd8486e8e8f1fd644a8d2fa8506d86d2301e6', width: "100%" }, h("div", { key: '4ca3b4efa5c5dea6a9853aa9445dd0f10e02d27e', slot: "header" }, h("h3", { key: '5b98a820eaafbc574616dc8f914a945dc617eb32' }, "Card 3 (33%)")), h("span", { key: 'bbd4769778ecad1f73ec23dfcbba236d9a615980' }, "Flex item 3"))), h("div", { key: 'c14f814fd247ef8aa57c0326d2fb03a7a57c98d1', style: { flex: '1' } }, h("udp-fluent-card", { key: '146de00db7e14b8f193eb17c5c98737bba778d32', width: "100%" }, h("div", { key: '117354ab3b00e49d78b271675786564d4635b7af', slot: "header" }, h("h3", { key: '5b4898b6ff436bc0bce2fe5c3ec28c84623596c7' }, "Card 4 (33%)")), h("span", { key: '9c6bcb4fa1cbf6cde21dcfcd5f90f176cf2f4748' }, "Flex item 4"))), h("div", { key: '84538a75637a02ce2437f00947064f892cf7c88b', style: { flex: '1' } }, h("udp-fluent-card", { key: '56b8204956fbcf209987ff16de132ca2528ea508', width: "100%" }, h("div", { key: 'fe1e8148e4b8665c6d71ae0718347853232418a3', slot: "header" }, h("h3", { key: 'f690fd59b8dc4be8b1ffcc008d2a0dd6bd42bb16' }, "Card 5 (33%)")), h("span", { key: '932bda158a38e14dfe48811d46df57309f8991c0' }, "Flex item 5"))))))), h("udp-tab-panel", { key: '88ed75229aabbcaa6a1022887ef52dbc19c91e1e', id: "chips", activeTabId: this.currentTab }, h("div", { key: '8af5fcc4bdc5d5eae25eb3d1c1d43cb621c98dc0', style: { padding: '24px', display: 'flex', flexDirection: 'column', gap: '24px' } }, h("h4", { key: '7e2cebdf3abb636484b8c2c1903f5f1d80e815b4' }, "Filled Chips"), h("div", { key: '633e81f8161f15130a99fc9cfaebdbb71e291261', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, h("udp-chip", { key: 'f393337049dfd1c98f6ded1481b521761835b3f8', label: "Basic Chip", variant: "filled", color: "gray" }), h("udp-chip", { key: 'f6c85f01147ced201eed3d4594c8249e0fd3d5d8', label: "Primary", variant: "filled", color: "primary" }), h("udp-chip", { key: '53222a89e6f6b31120c478b6fd9c35ed73a90bb2', label: "Success", variant: "filled", color: "success" }), h("udp-chip", { key: 'f6c47b7cfa85bc3c612e3414bca5bff185e9982f', label: "Warning", variant: "filled", color: "warning" }), h("udp-chip", { key: '8380869d2869997550cd58f60e05d03bac09a7d9', label: "Error", variant: "filled", color: "error" })), h("h4", { key: 'f1239966cc07bf73587bbbdb23626ba04381c44f' }, "Outlined Chips"), h("div", { key: '6685b6c1529075c94b5e19374eb0bd01fd7f4981', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, h("udp-chip", { key: '1ee60acbab2184408cd382da4889bef128e826bd', label: "Basic Chip", variant: "outlined", color: "gray" }), h("udp-chip", { key: 'f237d938668b58d3ff944593aff68733b25207c3', label: "Primary", variant: "outlined", color: "primary" }), h("udp-chip", { key: '00f74d9971532b06192c01f8b517fe8680d69848', label: "Success", variant: "outlined", color: "success" }), h("udp-chip", { key: '797e8dcb81f81c894156e21524a3c6f1e3f99d0a', label: "Warning", variant: "outlined", color: "warning" }), h("udp-chip", { key: 'f64ca7451d70878bb7378b47f7c9ac12014087ec', label: "Error", variant: "outlined", color: "error" })), h("h4", { key: 'a9756e7283d6a3a4074ebc4c4669ca2d7e04a2c9' }, "With Icons & Deletable"), h("div", { key: 'ef6a7ccb28fde281283867185e53e811706a5857', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, h("udp-chip", { key: 'dba7238bd1f43866f95a44ee3577c0acbeffe1b4', label: "Person", startIcon: "person_20_regular", variant: "filled", color: "primary" }), h("udp-chip", { key: '93a0048a47e0a137dc236552f9ad2f029ac348d5', label: "Deletable", variant: "filled", color: "gray", deleteButton: true, onChipDelete: e => console.log('Delete:', e.detail) })), h("h4", { key: '254c629d89e9ef1a3912868c5c0e7b2c48f22788' }, "Sizes"), h("div", { key: '8207bab587da5149b8c96ce2a2d1157f8446d637', style: { display: 'flex', gap: '8px', flexWrap: 'wrap', alignItems: 'center' } }, h("udp-chip", { key: '8f44326a0fbe430ac27f7b72c85cfc29db68da8c', label: "Medium (Default)", size: "medium" }), h("udp-chip", { key: '3e057b9f323a86b73b20c513a552ac30d1e0f887', label: "Small", size: "small" })))), h("udp-tab-panel", { key: '9f89a0da047922c50cf76d799d1625a2f949dfa2', id: "forms", activeTabId: this.currentTab }, h("div", { key: 'd213943d5d985c7fdf8a1c6f9883d2a5550ac97e', style: {
|
|
2604
2644
|
padding: '24px',
|
|
2605
2645
|
display: 'flex',
|
|
2606
2646
|
flexDirection: 'column',
|
|
2607
2647
|
gap: '40px',
|
|
2608
|
-
} }, h("div", { key: '
|
|
2648
|
+
} }, h("div", { key: 'b80261a9bf86cdf12849ad404d4c3197f67c8d5c' }, h("h3", { key: 'f3a79b73737877d76f2694d8cfca3ab3c2a07183' }, "1. Registry Pattern (Sidesheet)"), h("p", { key: 'de7aae22952fe113d571d75a9a7f750e33339cfb' }, "Button in drawer footer auto-connects to form via ", h("code", { key: 'f8ab264a55aba2a386a6e78589470750ee2070b6' }, "formId"), "."), h("div", { key: '337d7bbab8bb985bbd52b8f755c744145fcd0873', style: { marginTop: '16px' } }, h("udp-fluent-button", { key: '2f097e68139e611cf630ed252f84d324102d20f9', appearance: "primary", onClick: () => (this.formDrawerOpen = true) }, "Open Registry Form Drawer"))), h("hr", { key: '7d5568120b9d60a8557dcedbb5ca568c679bf8d7', style: { width: '100%', borderColor: '#eee' } }), h("div", { key: 'df0cd61b04418f570c065db4f0ba78c28a265417' }, h("h3", { key: '7508a1d1b3b1efd24e8448e38fde36fa5d712dc1' }, "2. Legacy Manual Wiring (Sidesheet)"), h("p", { key: 'dc6e333bfb52cd3d3c0f9b3d0a7b9ea74886e700' }, "Parent component manually listens to ", h("code", { key: '95dc4b57526933ce8a4f6231ffc1a3c8567a15e5' }, "formReady"), ", tracks validity state, and calls ", h("code", { key: '5f1c2b8eaff919de930c94ad5cf221ab78d700dd' }, "submit()"), "."), h("div", { key: 'f38c9d920d0f6874f3be0490adb9bc944c7a13df', style: { marginTop: '16px' } }, h("udp-fluent-button", { key: '24ef0443a16a240122f68b50cf41efd8b388bd36', appearance: "outline", onClick: () => (this.manualDrawerOpen = true) }, "Open Manual Form Drawer"))), h("hr", { key: 'b1dfe7a753fd8df429888eb29dad1b6a424d37bd', style: { width: '100%', borderColor: '#eee' } }), h("div", { key: '18e9d2eedc2a2586f20679d9d351583f8294b4fc' }, h("h3", { key: '50aec36cdac2d136692a737986b0b35208518c1a' }, "3. Inline Form"), h("p", { key: 'fc4801b61a1a0136f70e5aa720e2a1c2d50b7e9b' }, "Form embedded directly in the page. Uses registry pattern for the external submit button."), h("div", { key: '6ad1d54a4cb971d665b4af6a3bc230635730aa7b', style: { border: '1px solid #e0e0e0', padding: '24px', borderRadius: '8px' } }, h("div", { key: 'd9d0a17af517f258c74eb439b479079a19e7c9df', style: { marginTop: '16px', display: 'flex', justifyContent: 'flex-end' } }, h("udp-fluent-button", { key: 'e34b1f0c704b93fbf67fd8bed3de2ad6fdb5bf48', appearance: "primary", form: "inline-form", type: "reset" }, "Inline Reset")))))), h("udp-tab-panel", { key: '9b38be482e3a8faa5c1a81f5ca7d83336c9caebd', id: "calendar", activeTabId: this.currentTab }, h("div", { key: 'f5b1b4344fd1737af514dd40968b21bff35121a4', style: {
|
|
2609
2649
|
padding: '24px',
|
|
2610
2650
|
display: 'flex',
|
|
2611
2651
|
flexDirection: 'column',
|
|
2612
2652
|
gap: '32px',
|
|
2613
|
-
} }, h("div", { key: '
|
|
2653
|
+
} }, h("div", { key: '6988993fd53d16ceba30defe24935fe8058bb3b0' }, h("h3", { key: '871db8c584562bf096ac93f0a0e048ce5ef4bc43' }, "Date Range Selector (Fluent2 Styled)"), h("p", { key: 'f048857420af064c334122db02071be519372660', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '8px' } }, "Calendar component with month/year view navigation. Click the header to switch views.")), h("div", { key: 'a3e5190d29006a28b204f7ef56fcff976fe9edf3', style: { display: 'flex', gap: '48px', flexWrap: 'wrap' } }, h("div", { key: 'e904a9ca74a364727106bbaca92933e1d83d4543' }, h("h4", { key: '2dbc91365b6f27b163dd8cf4e768c17ac5f593d8', style: { marginBottom: '8px' } }, "Single Date (sm)"), h("udp-date-range-selector", { key: '69d2f581d4fbba74fc40f5483cf58e3f623427c6', variant: "single", monthsToDisplay: 1, size: "sm", onChange: (e) => (this.singleDateValue = e.detail) }), h("p", { key: '4f6a4e436a9d49c879ec40c5fedb74b4a4737957', style: {
|
|
2614
2654
|
fontSize: '12px',
|
|
2615
2655
|
color: 'var(--colorNeutralForeground3)',
|
|
2616
2656
|
marginTop: '8px',
|
|
2617
|
-
} }, "Value: ", h("code", { key: '
|
|
2657
|
+
} }, "Value: ", h("code", { key: '96b9e90d465820739f85e314b91895b5ed147c7b' }, this.singleDateValue || '(none)'))), h("div", { key: '78670ee359abf290ba8d94b58fe71c60aad1ad1b' }, h("h4", { key: '45b6ade6c4808b011184e0ff34433233d66abba6', style: { marginBottom: '8px' } }, "Multi-Select (md)"), h("udp-date-range-selector", { key: '5d4ae298f2bb6f7d9defed5716b96c7c67015af7', variant: "multi", monthsToDisplay: 1, size: "md", onChange: (e) => (this.multiDateValue = e.detail) }), h("p", { key: 'a556aa32e975a1a7f9b8e8e072e9b90398b02ca4', style: {
|
|
2618
2658
|
fontSize: '12px',
|
|
2619
2659
|
color: 'var(--colorNeutralForeground3)',
|
|
2620
2660
|
marginTop: '8px',
|
|
2621
|
-
} }, "Value: ", h("code", { key: '
|
|
2661
|
+
} }, "Value: ", h("code", { key: 'ece61d000ccf09db5813bd6ec11853a67696988c' }, this.multiDateValue || '(none)')))), h("div", { key: '9b18249409730967a04c0598584d2f3c5d5f977f' }, h("h4", { key: 'c34dab89630d11b37870d70602f4d61657487b3d', style: { marginBottom: '8px' } }, "Date Range (lg, 2 months)"), h("udp-date-range-selector", { key: '8aa2b984755b84499c1265a3582f5dba0e9e5352', variant: "range", monthsToDisplay: 2, size: "lg", orientation: "horizontal", onChange: (e) => (this.rangeDateValue = e.detail) }), h("p", { key: '937653dd99a2da0b6828d442014865a2b6c5c6e2', style: {
|
|
2622
2662
|
fontSize: '12px',
|
|
2623
2663
|
color: 'var(--colorNeutralForeground3)',
|
|
2624
2664
|
marginTop: '8px',
|
|
2625
|
-
} }, "Value: ", h("code", { key: '
|
|
2665
|
+
} }, "Value: ", h("code", { key: '75a1420a86b75f8990401bcf9cc5764b8a4d94dd' }, this.rangeDateValue || '(none)'))), h("div", { key: '40685d4b580a6d5e9c9eb6cf35d63cee6e6ba75b' }, h("h3", { key: '756e063c4b011fc9b6f13280b6ad92598a01e0bd', style: { marginTop: '16px' } }, "Date Picker (Native)"), h("p", { key: '8845e45d2612f1c6c8b70d2f8ebee56bf9e4ab16', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '16px' } }, "For simple single date selection, the native date input provides quick month/year navigation."), h("div", { key: 'f07a0c05f653d0e6df9416d2849bd83e958bf343', style: { display: 'flex', gap: '24px', flexWrap: 'wrap' } }, h("udp-date-input", { key: '5052a4abe2e19d8e30616f55358907c0f475af95', label: "Date", appearance: "outline" }), h("udp-date-input", { key: 'dd6f2d6ee001f7eda5ff2135d8012305e5a5b744', label: "Date & Time", appearance: "outline" }))), h("div", { key: '3dc32f5693540dbb0830c8a7fdfaa3457655dba8' }, h("h3", { key: 'a1e77bf974467b23afe5d7c3336f3e5d1dadc4b3', style: { marginTop: '24px' } }, "Popover Component"), h("p", { key: '9547fccb75a7ebb41cb8a070d6eea193a269f26f', style: { color: 'var(--colorNeutralForeground2)', marginBottom: '16px' } }, "Generic popover using native Popover API and CSS Anchor Positioning."), h("div", { key: 'dcec04de0ae8c08248864097715591f83666572b', style: {
|
|
2626
2666
|
display: 'flex',
|
|
2627
2667
|
gap: '24px',
|
|
2628
2668
|
flexWrap: 'wrap',
|
|
2629
2669
|
alignItems: 'flex-start',
|
|
2630
|
-
} }, h("udp-popover", { key: '
|
|
2670
|
+
} }, h("udp-popover", { key: 'c2e8567daf2364615279149938fd5d9ae521c82d', position: "bottom-start" }, h("udp-fluent-button", { key: '333b902b5ae1739f2f19f229ae39897a8fd9cf90', slot: "trigger", appearance: "outline" }, "Open Popover"), h("div", { key: '013a5caa6382d517c8cb9d31f2fe12e981b76e37', slot: "content", style: { padding: '16px', minWidth: '200px' } }, h("p", { key: '9522caade1a6b9ce160b8981886f96cc28094843', style: { margin: '0 0 8px 0', fontWeight: '600' } }, "Popover Title"), h("p", { key: '03c459807a1ae04aeae39b419807e99b3e2c53cc', style: { margin: '0', color: 'var(--colorNeutralForeground2)' } }, "This is popover content. Click outside to close."))), h("udp-popover", { key: '74bbf26ffb077df6d7758aa7e5f692453fe5374d', position: "bottom-start" }, h("udp-fluent-button", { key: 'a16178fe00e238d6e9c113868188c743b64c1882', slot: "trigger", appearance: "primary", startIconName: "calendar" }, "Date Picker Popover"), h("div", { key: '258720ea1e6355a23158e23c9cc641e1102898ae', slot: "content", style: { padding: '8px' } }, h("udp-date-range-selector", { key: '3332f6f66b3a124e339270ebfec9f92214528d5e', variant: "single", monthsToDisplay: 1, size: "sm" }))), h("udp-popover", { key: '396da41f51568d6a67f5dc4229fe97a9c89f3a76', position: "right" }, h("udp-fluent-button", { key: '567e0b5bcc102642f2312ac1e91d7a08732052a7', slot: "trigger", appearance: "subtle" }, "Right Position"), h("div", { key: '0aff1512e968f34db5d5ff93f23e18710d76c1c4', slot: "content", style: { padding: '12px', minWidth: '150px' } }, "Positioned to the right")))))), h("udp-tab-panel", { key: '6c40f823edc3f25250d2614efe19e4568ae4fa8b', id: "popover", activeTabId: this.currentTab }, h("div", { key: 'be820146db93e489f8188211992ac4e01646f0c0', style: {
|
|
2631
2671
|
padding: '24px',
|
|
2632
2672
|
display: 'flex',
|
|
2633
2673
|
flexDirection: 'column',
|
|
2634
2674
|
gap: '32px',
|
|
2635
|
-
} }, h("div", { key: '
|
|
2675
|
+
} }, h("div", { key: '1edd32650b2f9fe5b9437b53e6e8fdb51e9b3d44' }, h("h3", { key: '34760034aa8712347e339fad984e5be07e7f7fd7' }, "Popover Component"), 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.")), h("div", { key: '6db4188136ba096cb10952265a4ffcc03070f066' }, h("h4", { key: '4c87f6463690fca22ab587af82baef1e89c2f234' }, "Basic Usage"), h("div", { key: 'd282d8af07b7c95d0f57eb147577febeaa7a6adf', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, h("udp-popover", { key: 'b609a230383ea24ebcfeae60ebc72cde757252e4' }, h("udp-fluent-button", { key: 'd2cc5601ff33d84f9c26d21597aa35fa31b52440', slot: "trigger" }, "Default Popover"), h("div", { key: '602a6e1823fb09889c1cc9da1ba31e65726adc43', slot: "content" }, h("h4", { key: '991998c6139d745c100268dc47e190ac79f7d443', style: { marginTop: '0px' } }, "Popover Title"), h("p", { key: 'b47c75bf0ebe2157579198373a34ef613f421f5f', style: { marginBottom: '0px' } }, "This is popover content. Click outside to close."))), h("udp-popover", { key: '98047aa0559df389081553fa7a4cf0d4d5b819db', position: "top" }, h("udp-fluent-button", { key: '43ae296c17a63b3ed0eab1e165af967c84e77d25', slot: "trigger", appearance: "outline" }, "Top Position"), h("div", { key: '92bcebb1e78d2dc6c5095c1dd36e849b292de345', slot: "content" }, h("p", { key: '03d68b100200eaab5526eb0c0f45f1ea1b7e423c', style: { margin: '0px' } }, "Positioned above the trigger"))), h("udp-popover", { key: 'c34d53dfd4c8eabbd8f17e7a268d1c67b884002d', position: "right" }, h("udp-fluent-button", { key: '9826db5ba78847dfed3467cdf290efd571ff4953', slot: "trigger", appearance: "subtle" }, "Right Position"), h("div", { key: 'fa64043d534caa73b7d25149ca84892213a59d05', slot: "content" }, h("p", { key: 'a37b82cbc77993555f1e0197e04694d832ebeda2', style: { margin: '0px' } }, "Positioned to the right"))))), h("div", { key: '44e826d09aecf9bf0a77825c321b4c85e4f59eef' }, h("h4", { key: '7e7d0b18e60114e601894281301b6d377a27f330' }, "With Arrow"), h("p", { key: 'f507d037e4c44ed5eb80b2334f832c1bd01a4c1e', style: { fontSize: '14px', color: 'var(--colorNeutralForeground3)' } }, "Display an arrow pointing from the popover to the trigger."), h("div", { key: '96dc49c80faae587c8d126182582264967e31e68', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, h("udp-popover", { key: '55d9b77ecdfc523f08cd74dad2770ce99026939c', "with-arrow": true }, h("udp-fluent-button", { key: '6d06d24e8a5a5ee6ef5009b0a2b65353f5053e55', slot: "trigger" }, "Default Arrow"), h("div", { key: '6542230c89fda24441e8b3003c6c5a48b115336b', slot: "content" }, h("p", { key: 'e77ab6763e3bfddbae740a09924560416904b434', style: { margin: '0px' } }, "Popover with arrow"))), h("udp-popover", { key: 'e3797e4e6c17ef617bdb500aed63402e86ff6a6d', "with-arrow": true }, h("udp-fluent-button", { key: '14a59e2062abdea1f1654375d23da5412b35134f', slot: "trigger", appearance: "primary" }, "Brand Arrow"), h("div", { key: 'cf61ff06c1889d60aa4c72d7cfd40d5049303e23', slot: "content" }, h("p", { key: '60f875a43880c87cf934086fa378f29a981303bd', style: { margin: '0px' } }, "Brand popover with arrow"))), h("udp-popover", { key: 'ea336b5d007e4167ba9b27793ab4e11ae8440fe8', "with-arrow": true, position: "top" }, h("udp-fluent-button", { key: '27aa56f8b8b0b3fd2b41e6494fdafd2f96e50b86', slot: "trigger", appearance: "outline" }, "Top Arrow"), h("div", { key: 'b2d3434f23a6796ea619a995b4feab2fa60fe5af', slot: "content" }, h("p", { key: '9cc01d5a3d0ce76521972f4de056b4be4436f302', style: { margin: '0px' } }, "Arrow on top position"))))), h("div", { key: 'a11338014ef13d8cf4b4be3a91780135d498a3fa' }, h("h4", { key: '7b42d95ea0e420f5dbbf2864c8410ac4cf328985' }, "Size Constraints"), h("p", { key: '3ee49f3397565b3d2ebf0de2eff599a148cb4406', style: { fontSize: '14px', color: 'var(--colorNeutralForeground3)' } }, "Optional max-width constraints. Without size, popover grows to fit content."), h("div", { key: '6b0a06a74cf60ee78d2d413df14ad5790d1f41de', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, h("udp-popover", { key: '801d24cc5179ff65cf636e66efb1a1cd4eeaebcb', size: "small" }, h("udp-fluent-button", { key: '87fb0d5f80a2fddb1cefa178e31701e6666a8b32', slot: "trigger" }, "Small (320px)"), h("div", { key: 'ca277e1fcfc1b36133f8d14494b3d22711d652a8', slot: "content" }, 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."))), h("udp-popover", { key: 'e669a24d1aac72abd66ae5e26414afa4917681b4', size: "medium" }, h("udp-fluent-button", { key: 'ec45babf503c3fc5c4d810bdffe4b492685e82f2', slot: "trigger" }, "Medium (480px)"), h("div", { key: '1498db4073e24e965d36be124e9478be13db2660', slot: "content" }, 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."))), h("udp-popover", { key: 'a091bee3b9a3a290de176f09cc2b7d9840690970', size: "large" }, h("udp-fluent-button", { key: 'd4c680f0e62cbdec56a8e55a1114c37e8c69c9c7', slot: "trigger" }, "Large (640px)"), h("div", { key: '212dfab8173befd065b55b9e2e353b4362a8b41f', slot: "content" }, 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."))))), h("div", { key: '4ff95eadd0af3f4679b4c9438a0fb5654e4a2898' }, h("h4", { key: 'cdc79da26b6f885eab5067b90bcffd35796646bb' }, "Trap Focus (Accessibility)"), h("p", { key: 'c91c9b51bbc03809d3df53d4b286d0bbaef7e151', style: { fontSize: '14px', color: 'var(--colorNeutralForeground3)' } }, "When trapFocus is enabled, keyboard navigation is restricted to the popover."), h("div", { key: 'dedcad5b844014a107799854c8d3edaf4a4a76c6', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, h("udp-popover", { key: '10ffcd589dd605355cbfa5d9e2fb98da7c5237b2', trapFocus: true }, h("udp-fluent-button", { key: 'd3fc9b7baad7dc7a30063a75d2a30db966af3046', slot: "trigger" }, "Trap Focus"), h("div", { key: '36b1a13a772ee0de7fb9474ca62a2d9a2c534efa', slot: "content" }, h("h4", { key: '4347f0527d8cd9f37b90c495c8fc5f399ea7b406', style: { marginTop: '0px' } }, "Modal Popover"), h("p", { key: '870d9fad03d2d7d3064e54609c8d08acfc20f5ef' }, "This popover traps focus. Press Escape to close."), h("div", { key: '30d72421b1cda4a9e56e07eeeff613a7aedfba8f', style: { display: 'flex', gap: '8px' } }, h("udp-fluent-button", { key: '9902ed1f75c927276fea5f8eee5e7fe7f6657831', size: "small" }, "Action 1"), h("udp-fluent-button", { key: '2ede35579061b2d47a317fe176e6e77ea02e10d7', size: "small", appearance: "outline" }, "Action 2")))))), h("div", { key: '417db415c76410afdc930056abad7f8760511f3d' }, h("h4", { key: '7fdf2c595251f4e8d6d71b681ee70c1649ee089a' }, "Advanced Examples"), h("div", { key: '44e48b144e7732676bd8232503868e91a36f1206', style: { display: 'flex', gap: '16px', flexWrap: 'wrap' } }, h("udp-popover", { key: '1afe18b6973d97cdbab3b8b2bc82cb6ea36a4083', position: "bottom-start", "with-arrow": true }, h("udp-fluent-button", { key: 'fb8afde54173be626b374de5815117b285c32fa5', slot: "trigger", startIconName: "calendar" }, "Date Picker"), h("div", { key: '86c751e087bb1e9dacc1c61b3301e8e03d37a192', slot: "content", style: { padding: '8px' } }, h("udp-date-range-selector", { key: '4720012a3765869aeb3e34246568f2d43ac67b02', variant: "single", monthsToDisplay: 1, size: "sm" }))), h("udp-popover", { key: '8a5a81bb641e66de6528f796a3cd049fba6c6b4a', size: "medium", "with-arrow": true }, h("udp-fluent-button", { key: '2d5c4c27fe3022ddd095a63b588efee855209d1c', slot: "trigger" }, "Rich Content"), h("div", { key: 'e7082d15a2f09ffce34802df69c6c896c17f8b04', slot: "content" }, h("h4", { key: '5b83ad04dbe20a509c89689ab6133c5cbbb7fe80', style: { marginTop: '0px' } }, "Feature Update"), h("p", { key: '3bbce4ea891cf9988e0646d566265a84b651c8e5', style: { fontSize: '14px' } }, "New features are now available! Check out the latest updates to improve your workflow."), h("udp-fluent-button", { key: '5ad055447c46054dab2ce8706cbd048a0812179f', size: "small" }, "Learn More"))), h("udp-popover", { key: '65ac8bc7e0c3d076f5b8823306917d073163df70', "close-on-scroll": true }, h("udp-fluent-button", { key: 'af2bbd466a6475d16e9ffe1141912fb115897439', slot: "trigger" }, "Closes on Scroll"), h("div", { key: 'c256bc2841d210480d088bd44c4867717fe3f7a1', slot: "content" }, h("p", { key: 'dba086fc8582f001e21e7ffb218780a4af8ff01d', style: { margin: '0px' } }, "This popover will close when you scroll the page."))))))))), h("udp-fluent-drawer", { key: '7d9b5e2729991738b91654daaeaec6293732de22', open: this.drawerOpen, onDrawerClose: () => (this.drawerOpen = false), drawerTitle: "Drawer Title" }, h("udp-lazy-loader", { key: 'fda21dd13e4c9db7caf26adbb7edec4cd4ca233c', if: this.drawerOpen, content: () => (h("div", null, h("client-side-grid", { columnDefs: [
|
|
2636
2676
|
{ field: 'name' },
|
|
2637
2677
|
{ field: 'age' },
|
|
2638
2678
|
{ field: 'name' },
|
|
@@ -2643,10 +2683,10 @@ const TestComponentsPage = class {
|
|
|
2643
2683
|
], rowData: [
|
|
2644
2684
|
{ name: 'John', age: 30 },
|
|
2645
2685
|
{ name: 'Jane', age: 25 },
|
|
2646
|
-
] }), h("udp-fluent-button", { onClick: () => (this.drawerOpen = false) }, "Close Drawer"))) })), h("udp-fluent-drawer", { key: '
|
|
2686
|
+
] }), h("udp-fluent-button", { onClick: () => (this.drawerOpen = false) }, "Close Drawer"))) })), h("udp-fluent-drawer", { key: 'aa303a377d4aaa20473976dca42b16d3e253ab6d', open: this.formDrawerOpen, onDrawerClose: () => (this.formDrawerOpen = false), drawerTitle: "Sample Form", size: "large" }, h("udp-lazy-loader", { key: '85a6cc60167f024d1e68c64a80db28d701cba51d', if: this.formDrawerOpen, content: () => (h("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' } }, h("div", { style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, h("udp-fluent-button", { appearance: "outline", onClick: () => (this.secondDrawerOpen = true) }, "Open Second Drawer")), h("test-form", { handleSubmit: this.handleSubmit, formId: "registry-drawer-form" }))) }), h("udp-fluent-button", { key: '636725804c2c6541dd375b6b6745a533a5933e6d', appearance: "primary", slot: "footer", form: "registry-drawer-form", type: "submit" }, "Submit Form"), h("udp-fluent-button", { key: 'b9d26d098aba2a8d86420851fa4cd8c94ef99c92', slot: "footer", form: "registry-drawer-form", type: "reset" }, "Reset Form")), h("udp-fluent-drawer", { key: 'b591dbad939aaacfc2b07f761d1c5574ec632672', open: this.manualDrawerOpen, onDrawerClose: () => (this.manualDrawerOpen = false), drawerTitle: "Form (Manual Wiring)" }, h("udp-lazy-loader", { key: 'bb9a236daf20c79b5628f98511f18dc004bde157', if: this.manualDrawerOpen, content: () => (h("test-form", { handleSubmit: this.handleSubmit, onFormReady: this.handleManualFormReady })) }), h("udp-fluent-button", { key: '4868f7758a3c5fb1baa801351e21226939f642a1', appearance: "primary", slot: "footer", disabled: !this.manualCanSubmit, onClick: () => {
|
|
2647
2687
|
var _a;
|
|
2648
2688
|
void ((_a = this.manualFormInstance) === null || _a === void 0 ? void 0 : _a.submit());
|
|
2649
|
-
} }, "Submit (Manual)")), h("udp-fluent-dialog", { key: 'd49d81a77336a937ae737243fade81c91a692a75', open: this.drawerDialogOpen, dialogTitle: "Dialog from Drawer", onDialogClose: () => (this.drawerDialogOpen = false) }, h("div", { key: 'be85b912b653656c3deb6a6a008b698788b1d264' }, "This dialog was opened from inside the drawer!"), h("div", { key: '226c017a93e0da8f4893059eeef2fd1ed441daa1' }, 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."), 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."), 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?")), h("udp-fluent-button", { key: '1e2e6f52a0739446dd3fa314ef7d7b35046e3f27', slot: "action", onClick: () => (this.drawerDialogOpen = false) }, "Close"), h("udp-fluent-button", { key: 'e2837943d9918bdfa016a609823250adfd0e94cc', appearance: "primary", slot: "action" }, "Confirm")), h("udp-fluent-drawer", { key: '671165fe9ca8af35d26aacbc8ef8fa994834f8a6', open: this.secondDrawerOpen, onDrawerClose: () => (this.secondDrawerOpen = false), drawerTitle: "Second Drawer (Nested)", size: "medium" }, h("div", { key: 'aae8fd0b613469f9b5ee3edc8f4532aabc3dee2b', style: { display: 'flex', flexDirection: 'column', gap: '16px', padding: '16px' } }, h("p", { key: 'c2699ba856ea6b5b42c763643573e4864c680914' }, "This is the second drawer opened from within the first drawer."), h("div", { key: '8eb4a76293cf590d0aae1b73362b9da0ef8e235f', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, h("udp-fluent-button", { key: '3f631e6f4d8f25929d7b340c57dfd76e8b5824d7', onClick: () => (this.secondDrawerDialogOpen = true) }, "Open Dialog from Second Drawer"), h("udp-fluent-button", { key: '386b7e6f8eb5c9b21e19deb86226a357fdb8c8ac', appearance: "outline", onClick: () => (this.thirdDrawerOpen = true) }, "Open Third Drawer")), 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."), 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."), 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?"), 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."), 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.")), h("udp-fluent-button", { key: 'e92e241234b7f87a5ee20842549f7f153fe0a973', appearance: "primary", slot: "footer", onClick: () => (this.secondDrawerOpen = false) }, "Close Second Drawer")), h("udp-fluent-drawer", { key: 'b156a016bee30cb3482582b896b375723de717cd', open: this.thirdDrawerOpen, onDrawerClose: () => (this.thirdDrawerOpen = false), drawerTitle: "Third Drawer (Deeply Nested)", size: "small" }, h("div", { key: '4225d763b8d8423d742cd9bb8d7244589f4291de', style: { padding: '16px' } }, h("p", { key: '5dc33a244057589e3727f28042ef156223e86e5e' }, "This is the third drawer! Three levels deep."), h("p", { key: '41c02615fb6c1a565a051836886175a6f22d49a1', style: { fontSize: '14px', color: 'var(--colorNeutralForeground2)' } }, "Testing the drawer stacking and body scroll lock mechanism with multiple drawers."), 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."), 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."), 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?"), 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."), 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.")), h("udp-fluent-button", { key: 'e467504fda19d0e85041d8300cc970c5dccc970d', appearance: "primary", slot: "footer", onClick: () => (this.thirdDrawerOpen = false) }, "Close Third Drawer")), h("udp-fluent-dialog", { key: '01112cb144df8ea78d76098e71caa206ad9d3954', open: this.secondDrawerDialogOpen, dialogTitle: "Dialog from Second Drawer", onDialogClose: () => (this.secondDrawerDialogOpen = false) }, h("div", { key: '444b505efe77b882d9159ed62ee4b6fefdcdfc7b' }, "This dialog was opened from the second drawer!"), 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."), 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."), 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?"), h("udp-fluent-button", { key: 'cfeab7536777e88636e24d322d1a3d1cf72ef6e0', slot: "action", onClick: () => (this.secondDrawerDialogOpen = false) }, "Close"), h("udp-fluent-button", { key: '76cdbd3b247fc9cace656080dd3cccf6fd3ec9a2', appearance: "primary", slot: "action" }, "Confirm"))));
|
|
2689
|
+
} }, "Submit (Manual)")), h("udp-fluent-dialog", { key: '85f2b641cc9f0ecaa327da056cd9a52e270912e3', open: this.drawerDialogOpen, dialogTitle: "Dialog from Drawer", onDialogClose: () => (this.drawerDialogOpen = false) }, h("div", { key: 'e3bf597e4dacdf1e34c8dfdf63c65bc9e3e7a482' }, "This dialog was opened from inside the drawer!"), h("div", { key: '9c17eee8d9ab701c15635272326efa2122f63f0c' }, 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."), 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."), 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?")), h("udp-fluent-button", { key: '7cbe9d22b1c4567b05b0f024ea9fe9fb84a918cd', slot: "action", onClick: () => (this.drawerDialogOpen = false) }, "Close"), h("udp-fluent-button", { key: '6593fa9478602571627c3694ca1832a30976fb6b', appearance: "primary", slot: "action" }, "Confirm")), h("udp-fluent-drawer", { key: '790e2ba054f94c62c9d796f377c6169067540a93', open: this.secondDrawerOpen, onDrawerClose: () => (this.secondDrawerOpen = false), drawerTitle: "Second Drawer (Nested)", size: "medium" }, h("div", { key: 'd1b8b5de6636906ebd9a90839b9cebcda84a2348', style: { display: 'flex', flexDirection: 'column', gap: '16px', padding: '16px' } }, h("p", { key: '572f5051af669e4ba4eee3213179440ebb709b9c' }, "This is the second drawer opened from within the first drawer."), h("div", { key: '369218231794b928d71436b8c485b6ccceade3a7', style: { display: 'flex', gap: '8px', flexWrap: 'wrap' } }, h("udp-fluent-button", { key: 'a9dac02d2735f1c9f45d870556c7aa19fffedf4b', onClick: () => (this.secondDrawerDialogOpen = true) }, "Open Dialog from Second Drawer"), h("udp-fluent-button", { key: '5ac90eff5ac462a03f5fd8356312daa801db8087', appearance: "outline", onClick: () => (this.thirdDrawerOpen = true) }, "Open Third Drawer")), 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."), 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."), 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?"), 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."), 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.")), h("udp-fluent-button", { key: '73cb8d42a6e2ca8da6600a00a2c52c4050934fc4', appearance: "primary", slot: "footer", onClick: () => (this.secondDrawerOpen = false) }, "Close Second Drawer")), h("udp-fluent-drawer", { key: 'e6988e2de64a1a14a5ed85a5afa83c2add46e493', open: this.thirdDrawerOpen, onDrawerClose: () => (this.thirdDrawerOpen = false), drawerTitle: "Third Drawer (Deeply Nested)", size: "small" }, h("div", { key: '62348c97061715dabfc70a1aca8012a2aad0c63c', style: { padding: '16px' } }, h("p", { key: '5f3c0df123e2972d797637171afa36e315135f6d' }, "This is the third drawer! Three levels deep."), h("p", { key: 'eac31168ea71b9404b2b8f85ed7df3ba7e589260', style: { fontSize: '14px', color: 'var(--colorNeutralForeground2)' } }, "Testing the drawer stacking and body scroll lock mechanism with multiple drawers."), 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."), 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."), 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?"), 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."), 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.")), h("udp-fluent-button", { key: '24147fbe1ae6d2341ba61442ec61c070de51100a', appearance: "primary", slot: "footer", onClick: () => (this.thirdDrawerOpen = false) }, "Close Third Drawer")), h("udp-fluent-dialog", { key: 'ec067f433388c06cd1b73807429ff951c92813f3', open: this.secondDrawerDialogOpen, dialogTitle: "Dialog from Second Drawer", onDialogClose: () => (this.secondDrawerDialogOpen = false) }, h("div", { key: 'aa08e40a57a62398d1faf514d2a0e09b50170ffc' }, "This dialog was opened from the second drawer!"), 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."), 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."), 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?"), h("udp-fluent-button", { key: 'eddcd6ff3b9ec7ab9de1ef1db575d583a7c002ba', slot: "action", onClick: () => (this.secondDrawerDialogOpen = false) }, "Close"), h("udp-fluent-button", { key: 'c1b38551c76d49c97b28f9adfa43f9bcaa799a60', appearance: "primary", slot: "action" }, "Confirm"))));
|
|
2650
2690
|
}
|
|
2651
2691
|
};
|
|
2652
2692
|
|
|
@@ -2765,17 +2805,17 @@ const TestForm = class {
|
|
|
2765
2805
|
{ label: 'Medium', value: 'medium' },
|
|
2766
2806
|
{ label: 'Large', value: 'large' },
|
|
2767
2807
|
];
|
|
2768
|
-
return (h("div", { key: '
|
|
2808
|
+
return (h("div", { key: '78b78911bd056a508320960916f7b0104e9f7dcf' }, h("udp-form-component", { key: 'a99232c1c4b9e84b941d2fcaf595032236b24b77', formId: this.formId, validate: this.validateForm, onFormReady: this.handleFormReady, onSubmit: this.handleFormSubmit, initialValues: this.formData }, h("udp-flexbox", { key: '3a45771136231dc99d00880c852d782062d70a4d' }, h("udp-flexbox", { key: '1777ecd1e444cf3be936b517270cb87a508c216a', style: { display: 'none' } }, h("h3", { key: '5ae9fff156c7465cdcb0a58cb1a5606e274e45e4', style: { margin: '0 0 1rem 0', fontSize: '16px', fontWeight: '600' } }, "Global Property Controls"), h("udp-flexbox", { key: 'f85125e69d026ece32ba64997d75b31a928e7ad5' }, 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); } }), 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' } }), h("udp-fluent-switch", { key: '3e219e40ac6d247d2f5405e260837aee884208da', label: "Required", labelPosition: "after", checked: this.controlRequired, onValueChanged: (e) => (this.controlRequired = e.detail) }), h("udp-fluent-switch", { key: '0c0b16c3430b03f9243181f25bf27fc6008be2d9', label: "Disabled", labelPosition: "after", checked: this.controlDisabled, onValueChanged: (e) => (this.controlDisabled = e.detail) }), h("udp-fluent-switch", { key: 'f7ec67444927b64a393cc8588938c96d6c8b7d15', label: "Readonly", labelPosition: "after", checked: this.controlReadonly, onValueChanged: (e) => (this.controlReadonly = e.detail) })), h("p", { key: '1c9094a5b717b06f9b8e2fa529bdce379ee8c927', style: {
|
|
2769
2809
|
margin: '0.75rem 0 0',
|
|
2770
2810
|
fontSize: '12px',
|
|
2771
2811
|
color: 'var(--colorNeutralForeground3)',
|
|
2772
|
-
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), h("udp-field", { key: '
|
|
2812
|
+
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), h("udp-field", { key: '1f3218930f463504e4d3e78d5544d5af0308dfad', name: "searchText" }, h("udp-search-input", { key: '32f52709af9f8ed6c3f0ad906faef97b3a356d3a', disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize, placeholder: "Search for something...", includeErrorPadding: false })), h("udp-field", { key: 'f3302fdbb91f87aa886ab48b68fb4dad9c814d6c', name: "firstName" }, 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" })), h("div", { key: '63d0a3a79bda4e19c1c42489c1511f409e9d71c8', style: { display: 'flex', gap: '1rem', flexDirection: 'row', flex: '1' } }, h("udp-field", { key: '9217aaa885ce4b3f0bc351be85e407b3daa640bc', name: "email" }, 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 })), h("udp-field", { key: '30b3bc790e61e9e50242f7ff97ceeccd11b30478', name: "age" }, 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 }))), h("udp-field", { key: 'c47f175c6d7ce797b5b74fe250a05dc9708e56c5', name: "birthday" }, 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 })), h("udp-field", { key: '26be842252a2a196af372b07fef6c78e4f100b63', name: "appointment" }, h("udp-date-time-input", { key: 'd745a121bf64e22c7ebf4eabcb3fc283373dc686', label: "Appointment (Combined Date/Time)", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), h("div", { key: 'fefbc37f981f26a6de2dbc2a16802cdbc0642081', style: { display: 'flex', gap: '1rem', flexDirection: 'row', flex: '1' } }, h("udp-field", { key: '5456c7f8483217141fe30058c8518d650f917cc0', name: "startTime" }, 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 })), h("udp-field", { key: '1e1e1077fe91ff91ebe4e065a658ed82a204fbff', name: "endTime", validate: () => 'always invalid' }, 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 }))), h("udp-field", { key: '5e18d1e10ef2e3e768dedf7429d09b3471df24aa', name: "bio" }, 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 })), h("udp-field", { key: '3b4f342a8a25afdb40b75d9a23122813b60321ca', name: "exclamation", validate: mustHaveExclamation }, 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 })), h("udp-field", { key: '83b4e0e693a03f6aacab33ae50535bc0e5051217', name: "favoriteAnimal" }, 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 })), h("udp-field", { key: '0e87635dc8f2cf870aad4f6afa5ef23849b5921b', name: "favoriteAnimalAutoComplete" }, 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,
|
|
2773
2813
|
// multiple={true}
|
|
2774
|
-
options: animals, controlSize: this.controlSize, popupHint: "Select an animal" })), h("udp-field", { key: '
|
|
2814
|
+
options: animals, controlSize: this.controlSize, popupHint: "Select an animal" })), h("udp-field", { key: 'a80552ad161ff4133059afa6ae0d58287e3ff570', name: "serverSideUser" }, 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 })), h("udp-field", { key: '474418370a9404b1361866a533df9ce7f3725a91', name: "newsletter" }, 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 })), h("udp-field", { key: 'fd904a841f78761100a63ba5e744f02886599300', name: "commitment" }, h("udp-slider", { key: '75586c644a239954779b34ccf8f60ea3c2b06549', label: "Commitment Level", disabled: this.controlDisabled })), h("udp-field", { key: 'f30242266279384e87a9b59eb8209cda57dbf0d5', name: "active" }, h("udp-fluent-switch", { key: 'e5d342187efa24a5cc8dad1daec88dfab9490667', label: "Active", labelPosition: "after", disabled: this.controlDisabled })), h("udp-field", { key: '55f3ef27debb9b35367fb71eea0d0b9870231082', name: "favoriteColor" }, h("udp-fluent-radio-group", { key: '7714e7558cf305d0570af651f2e8724a83b26808', label: "Favorite Colo", disabled: this.controlDisabled, hint: "Favorite Color", items: [
|
|
2775
2815
|
{ label: 'Red', value: 'red' },
|
|
2776
2816
|
{ label: 'Green', value: 'green' },
|
|
2777
2817
|
{ label: 'Blue', value: 'blue' },
|
|
2778
|
-
] })), h("udp-field", { key: '
|
|
2818
|
+
] })), h("udp-field", { key: '4f4cc14c8aaf6ed456ca5931b56448f67f7e84cc', name: "swatchColor" }, 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'
|
|
2779
2819
|
? 'small'
|
|
2780
2820
|
: this.controlSize === 'large'
|
|
2781
2821
|
? 'large'
|
|
@@ -2894,9 +2934,9 @@ const UdpAmbientToolTip = class {
|
|
|
2894
2934
|
render() {
|
|
2895
2935
|
// Check if content is provided before rendering the tooltip content.
|
|
2896
2936
|
const shouldDisplayTooltip = !!this.isVisible && !!this.content && this.content.trim() !== '';
|
|
2897
|
-
return (h("div", { key: '
|
|
2937
|
+
return (h("div", { key: '6df05e15a1d6a5a449074b5906fd8305a1112743', class: "tooltip-wrapper", ref: el => (this.wrapperEl = el), onMouseOver: this.showTooltip, onMouseOut: this.hideTooltip }, h("slot", { key: '9003fc54fcef34b9edc8006a8fed7900923f8b4a' }), shouldDisplayTooltip && (
|
|
2898
2938
|
// STEP 4: Use the global class name we defined in our style string.
|
|
2899
|
-
h("div", { key: '
|
|
2939
|
+
h("div", { key: 'a54c034523dcf8104c1515aad1102f166d61f510', class: "udp-tooltip-portal", role: "tooltip", ref: el => (this.tooltipContentEl = el) }, h("unity-typography", { key: '700d713e32d7a9e03546a6df4834633d9c6acfca', variant: "caption-text" }, this.content)))));
|
|
2900
2940
|
}
|
|
2901
2941
|
};
|
|
2902
2942
|
UdpAmbientToolTip.style = udpAmbientToolTipCss();
|
|
@@ -3014,6 +3054,26 @@ const UdpAutocomplete = class {
|
|
|
3014
3054
|
* @note Not supported in combination with `multiple`.
|
|
3015
3055
|
*/
|
|
3016
3056
|
this.freeForm = false;
|
|
3057
|
+
/**
|
|
3058
|
+
* Controls the shape of the `valueChanged` payload (see that event's docs):
|
|
3059
|
+
* - `'option'` (default): emit the matched option **object** from the source
|
|
3060
|
+
* list (legacy behavior). Convenient when the consumer wants the full option
|
|
3061
|
+
* (label, metadata) on change.
|
|
3062
|
+
* - `'value'`: emit the scalar resolved via `optionValue` (a `string`, or
|
|
3063
|
+
* `string[]` in `multiple` mode). This is what form bindings want — the
|
|
3064
|
+
* stored value is the option's id, not the object. Set this when wiring the
|
|
3065
|
+
* autocomplete into a form (Final Form / react-hook-form / `udp-field`).
|
|
3066
|
+
* Feed the emitted scalar(s) back into `value`; label resolution still works
|
|
3067
|
+
* because every internal read goes through `optionValue`. With `freeForm`,
|
|
3068
|
+
* an unmatched typed entry emits its raw string in either mode.
|
|
3069
|
+
*
|
|
3070
|
+
* @remarks Default is `'option'` to preserve existing behavior. A future
|
|
3071
|
+
* major version is expected to flip the default to `'value'`, since emitting
|
|
3072
|
+
* the scalar matches the convention of most component libraries (MUI, Ant
|
|
3073
|
+
* Design, Vuetify, Element) and avoids the "[object Object]" / stale-option
|
|
3074
|
+
* class of bug in form contexts.
|
|
3075
|
+
*/
|
|
3076
|
+
this.valueAs = 'option';
|
|
3017
3077
|
// --- State ---
|
|
3018
3078
|
this.internalLoading = false;
|
|
3019
3079
|
this.filterText = '';
|
|
@@ -3137,7 +3197,7 @@ const UdpAutocomplete = class {
|
|
|
3137
3197
|
? currentVal.filter(i => this.getOptionValue(i) !== itemVal)
|
|
3138
3198
|
: // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
3139
3199
|
[...currentVal, item];
|
|
3140
|
-
this.valueChanged.emit(newValue);
|
|
3200
|
+
this.valueChanged.emit(newValue.map(v => this.toEmitValue(v)));
|
|
3141
3201
|
}
|
|
3142
3202
|
}
|
|
3143
3203
|
else {
|
|
@@ -3193,7 +3253,7 @@ const UdpAutocomplete = class {
|
|
|
3193
3253
|
return;
|
|
3194
3254
|
const itemVal = this.getOptionValue(item);
|
|
3195
3255
|
const newValue = this.value.filter(i => this.getOptionValue(i) !== itemVal);
|
|
3196
|
-
this.valueChanged.emit(newValue);
|
|
3256
|
+
this.valueChanged.emit(newValue.map(v => this.toEmitValue(v)));
|
|
3197
3257
|
};
|
|
3198
3258
|
this.handleChange = (ev) => {
|
|
3199
3259
|
var _a;
|
|
@@ -3221,7 +3281,7 @@ const UdpAutocomplete = class {
|
|
|
3221
3281
|
const originalOption = this.findOptionByValue(selectedValue);
|
|
3222
3282
|
const emitValue = originalOption !== undefined ? originalOption : selectedValue;
|
|
3223
3283
|
this.selectionForOverlay = emitValue;
|
|
3224
|
-
this.valueChanged.emit(emitValue);
|
|
3284
|
+
this.valueChanged.emit(this.toEmitValue(emitValue));
|
|
3225
3285
|
// Fluent sets input.value to the option's textContent (badge text included).
|
|
3226
3286
|
// Overwrite with the resolved label so uncontrolled usage stays clean.
|
|
3227
3287
|
if (originalOption && this.dropdownRef.control) {
|
|
@@ -3249,7 +3309,7 @@ const UdpAutocomplete = class {
|
|
|
3249
3309
|
return !displayValues.has(itemValue) && !visibleSelectedIds.has(itemValue);
|
|
3250
3310
|
})
|
|
3251
3311
|
: [];
|
|
3252
|
-
this.valueChanged.emit([...hiddenSelections, ...visibleSelectedValues]);
|
|
3312
|
+
this.valueChanged.emit([...hiddenSelections, ...visibleSelectedValues].map(v => this.toEmitValue(v)));
|
|
3253
3313
|
// Fluent's selectOption overwrites control.value with displayValue — restore filter text.
|
|
3254
3314
|
if (this.filterText && this.dropdownRef.control) {
|
|
3255
3315
|
requestAnimationFrame(() => {
|
|
@@ -3380,6 +3440,17 @@ const UdpAutocomplete = class {
|
|
|
3380
3440
|
const searchArray = this.datasource || this.searchFunction ? this.fetchedOptions : this.options;
|
|
3381
3441
|
return searchArray.find(opt => this.getOptionValue(opt) === value);
|
|
3382
3442
|
}
|
|
3443
|
+
/**
|
|
3444
|
+
* Maps a single internal selection entry (option object or primitive) to the
|
|
3445
|
+
* shape `valueChanged` should emit, per `valueAs`. In `'value'` mode this
|
|
3446
|
+
* resolves the scalar via `optionValue`; in `'option'` mode it passes the
|
|
3447
|
+
* entry through unchanged. Callers map this over the array in multi-select.
|
|
3448
|
+
* Internal `value` round-tripping keeps working in either mode because every
|
|
3449
|
+
* read goes through `getOptionValue` (primitives resolve to themselves).
|
|
3450
|
+
*/
|
|
3451
|
+
toEmitValue(selection) {
|
|
3452
|
+
return this.valueAs === 'value' ? this.getOptionValue(selection) : selection;
|
|
3453
|
+
}
|
|
3383
3454
|
getDisplayOptions() {
|
|
3384
3455
|
if (this.datasource || this.searchFunction) {
|
|
3385
3456
|
return this.fetchedOptions;
|
|
@@ -3482,20 +3553,27 @@ const UdpAutocomplete = class {
|
|
|
3482
3553
|
? this.resolveProp(overlayOption, this.optionLabel, true)
|
|
3483
3554
|
: null;
|
|
3484
3555
|
const overlayBadges = overlayOption ? this.getOptionBadges(overlayOption) : [];
|
|
3485
|
-
return (h(Host, { key: '
|
|
3556
|
+
return (h(Host, { key: '89b86c15abd8134b91fc35a7353aee0f2e74a7d5', class: { 'has-error': hasError } }, h("fluent-field", { key: '5f5094ebeaacb6731f9fcfd1567b047d6119e5c3', class: {
|
|
3486
3557
|
'no-label': !this.label && !this.multiple,
|
|
3487
3558
|
'no-message': !message && !this.includeErrorPadding,
|
|
3488
|
-
} }, h("div", { key: '
|
|
3559
|
+
} }, h("div", { key: 'bd965e08439f6189afe88746a9ec3dff662dc52d', class: "label-content", onClick: () => this.handleTogglePopover(false), slot: "label" }, this.label && (h("fluent-label", { key: '113b4736d2454475400846aeda6978d823fa05c0', disabled: this.disabled, style: { paddingTop: '2px', paddingBottom: '2px' } }, this.label, this.popupHint && (h("udp-tooltip", { key: '80777babf581444f7c8c38bf20873c95db15fc97', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: 'ff00357dea7aba684a6237c0db60a8856328325c', name: "info", size: "xs", class: "popup-hint-icon" }))))), this.multiple && (h("div", { key: '5d5ae469fbc8ef62c6646d176306f267036e6812', class: {
|
|
3489
3560
|
'selected-items': true,
|
|
3490
3561
|
'has-items': selectedItems.length > 0,
|
|
3491
|
-
} }, selectedItems.map(item =>
|
|
3562
|
+
} }, selectedItems.map(item => {
|
|
3563
|
+
var _a;
|
|
3564
|
+
// Resolve to the source option so chips show the label even
|
|
3565
|
+
// when `value` holds scalars (valueAs="value"). In 'option'
|
|
3566
|
+
// mode `item` is already the object, so this is a no-op.
|
|
3567
|
+
const opt = (_a = this.findOptionByValue(this.getOptionValue(item))) !== null && _a !== void 0 ? _a : item;
|
|
3568
|
+
return (h("udp-fluent-badge", { color: "brand", shape: "circular", dismissible: !this.disabled, onDismiss: () => this.handleChipDelete(item) }, this.resolveProp(opt, this.optionLabel, true)));
|
|
3569
|
+
})))), h("div", { key: '1060be0738eeecfe900006dc1ecf0f99ea9c02d8', slot: "input", class: {
|
|
3492
3570
|
'input-wrapper': true,
|
|
3493
3571
|
'has-overlay': !!overlayOption,
|
|
3494
|
-
} }, h("fluent-dropdown", { key: '
|
|
3572
|
+
} }, 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,
|
|
3495
3573
|
// Events
|
|
3496
3574
|
onInput: this.handleInput, onChange: this.handleChange, onFocusout: this.handleBlur, onFocusin: () => this.inputFocus.emit(),
|
|
3497
3575
|
// Suppress native invalid popup
|
|
3498
|
-
onInvalid: (e) => e.preventDefault(), exportparts: "control, listbox", ref: el => (this.dropdownRef = el) }, h("fluent-listbox", { key: '
|
|
3576
|
+
onInvalid: (e) => e.preventDefault(), exportparts: "control, listbox", ref: el => (this.dropdownRef = el) }, h("fluent-listbox", { key: '1712ef4796ed9118725f9749ecbb4f056a2c3828' }, (this.loading || this.internalLoading) && (h("fluent-option", { key: 'd05adea606a5ab51263c523071e0a500b84a26a3', disabled: true, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, h("span", { key: '93f78e1d2018e9ecd68424283a6b606f7d5fcafd' }, "Loading..."), h("span", { key: '65c89d6f7e04f382487d2d38b970f510e1d9bc65', slot: "indicator" }))), !this.loading && !this.internalLoading && visibleCount === 0 && !this.freeForm && (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 &&
|
|
3499
3577
|
!this.internalLoading &&
|
|
3500
3578
|
(displayOptions === null || displayOptions === void 0 ? void 0 : displayOptions.length) > 0 &&
|
|
3501
3579
|
(() => {
|
|
@@ -3526,7 +3604,7 @@ const UdpAutocomplete = class {
|
|
|
3526
3604
|
} }, optIcon && this.iconPosition === 'start' && (h("span", { slot: "start", class: "option-icon-slot" }, h("udp-fluent-icon", { name: optIcon, size: "sm" }))), optLabel, optIcon && this.iconPosition === 'end' && (h("span", { class: "option-icon-end", style: { pointerEvents: 'none', marginLeft: '4px' } }, h("udp-fluent-icon", { name: optIcon, size: "sm" }))), this.renderBadges(optBadges)));
|
|
3527
3605
|
});
|
|
3528
3606
|
return nodes;
|
|
3529
|
-
})(), this.freeForm && (h("fluent-option", { key: '
|
|
3607
|
+
})(), this.freeForm && (h("fluent-option", { key: '0d8d62ae5341831f3d305ea7cb91c8286dfa0ca0', freeform: true }, h("output", { key: 'bba3b3fb94850b416a1ea4aafdd6eb75b60f9fbc' })))), h("div", { key: '58331076d6c4db30d1cd0d7e22819bda247f6de9', slot: "indicator", class: "indicator-wrapper" }, h("udp-fluent-icon-button", { key: '9347ee56ea89f8e1c9be5fcb6a13a5aa3bc6a3f2', class: {
|
|
3530
3608
|
'clear-button': true,
|
|
3531
3609
|
'is-visible': !this.disabled &&
|
|
3532
3610
|
(this.filterText !== '' ||
|
|
@@ -3534,10 +3612,10 @@ const UdpAutocomplete = class {
|
|
|
3534
3612
|
(this.multiple &&
|
|
3535
3613
|
Array.isArray(this.value) &&
|
|
3536
3614
|
this.value.length > 0)),
|
|
3537
|
-
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), h("udp-fluent-icon", { key: '
|
|
3615
|
+
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), h("udp-fluent-icon", { key: '662df827d72ee3fd5b879db45c2115779f69a895', name: "chevron-down", size: "sm", class: "chevron-down", onClick: () => this.handleTogglePopover(false) }))), overlayOption && (h("div", { key: '04885cd3a7ca59c5efa9c3caf307d957deb96877', class: "selected-overlay", "aria-hidden": "true" }, h("span", { key: '1ba24d42ac8dfe6a1a8f6390d4a68bf5288558ac', class: "selected-label" }, overlayLabel), this.renderBadges(overlayBadges)))), h("div", { key: 'd956cc5bb911be2b84fcc8baaadc03f50cba20f1', class: {
|
|
3538
3616
|
'message-wrapper': true,
|
|
3539
3617
|
'includeErrorPadding': this.includeErrorPadding,
|
|
3540
|
-
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, h("udp-text", { key: '
|
|
3618
|
+
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, h("udp-text", { key: '9d10de86797308fd9b9b7598a9f9aa3523b7ad17', variant: "caption1", class: {
|
|
3541
3619
|
message: true,
|
|
3542
3620
|
error: hasError,
|
|
3543
3621
|
} }, message)))));
|
|
@@ -3603,7 +3681,7 @@ const UdpAvatar = class {
|
|
|
3603
3681
|
else {
|
|
3604
3682
|
style['background-color'] = this.getColorForUsername();
|
|
3605
3683
|
}
|
|
3606
|
-
return (h("div", { key: '
|
|
3684
|
+
return (h("div", { key: '3b327dcb6724cd0239fdc774d61bca2bcbaa8118', class: classes.join(' '), style: style }, this.iconName ? h("udp-icon", { iconName: this.iconName, darkIcon: false }) : h("unity-typography", { variant: "data-display-two" }, " ", this.getInitial())));
|
|
3607
3685
|
}
|
|
3608
3686
|
};
|
|
3609
3687
|
UdpAvatar.style = udpAvatarCss();
|
|
@@ -3618,7 +3696,7 @@ const UdpBadge = class {
|
|
|
3618
3696
|
}
|
|
3619
3697
|
render() {
|
|
3620
3698
|
const displayContent = this.content > this.max ? `${this.max}+` : this.content;
|
|
3621
|
-
return (h("div", { key: '
|
|
3699
|
+
return (h("div", { key: '6342e2b951c3cdb08266639c4591d8e0b5e41025', class: "badge-wrapper" }, h("slot", { key: '20ecbfe2c069919e57c49e290b5873eeaf2cd7b5' }), h("span", { key: '7a8b8a8dd5a05ff6f37b751365dfcefb33facaf1', class: "badge-content" }, h("unity-typography", { key: 'ab34efc8406ac5340702898532bd9f8995201ccc', variant: 'caption-text' }, " ", displayContent, " "))));
|
|
3622
3700
|
}
|
|
3623
3701
|
};
|
|
3624
3702
|
UdpBadge.style = udpBadgeCss();
|
|
@@ -3775,7 +3853,7 @@ const UdpChip = class {
|
|
|
3775
3853
|
[`chip--size-${this.size}`]: true,
|
|
3776
3854
|
'chip--clickable': this.clickable,
|
|
3777
3855
|
};
|
|
3778
|
-
return (h("div", { key: '
|
|
3856
|
+
return (h("div", { key: '32876751f5611b1facc9b1ee9a0ba6380e558d1a', class: chipClasses, onClick: this.handleChipClick }, this.startIcon && (h("span", { key: '2aeb3f4152d1010ccd7af3a8ed5ac535d24dfec0', class: "chip__icon chip__icon--start" }, h("udp-icon", { key: '3cfb645e5e73d909a04032076eaaa4cefbc5ed75', iconName: this.startIcon, color: 'inherit' }))), h("span", { key: '27c7b73be43aeabd3a656099ecc02203adf789f8', class: "chip__label" }, this.label), this.deleteButton && (h("span", { key: '0ce21e782d0e6be1ce4206a7f7947f7926841e41', class: "chip__delete-icon", onClick: this.handleDeleteClick, title: "Remove" }, h("svg", { key: 'f34e2335e97fc0a6219a59f84ad10bdb60cb2d1d', width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor" }, 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" }))))));
|
|
3779
3857
|
}
|
|
3780
3858
|
};
|
|
3781
3859
|
UdpChip.style = udpChipCss();
|
|
@@ -3805,14 +3883,6 @@ function getBadgeIconSize(size) {
|
|
|
3805
3883
|
return BADGE_ICON_SIZE_MAP[size];
|
|
3806
3884
|
}
|
|
3807
3885
|
|
|
3808
|
-
/**
|
|
3809
|
-
* Returns true if the host element has any light-DOM child assigned to the given named slot.
|
|
3810
|
-
* Works correctly with web component children (which have no light-DOM children or text of their own).
|
|
3811
|
-
*/
|
|
3812
|
-
function hasSlotContent(hostEl, slotName) {
|
|
3813
|
-
return !!hostEl.querySelector(`[slot="${slotName}"]`);
|
|
3814
|
-
}
|
|
3815
|
-
|
|
3816
3886
|
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}`;
|
|
3817
3887
|
|
|
3818
3888
|
const UdpCompoundButton = class {
|
|
@@ -3852,7 +3922,7 @@ const UdpCompoundButton = class {
|
|
|
3852
3922
|
const showEnd = hasSlotContent(this.el, 'end') || !!this.endIconName;
|
|
3853
3923
|
const showDescription = hasSlotContent(this.el, 'description') || !!this.description;
|
|
3854
3924
|
const iconSize = getIconSize(this.size, 'prominent');
|
|
3855
|
-
return (h(Host, { key: '
|
|
3925
|
+
return (h(Host, { key: '31ace477600d0a0601300fb7554e981fab5efcf6' }, 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 && (h("span", { key: 'd532d28690aeee18aad88f4f312446bff96c9272', class: "slot-wrapper", slot: "start" }, h("slot", { key: '1bd2f13fe4ca7022cc4daf8b0215791625e247c2', name: "start" }, this.startIconName && (h("udp-fluent-icon", { key: '8388e8a9aae16e13c36d64f0dbb33173d3ea9eb3', name: this.startIconName, size: iconSize }))))), showDescription && (h("span", { key: '31bff98cdff564bcaba3faa671c4bf3b77faa6d3', slot: "description", class: "description-wrapper" }, h("slot", { key: '2cd0e10f2a90a0c6db42e65036eac5b67670a111', name: "description" }, this.description))), h("slot", { key: '36fff7c9f6c2fe80fc6ef9d8bc218fc3185a84d5' }), showEnd && (h("span", { key: 'b2d6cbc7046cd07dd1b2792b86bcf39a144653d4', class: "slot-wrapper", slot: "end" }, h("slot", { key: '2a2d87aae3b9e3e4115826ea904fe9681973317d', name: "end" }, this.endIconName && h("udp-fluent-icon", { key: 'c99a2eb4d57224301854c3de76064e72391fd7cb', name: this.endIconName, size: iconSize }))))), this.loading && (h("div", { key: '4f01d73f6510fe1b7317a4be289a7e8c93f3ca67', class: "loading-overlay" }, h("udp-spinner", { key: '0c4ad255d65515f6ea375715f5de6dec8fd156fb', size: this.size === 'large' ? 'extra-small' : 'tiny' })))));
|
|
3856
3926
|
}
|
|
3857
3927
|
get el() { return getElement(this); }
|
|
3858
3928
|
};
|
|
@@ -3896,7 +3966,11 @@ const UdpDateInput = class {
|
|
|
3896
3966
|
* - 'MM/DD/YYYY' - US format
|
|
3897
3967
|
* - 'DD/MM/YYYY' - UK/Europe/Canada format
|
|
3898
3968
|
* - 'YYYY/MM/DD' - ISO/China/Japan format
|
|
3899
|
-
*
|
|
3969
|
+
*
|
|
3970
|
+
* @deprecated Use `dateFormat` instead. `format` collides with the reserved
|
|
3971
|
+
* `format` prop of form libraries (e.g. react-final-form's `<Field>`), which
|
|
3972
|
+
* treats it as a value-formatter function. Retained as an alias; `dateFormat`
|
|
3973
|
+
* takes precedence when both are set.
|
|
3900
3974
|
*/
|
|
3901
3975
|
this.format = 'MM/DD/YYYY';
|
|
3902
3976
|
/**
|
|
@@ -4034,6 +4108,11 @@ const UdpDateInput = class {
|
|
|
4034
4108
|
this.isPopoverOpen = !this.isPopoverOpen;
|
|
4035
4109
|
};
|
|
4036
4110
|
}
|
|
4111
|
+
/** Resolved display format. `dateFormat` wins over the deprecated `format`. */
|
|
4112
|
+
get resolvedFormat() {
|
|
4113
|
+
var _a;
|
|
4114
|
+
return (_a = this.dateFormat) !== null && _a !== void 0 ? _a : this.format;
|
|
4115
|
+
}
|
|
4037
4116
|
onValueChange(newValue) {
|
|
4038
4117
|
// Sync external prop to internal state, normalizing through parseDateInput
|
|
4039
4118
|
if (newValue !== this.internalValue) {
|
|
@@ -4041,6 +4120,13 @@ const UdpDateInput = class {
|
|
|
4041
4120
|
this.displayValue = this.formatDateForDisplay(this.internalValue);
|
|
4042
4121
|
}
|
|
4043
4122
|
}
|
|
4123
|
+
onFormatChange() {
|
|
4124
|
+
// The display string is derived from the format. Props are applied
|
|
4125
|
+
// asynchronously (e.g. via the React wrapper), so the format can land after
|
|
4126
|
+
// the value has already been formatted. Re-derive the display from the
|
|
4127
|
+
// canonical internal value whenever the format changes.
|
|
4128
|
+
this.displayValue = this.formatDateForDisplay(this.internalValue);
|
|
4129
|
+
}
|
|
4044
4130
|
componentWillLoad() {
|
|
4045
4131
|
// Initialize internal state from value prop, normalizing through parseDateInput
|
|
4046
4132
|
if (this.value) {
|
|
@@ -4081,7 +4167,7 @@ const UdpDateInput = class {
|
|
|
4081
4167
|
if (!match)
|
|
4082
4168
|
return isoDate; // Return as-is if not valid ISO format
|
|
4083
4169
|
const [, year, month, day] = match;
|
|
4084
|
-
switch (this.
|
|
4170
|
+
switch (this.resolvedFormat) {
|
|
4085
4171
|
case 'MM/DD/YYYY':
|
|
4086
4172
|
return `${month}/${day}/${year}`;
|
|
4087
4173
|
case 'DD/MM/YYYY':
|
|
@@ -4205,12 +4291,12 @@ const UdpDateInput = class {
|
|
|
4205
4291
|
// 4. Current year shorthand: exactly 4 digits (e.g., 0113)
|
|
4206
4292
|
if (/^\d{4}$/.test(cleaned)) {
|
|
4207
4293
|
let month, day;
|
|
4208
|
-
if (this.
|
|
4294
|
+
if (this.resolvedFormat === 'YYYY/MM/DD') {
|
|
4209
4295
|
// For ISO format, interpret as MMDD
|
|
4210
4296
|
month = parseInt(cleaned.substring(0, 2), 10);
|
|
4211
4297
|
day = parseInt(cleaned.substring(2, 4), 10);
|
|
4212
4298
|
}
|
|
4213
|
-
else if (this.
|
|
4299
|
+
else if (this.resolvedFormat === 'DD/MM/YYYY') {
|
|
4214
4300
|
// Day first
|
|
4215
4301
|
day = parseInt(cleaned.substring(0, 2), 10);
|
|
4216
4302
|
month = parseInt(cleaned.substring(2, 4), 10);
|
|
@@ -4229,13 +4315,13 @@ const UdpDateInput = class {
|
|
|
4229
4315
|
if (separatorMatch) {
|
|
4230
4316
|
const [, part1, part2, part3] = separatorMatch.map(Number);
|
|
4231
4317
|
let year, month, day;
|
|
4232
|
-
if (this.
|
|
4318
|
+
if (this.resolvedFormat === 'YYYY/MM/DD' || part1 > 31) {
|
|
4233
4319
|
// Year first or first part is clearly a year
|
|
4234
4320
|
year = part1;
|
|
4235
4321
|
month = part2;
|
|
4236
4322
|
day = part3;
|
|
4237
4323
|
}
|
|
4238
|
-
else if (this.
|
|
4324
|
+
else if (this.resolvedFormat === 'DD/MM/YYYY') {
|
|
4239
4325
|
day = part1;
|
|
4240
4326
|
month = part2;
|
|
4241
4327
|
year = part3;
|
|
@@ -4264,7 +4350,7 @@ const UdpDateInput = class {
|
|
|
4264
4350
|
const [, part1, part2] = twoPartMatch.map(Number);
|
|
4265
4351
|
const year = today.getFullYear();
|
|
4266
4352
|
let month, day;
|
|
4267
|
-
if (this.
|
|
4353
|
+
if (this.resolvedFormat === 'DD/MM/YYYY' || this.resolvedFormat === 'YYYY/MM/DD') {
|
|
4268
4354
|
// For DD/MM and YYYY/MM/DD, when only two parts, assume DD/MM
|
|
4269
4355
|
day = part1;
|
|
4270
4356
|
month = part2;
|
|
@@ -4417,14 +4503,14 @@ const UdpDateInput = class {
|
|
|
4417
4503
|
render() {
|
|
4418
4504
|
const hasError = !!this.error || !!this.internalError;
|
|
4419
4505
|
const message = this.internalError || this.error || this.hint;
|
|
4420
|
-
return (h(Host, { key: '
|
|
4506
|
+
return (h(Host, { key: '9a0b36661cc0bc79733f5e5166b0237c74b8055a', class: { 'has-error': hasError, 'disabled': this.disabled } }, h("fluent-field", { key: 'fb3070fa56b39354181e4e1df3125a22673e90e4', class: { 'no-message': !message && !this.includeErrorPadding } }, h("udp-popover", { key: '671bbd0c71a947b916eb6b4d2c90f632344e6284', slot: "input", open: this.isPopoverOpen, position: "bottom-start", toggleOnTriggerClick: false, onPopoverClose: () => {
|
|
4421
4507
|
this.isPopoverOpen = false;
|
|
4422
4508
|
// Only return focus to input if Escape was pressed (not on click-away)
|
|
4423
4509
|
if (this.restoreFocusOnClose) {
|
|
4424
4510
|
this.restoreFocusOnClose = false;
|
|
4425
4511
|
requestAnimationFrame(() => this.focusInput());
|
|
4426
4512
|
}
|
|
4427
|
-
}, trapFocus: false, closeOnBlur: false }, h("fluent-text-input", { key: '
|
|
4513
|
+
}, trapFocus: false, closeOnBlur: false }, 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() }, h("fluent-label", { key: '1b52489eca9d175bb163af05831bc8237b6a3ebb', required: this.required, disabled: this.disabled, onMouseDown: this.handleLabelMouseDown }, this.label, this.popupHint && (h("udp-tooltip", { key: 'f09510db0e4ceb3a36d6d136627c3284df4aad97', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: '0521edcfb7bfd0d4423977bf5fa84459e73a6a3c', name: "info", size: "xs", class: "popup-hint-icon" })))), h("div", { key: '4847d6b093aec40d1997e0a901b30450d1c096de', slot: "end" }, h("udp-fluent-icon-button", { key: '0bad521605aa667ecbe4bc515c59c0a3356bc73a', appearance: "transparent", iconName: "calendar", onMouseDown: this.handleIconMouseDown, onClick: this.handleIconClick, disabled: this.disabled || this.readonly, tabindex: -1 }))), h("div", { key: 'd4d7bcf356f63a6e48e2e7a0e729fc1f828fee42', slot: "content" }, 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" }), h("div", { key: 'e4f15cc0f854b2d3a389202510bb18202a7f236f', class: "footer-buttons" }, h("udp-fluent-button", { key: '6c33fee28a778824bd25f9b6785226a21dee0f18', appearance: "transparent", size: "small", onClick: this.handleToday }, "Today"), h("udp-fluent-button", { key: '5a1076da7d313e7798d5a95ad38ce77171b9d207', appearance: "transparent", size: "small", onClick: this.handleClear }, "Clear")))), h("udp-text", { key: '2291ebb040091ef54a05999d91597967fc6bbbdb', slot: "message", variant: "caption1", class: {
|
|
4428
4514
|
message: true,
|
|
4429
4515
|
error: hasError,
|
|
4430
4516
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -4435,6 +4521,12 @@ const UdpDateInput = class {
|
|
|
4435
4521
|
static get watchers() { return {
|
|
4436
4522
|
"value": [{
|
|
4437
4523
|
"onValueChange": 0
|
|
4524
|
+
}],
|
|
4525
|
+
"format": [{
|
|
4526
|
+
"onFormatChange": 0
|
|
4527
|
+
}],
|
|
4528
|
+
"dateFormat": [{
|
|
4529
|
+
"onFormatChange": 0
|
|
4438
4530
|
}]
|
|
4439
4531
|
}; }
|
|
4440
4532
|
};
|
|
@@ -4911,10 +5003,10 @@ const UdpDateRangeSelector = class {
|
|
|
4911
5003
|
: 'calendar-range';
|
|
4912
5004
|
const containerWidth = this.getContainerWidth();
|
|
4913
5005
|
const monthWidth = this.getMonthWidth();
|
|
4914
|
-
return (h(Host, { key: '
|
|
5006
|
+
return (h(Host, { key: '2c96970f661cbad7b66974124e973671d642d7de', style: {
|
|
4915
5007
|
'--calendar-width': monthWidth,
|
|
4916
5008
|
'--container-width': containerWidth,
|
|
4917
|
-
}, class: `size-${this.size}`, onClick: e => e.stopPropagation() }, h("div", { key: '
|
|
5009
|
+
}, class: `size-${this.size}`, onClick: e => e.stopPropagation() }, h("div", { key: '084e12c39bb72e4d1ce3c8414fbbea4afe191ca9', class: "calendar-header" }, h("udp-fluent-icon-button", { key: 'fbee6a6fc28c57c57a0b03608ac52d65de2e8e27', iconName: "chevron-left", onClick: this.handlePrevious, disabled: this.isPrevDisabled(), appearance: "transparent", ariaLabel: "Previous" }), h("udp-fluent-button", { key: 'a87df68ad340f894967e885373da7e41ee8a9f26', appearance: "transparent", onClick: this.handleHeaderClick, ariaLabel: this.viewMode === 'year' ? undefined : 'Change view', disabled: this.viewMode === 'year' }, this.getHeaderText()), h("udp-fluent-icon-button", { key: 'fa625115fe2dc34de19cdc97d1ca33a5985805a2', iconName: "chevron-right", onClick: this.handleNext, disabled: this.isNextDisabled(), appearance: "transparent", ariaLabel: "Next" })), this.viewMode === 'day' && (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 }, h("span", { key: '292296bc516a3edf9865fb6fd76b9165ff56ce53', slot: "previous", style: { display: 'none' } }), h("span", { key: '7f846eb148e7bf1d22c3cfae742f82650f8c3a74', slot: "next", style: { display: 'none' } }), h("div", { key: 'df1eda552a64637b8515b282f719d3e2d2f9f0a7', class: "grid" }, Array.from({ length: this.monthsToDisplay }).map((_, index) => (h("calendar-month", { offset: index })))))), this.viewMode === 'month' && this.renderMonthGrid(), this.viewMode === 'year' && this.renderYearGrid()));
|
|
4918
5010
|
}
|
|
4919
5011
|
static get delegatesFocus() { return true; }
|
|
4920
5012
|
static get watchers() { return {
|
|
@@ -4943,7 +5035,14 @@ const UdpDateTimeInput = class {
|
|
|
4943
5035
|
this.controlSize = 'medium';
|
|
4944
5036
|
/** When true, the date and time inputs stack vertically instead of sitting side-by-side. */
|
|
4945
5037
|
this.stacked = false;
|
|
4946
|
-
/**
|
|
5038
|
+
/**
|
|
5039
|
+
* Date display format.
|
|
5040
|
+
*
|
|
5041
|
+
* @deprecated Use `dateFormat` instead. `format` collides with the reserved
|
|
5042
|
+
* `format` prop of form libraries (e.g. react-final-form's `<Field>`), which
|
|
5043
|
+
* treats it as a value-formatter function. Retained as an alias; `dateFormat`
|
|
5044
|
+
* takes precedence when both are set.
|
|
5045
|
+
*/
|
|
4947
5046
|
this.format = 'MM/DD/YYYY';
|
|
4948
5047
|
/** Whether to reserve space for error/helper text to prevent layout shift. */
|
|
4949
5048
|
this.includeErrorPadding = true;
|
|
@@ -5009,10 +5108,11 @@ const UdpDateTimeInput = class {
|
|
|
5009
5108
|
this.valueChanged.emit(newValue);
|
|
5010
5109
|
}
|
|
5011
5110
|
render() {
|
|
5111
|
+
var _a;
|
|
5012
5112
|
// If a main label is provided (for date) but no time label, default time label to a non-breaking space
|
|
5013
5113
|
// to maintain vertical alignment (ensuring the time input isn't pushed up).
|
|
5014
5114
|
const effectiveTimeLabel = this.timeLabel === undefined && this.label ? '\u00A0' : this.timeLabel;
|
|
5015
|
-
return (h(Host, { key: '
|
|
5115
|
+
return (h(Host, { key: 'c5f2626be05022bd5b05264a1c0f1a9fe8b81e9a' }, h("div", { key: '336f70d6084846e6a42f73cbb375e7f0a754804c', class: "date-part" }, 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 })), h("div", { key: 'a7e909e6b4c4c8cb4393db2bfef4301210056d2e', class: "time-part" }, 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 }))));
|
|
5016
5116
|
}
|
|
5017
5117
|
static get watchers() { return {
|
|
5018
5118
|
"value": [{
|
|
@@ -5075,7 +5175,7 @@ const UdpDialog = class {
|
|
|
5075
5175
|
document.removeEventListener('keydown', this.handleKeyDown);
|
|
5076
5176
|
}
|
|
5077
5177
|
render() {
|
|
5078
|
-
return (h(Host, { key: '
|
|
5178
|
+
return (h(Host, { key: 'ebd57020d1445185156758ba5b4c58912e37ff60', onClick: this.handleOverlayClick }, h("div", { key: '697ac1a1b4bea0b750757ab0bc67ed4e95e49b0b', class: "dialog-container", role: "dialog", "aria-modal": "true", "aria-labelledby": this.titleId, "aria-describedby": this.descriptionId, onClick: (event) => event.stopPropagation() }, h("div", { key: '0c15bc8eb8163197d27c071614f8ebba35b23b7a', class: "dialog-title", id: this.titleId }, h("unity-typography", { key: 'de5509f0b795d780477da91a0652b1af9e97b99f', variant: "h3" }, this.title)), h("div", { key: '7f1f33a03fbbb9747a0753f25b26ee6f99b41f58', class: "dialog-content", id: this.descriptionId }, this.message && h("unity-typography", { key: '1be061beec7f3b146a2d9be5fa856731afa7a538', variant: "body" }, this.message), h("slot", { key: '264cbeffac8277fa43d7bd8c358bdd63b6ce7fb8' })), h("div", { key: 'b93585af45896c7eff9e9a7f3b75fcacb2a621fb', class: "dialog-actions" }, !this.buttonTwoHidden && (h("udp-button", { key: '64db3289e7ceb16fb309f467e2a72d91a114efdf', variant: 'text', disabled: this.disableTwo, onClick: () => this.actionTwo() }, this.labelTwo)), !this.buttonThreeHidden && (h("udp-button", { key: '1b13d2ad75de0d9103fd65dc4a8f40c7bdf34414', variant: 'text', disabled: this.disableThree, onClick: () => this.actionThree() }, this.labelThree)), !this.buttonOneHidden && (h("udp-button", { key: '0fb08c9b1bd7c9dfe4b9146e97b93f63b55184ce', variant: 'contained', disabled: this.disableOne, onClick: () => this.actionOne(), loading: !!this.progress }, this.labelOne))))));
|
|
5079
5179
|
}
|
|
5080
5180
|
get hostEl() { return getElement(this); }
|
|
5081
5181
|
static get watchers() { return {
|
|
@@ -5310,7 +5410,7 @@ const UdpField = class {
|
|
|
5310
5410
|
}
|
|
5311
5411
|
}
|
|
5312
5412
|
render() {
|
|
5313
|
-
return h("slot", { key: '
|
|
5413
|
+
return h("slot", { key: 'c0c41371f917711db207012183ccf41a9332cc7f' });
|
|
5314
5414
|
}
|
|
5315
5415
|
get el() { return getElement(this); }
|
|
5316
5416
|
};
|
|
@@ -5458,7 +5558,7 @@ const UdpFluentAvatar = class {
|
|
|
5458
5558
|
}
|
|
5459
5559
|
render() {
|
|
5460
5560
|
const imgBorderRadius = this.getImageBorderRadius();
|
|
5461
|
-
return (h(Host, { key: '
|
|
5561
|
+
return (h(Host, { key: 'ea07d2bf001f6ece0690b2ea03cf70a57a29623d' }, 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 ? (h("img", { src: this.src, alt: this.alt, style: Object.assign({ objectFit: 'cover' }, (imgBorderRadius ? { borderRadius: imgBorderRadius } : {})) })) : this.iconName ? (h("udp-fluent-icon", { name: this.iconName, variant: this.iconVariant, size: this.getIconSize() })) : null, h("slot", { key: 'bb0408b42e6464c6f035afdfacf5e449d36d1500', name: "badge", slot: "badge" }))));
|
|
5462
5562
|
}
|
|
5463
5563
|
};
|
|
5464
5564
|
UdpFluentAvatar.style = udpFluentAvatarCss();
|
|
@@ -5500,7 +5600,7 @@ const UdpFluentBadge = class {
|
|
|
5500
5600
|
this.ready = true;
|
|
5501
5601
|
}
|
|
5502
5602
|
render() {
|
|
5503
|
-
return (h(Host, { key: '
|
|
5603
|
+
return (h(Host, { key: 'f106363d80eaee1e89bed50a3526d1134b82346f', class: { ready: this.ready } }, h("fluent-badge", { key: 'f7e59d650b21359f37e9fee7327e28b5928f3864', appearance: this.appearance, color: this.color, shape: this.shape, size: this.size }, (this.startIconName || hasSlotContent(this.el, 'start')) && (h("span", { key: '7e100952cd282baa92c4982d58b66d700f16eebf', class: "slot-wrapper", slot: "start" }, h("slot", { key: '60ce857b7854957204e7eae34934493cda344f86', name: "start" }, this.startIconName && (h("udp-fluent-icon", { key: '77a62d832aa73d390a289720e435fd282a089825', name: this.startIconName, size: getBadgeIconSize(this.size) }))))), h("span", { key: '64edd1b1c3f4ee318867c9a18ee22fb9b3b3f814', class: "default-slot" }, h("slot", { key: '8d24330a18c5284a1555f4911b31ce306e90b070' })), this.dismissible ? (h("button", { type: "button", class: "dismiss-button", slot: "end", "aria-label": this.dismissLabel, onClick: this.handleDismiss, onMouseDown: (e) => e.preventDefault() }, h("udp-fluent-icon", { name: "dismiss", size: getBadgeIconSize(this.size) }))) : ((this.endIconName || hasSlotContent(this.el, 'end')) && (h("span", { class: "slot-wrapper", slot: "end" }, h("slot", { name: "end" }, this.endIconName && (h("udp-fluent-icon", { name: this.endIconName, size: getBadgeIconSize(this.size) })))))))));
|
|
5504
5604
|
}
|
|
5505
5605
|
get el() { return getElement(this); }
|
|
5506
5606
|
};
|
|
@@ -5583,7 +5683,7 @@ const UdpFluentButton = class {
|
|
|
5583
5683
|
const iconSize = getIconSize(this.size);
|
|
5584
5684
|
const isDisabled = this.disabled || this.loading;
|
|
5585
5685
|
const isLoading = this.loading;
|
|
5586
|
-
return (h(Host, { key: '
|
|
5686
|
+
return (h(Host, { key: '90f25d959e28de4dbfe1c327c7be676281efdd9e' }, 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 || hasSlotContent(this.el, 'start')) && (h("span", { key: '8e27b98fa219865d093a20d1a7acd2edc63ac18d', class: "slot-wrapper", slot: "start" }, h("slot", { key: '1dfaf4c088cef572412b6a994966c6a119c3f638', name: "start" }, this.startIconName && (h("udp-fluent-icon", { key: 'f7fd479646258446d1073f8788f1325b96e00102', name: this.startIconName, size: iconSize }))))), h("slot", { key: '5cabc194a63ff1ee32702a18b74d030fe928688e' }), (this.endIconName || hasSlotContent(this.el, 'end')) && (h("span", { key: 'd54b3794e0e5ba112d36cfd488d1a2cbc33dd6ca', class: "slot-wrapper", slot: "end" }, h("slot", { key: '4967bb4f4517352fcd91c45df2709113153d39fb', name: "end" }, this.endIconName && h("udp-fluent-icon", { key: 'b44ea8c06021c2fa9372d1e5f46e22426cc3535b', name: this.endIconName, size: iconSize }))))), isLoading && (h("div", { key: 'f01bd40fab37e673c1ddef97f946ed359cd761ae', class: "loading-overlay" }, h("udp-spinner", { key: '5b7da1b3503cb520ec2703f4c3e0235753a1b780', size: this.size === 'large' ? 'extra-small' : 'tiny' })))));
|
|
5587
5687
|
}
|
|
5588
5688
|
get el() { return getElement(this); }
|
|
5589
5689
|
};
|
|
@@ -5640,21 +5740,21 @@ const UdpFluentCard = class {
|
|
|
5640
5740
|
}
|
|
5641
5741
|
}
|
|
5642
5742
|
render() {
|
|
5643
|
-
return (h(Host, { key: '
|
|
5743
|
+
return (h(Host, { key: 'f4673f365aaa3754f7a5ab3625e09ed37b3c3b83', class: {
|
|
5644
5744
|
[`appearance-${this.appearance}`]: true,
|
|
5645
5745
|
[`orientation-${this.orientation}`]: true,
|
|
5646
5746
|
interactive: this.interactive,
|
|
5647
5747
|
}, style: {
|
|
5648
5748
|
width: this.width,
|
|
5649
5749
|
height: this.height,
|
|
5650
|
-
}, tabIndex: this.interactive ? 0 : undefined }, h("div", { key: '
|
|
5750
|
+
}, tabIndex: this.interactive ? 0 : undefined }, h("div", { key: '6ada15fb6e6db1f5a3bf1fcf9732b4f165353f5c', class: { 'card-preview': true, 'hidden': !this.hasPreview } }, h("slot", { key: '5bc565785eae0fa6d51aadaf4dd9a5d09c25b95e', name: "preview", onSlotchange: this.handleSlotChange })), h("div", { key: '06a886a5c8a5724d01b849cce30e8a43343e9a5a', class: {
|
|
5651
5751
|
'card-header': true,
|
|
5652
5752
|
'hidden': !(this.hasHeader ||
|
|
5653
5753
|
this.hasHeaderStart ||
|
|
5654
5754
|
this.label ||
|
|
5655
5755
|
this.subtitle ||
|
|
5656
5756
|
this.hasHeaderAction),
|
|
5657
|
-
} }, h("div", { key: '
|
|
5757
|
+
} }, h("div", { key: '137791edcc47f51450bbe773d208a4d7faf9879f', class: { 'card-header-start': true, 'hidden': !this.hasHeaderStart } }, h("slot", { key: '7bf3fafc41b70124bb66032c072063b184b35791', name: "header-start", onSlotchange: this.handleSlotChange })), h("div", { key: '7e1853490e0d80fa9f1f9b956b61242dd302e0e4', class: "card-header-content" }, h("slot", { key: '3caefe16048c6eb164dfa7781b25317863588c73', name: "header", onSlotchange: this.handleSlotChange }, (this.label || this.subtitle) && (h("div", { key: 'f30637632f9f6ac6e3d2098095a6327b88ed4610', class: "header-content-wrapper" }, this.label && h("udp-text", { key: 'fe9d5ba8574c1e6cc863145292ed356b58832fa3', variant: "subtitle2" }, this.label), this.subtitle && (h("udp-text", { key: '2540c4bd163231c5b14f416bf1e40ab058b31fe8', variant: "caption1", class: "header-subtitle" }, this.subtitle)))))), h("udp-flexbox", { key: 'a68c0340da8d1d8df5d59f1bfbe5fa6deb0de8c6', class: { hidden: !this.hasHeaderAction }, direction: "row" }, h("slot", { key: '48515b7125c4c0bd7f1fbfa5af0e63dfa868ce06', name: "header-action", onSlotchange: this.handleSlotChange }))), h("div", { key: '3ce3091c57d5514d4291b3a574d254678fe66605', class: { 'card-body': true, 'no-padding': !this.bodyPadding } }, h("slot", { key: '55ed56e28753ec208356f90646ad91b808815bda' })), h("udp-flexbox", { key: '31a4a538ac81822e34539834e51257de6a7592d3', class: { 'card-footer': true, 'hidden': !this.hasFooter }, direction: "row" }, h("slot", { key: '58203616e83c77ca159aa871175e54f03fa19ef5', name: "footer", onSlotchange: this.handleSlotChange }))));
|
|
5658
5758
|
}
|
|
5659
5759
|
get el() { return getElement(this); }
|
|
5660
5760
|
};
|
|
@@ -5718,7 +5818,7 @@ const UdpFluentCheckbox = class {
|
|
|
5718
5818
|
render() {
|
|
5719
5819
|
const hasError = !!this.error;
|
|
5720
5820
|
const message = this.error || this.hint;
|
|
5721
|
-
return (h(Host, { key: '
|
|
5821
|
+
return (h(Host, { key: '555c6212a5afb2d42e070801f4e59f22edd2777c' }, h("fluent-field", { key: 'ff43d164636d41b2802c4a4b0df306f9ef04e105', "label-position": this.labelPosition, class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, h("fluent-label", { key: 'ef7f13da0b46f7e492de09101a1366a1b86a29be', slot: "label", disabled: this.disabled, onClick: this.handleLabelClick }, this.label, this.popupHint && (h("udp-tooltip", { key: '971fbb4c6fe5ea4954440c8550d7104455291da5', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: '84dc5caf9af0db0bc7de5cba520fd8d67a9023a7', name: "info", size: "xs", class: "popup-hint-icon" })))), 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 }), h("udp-text", { key: '58bab00d4eccf1b3b801090a4f64821811544f97', slot: "message", variant: "caption1", class: {
|
|
5722
5822
|
message: true,
|
|
5723
5823
|
error: hasError,
|
|
5724
5824
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -5744,7 +5844,7 @@ const UdpFluentCounterBadge = class {
|
|
|
5744
5844
|
this.dot = false;
|
|
5745
5845
|
}
|
|
5746
5846
|
render() {
|
|
5747
|
-
return (h(Host, { key: '
|
|
5847
|
+
return (h(Host, { key: '6d59bd6cf1513c226d55ac32218fcc1d5e775d2a' }, 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 }, h("slot", { key: '7fbe6bd20471101e3b3897f3389901972aec71f0', name: "start", slot: "start" }), this.count === undefined && h("slot", { key: '3df44bd9fee4d2ba2537b47f5092facc8827be0d' }), h("slot", { key: 'f1818aedfa302119d6c1d223e00ce8b071910053', name: "end", slot: "end" }))));
|
|
5748
5848
|
}
|
|
5749
5849
|
};
|
|
5750
5850
|
UdpFluentCounterBadge.style = udpFluentCounterBadgeCss();
|
|
@@ -5808,7 +5908,7 @@ const UdpFluentDialog = class {
|
|
|
5808
5908
|
}
|
|
5809
5909
|
}
|
|
5810
5910
|
render() {
|
|
5811
|
-
return (h(Host, { key: '
|
|
5911
|
+
return (h(Host, { key: 'bdc6a742e8edd7617221e3455cd4a34bb8c56765', style: { '--dialog-max-height': this.maxHeight } }, h("fluent-dialog", { key: '154d4652d77e56243775e49df95ba2949c387ed6', ref: this.setDialogRef, type: this.type, onToggle: this.handleToggle }, h("fluent-dialog-body", { key: 'c8fb1b45882f05b26929814f4b6857f6a2192254' }, h("slot", { key: '8d4a10893c21404f517d0568c12d0dfab6906322', name: "header", slot: "title" }, this.dialogTitle && h("udp-fluent-text", { key: '1d8c12414b78c0dc9598529e96f5cd1709a9c2d6' }, this.dialogTitle)), this.showHeaderCloseButton && (h("udp-fluent-icon-button", { key: 'f6601c314e32a74a89d603c9ea899c3ea58026d0', slot: "close", appearance: "subtle", iconName: "dismiss", ariaLabel: "Close Dialog" })), h("div", { key: 'c317d7af79b48a39308c9778f779e2cc698bc35d', class: "dialog-content" }, h("slot", { key: 'f7f688477f49c2a201ce91f6b8ce02384600d9cf' })), h("udp-flexbox", { key: '57f73d7491219fa5311ac0caaa074b52fa00988a', slot: "action", direction: "row" }, h("slot", { key: 'faad63095de48894e82c9d70c87d3d9730c78ba4', name: "action" }))))));
|
|
5812
5912
|
}
|
|
5813
5913
|
get el() { return getElement(this); }
|
|
5814
5914
|
static get watchers() { return {
|
|
@@ -5832,7 +5932,7 @@ const UdpFluentDivider = class {
|
|
|
5832
5932
|
this.orientation = 'horizontal';
|
|
5833
5933
|
}
|
|
5834
5934
|
render() {
|
|
5835
|
-
return (h(Host, { key: '
|
|
5935
|
+
return (h(Host, { key: 'f85009a84bb481a0ba52fed82c3d26021be81b67', style: { background: 'transparent' } }, h("fluent-divider", { key: 'f237b3c0842bc7ed6ea19343e3dbee2a74b9a74d', "align-content": this.alignContent, appearance: this.appearance, inset: this.inset, role: this.role, orientation: this.orientation }, h("slot", { key: 'f08a91b63a1b88d059ecf6a03688675e8a61f841' }))));
|
|
5836
5936
|
}
|
|
5837
5937
|
};
|
|
5838
5938
|
|
|
@@ -6171,7 +6271,7 @@ const UdpFluentDrawer = class {
|
|
|
6171
6271
|
}
|
|
6172
6272
|
}
|
|
6173
6273
|
render() {
|
|
6174
|
-
return (h(Host, { key: '
|
|
6274
|
+
return (h(Host, { key: '45b1f4b2583f7e77fd033c162c15b1115e49ac8f', class: { 'has-footer': this.hasFooter } }, h("fluent-drawer", { key: '63eb8dec0d50001a00f25feb3ba1e0f7b7fdc132', ref: this.setDrawerRef, onToggle: this.handleToggle, type: "modal", position: this.position, size: this.effectiveSize }, h("fluent-drawer-body", { key: '04abd30d742279e395f4271847e8de12c26a5235' }, h("udp-text", { key: 'a9196ab5508a93901ae4a3f674f6a57c8d80f09b', variant: "subtitle1", slot: "title" }, this.drawerTitle), h("udp-fluent-icon-button", { key: '723f3d8af9739883b236d9eaef49fb4d8a9ca97f', slot: "close", appearance: "subtle", iconName: "dismiss", "aria-label": "close" }), this.hasToolbar && (h("udp-flexbox", { key: 'd26a9652357c47d072acd3a2e2d498a3ddc13973', class: "drawer-toolbar", direction: "row", width: "100%" }, h("slot", { key: 'f79e5ebc5c04127907bee559467c69ae97e8b208', name: "toolbar" }))), h("div", { key: '24ff4b4102b64248534fecbed9c8b0583586948e', class: "drawer-scroll-container", ref: el => (this.contentRef = el), onScroll: this.handleScroll }, h("div", { key: 'd563034faa7be9798d629b1300f79780dd0dfd8e', class: `scroll-shadow top ${this.showTopShadow ? 'visible' : ''}` }), h("div", { key: '33411705f0a93d13fe7669ea93bd43b9902ef2f1', class: `drawer-content-inner${this.excludeVerticalPadding ? '' : ' vertical-padding'}` }, h("slot", { key: '59d98bbdc85d325a854f6d17f29f5493356dbf92' })), h("div", { key: '4260000ac7c4cfdb963edb7cd2ecdcd19aff7f2e', class: `scroll-shadow bottom ${this.showBottomShadow ? 'visible' : ''}` })), this.hasFooter && (h("udp-flexbox", { key: '0453a08e0c9a29236a8f3bd8ea49bbb5e2214538', slot: "footer", direction: "row" }, h("slot", { key: '9e7a06250114e7a9a849c67439f35aedf6c5ce8a', name: "footer" })))))));
|
|
6175
6275
|
}
|
|
6176
6276
|
get el() { return getElement(this); }
|
|
6177
6277
|
static get watchers() { return {
|
|
@@ -6273,6 +6373,23 @@ const UdpFluentDropdown = class {
|
|
|
6273
6373
|
* Whether the dropdown shows a clear button when a value is selected.
|
|
6274
6374
|
*/
|
|
6275
6375
|
this.clearable = false;
|
|
6376
|
+
/**
|
|
6377
|
+
* Controls the shape of the `valueChanged` payload (see that event's docs):
|
|
6378
|
+
* - `'option'` (default): emit the matched option **object** from `options`
|
|
6379
|
+
* (legacy behavior). Convenient when the consumer wants the full option
|
|
6380
|
+
* (label, metadata) on change.
|
|
6381
|
+
* - `'value'`: emit the scalar resolved via `optionValue` (a `string`, or
|
|
6382
|
+
* `string[]` in `multiple` mode). This is what form bindings want — the
|
|
6383
|
+
* stored value is the option's id, not the object. Set this when wiring the
|
|
6384
|
+
* dropdown into a form (Final Form / react-hook-form / `udp-field`).
|
|
6385
|
+
*
|
|
6386
|
+
* @remarks Default is `'option'` to preserve existing behavior. A future
|
|
6387
|
+
* major version is expected to flip the default to `'value'`, since emitting
|
|
6388
|
+
* the scalar matches the convention of most component libraries (MUI, Ant
|
|
6389
|
+
* Design, Vuetify, Element) and avoids the "[object Object]" / stale-option
|
|
6390
|
+
* class of bug in form contexts.
|
|
6391
|
+
*/
|
|
6392
|
+
this.valueAs = 'option';
|
|
6276
6393
|
this.showClearButton = false;
|
|
6277
6394
|
/**
|
|
6278
6395
|
* Tracks the current selection so the overlay works uncontrolled.
|
|
@@ -6347,7 +6464,7 @@ const UdpFluentDropdown = class {
|
|
|
6347
6464
|
}
|
|
6348
6465
|
this.selectionForOverlay = currentValues;
|
|
6349
6466
|
this.showClearButton = currentValues.length > 0;
|
|
6350
|
-
this.valueChanged.emit(currentValues);
|
|
6467
|
+
this.valueChanged.emit(currentValues.map(v => this.toEmitValue(v)));
|
|
6351
6468
|
ev.preventDefault();
|
|
6352
6469
|
ev.stopPropagation();
|
|
6353
6470
|
}
|
|
@@ -6402,7 +6519,7 @@ const UdpFluentDropdown = class {
|
|
|
6402
6519
|
const originalOption = this.findOptionByValue(option.value);
|
|
6403
6520
|
return originalOption !== undefined ? originalOption : option.value;
|
|
6404
6521
|
});
|
|
6405
|
-
this.valueChanged.emit(values);
|
|
6522
|
+
this.valueChanged.emit(values.map(v => this.toEmitValue(v)));
|
|
6406
6523
|
this.showClearButton = values.length > 0;
|
|
6407
6524
|
this.selectionForOverlay = values;
|
|
6408
6525
|
}
|
|
@@ -6410,7 +6527,7 @@ const UdpFluentDropdown = class {
|
|
|
6410
6527
|
const val = this.dropdownRef.value;
|
|
6411
6528
|
const originalOption = this.findOptionByValue(val);
|
|
6412
6529
|
const emitValue = originalOption !== undefined ? originalOption : val;
|
|
6413
|
-
this.valueChanged.emit(emitValue);
|
|
6530
|
+
this.valueChanged.emit(this.toEmitValue(emitValue));
|
|
6414
6531
|
this.showClearButton = val != null;
|
|
6415
6532
|
this.selectionForOverlay = emitValue;
|
|
6416
6533
|
}
|
|
@@ -6511,6 +6628,17 @@ const UdpFluentDropdown = class {
|
|
|
6511
6628
|
var _a;
|
|
6512
6629
|
return (_a = this.options) === null || _a === void 0 ? void 0 : _a.find(opt => this.getOptionValue(opt) === value);
|
|
6513
6630
|
}
|
|
6631
|
+
/**
|
|
6632
|
+
* Maps a single internal selection entry (option object or primitive) to the
|
|
6633
|
+
* shape `valueChanged` should emit, per `valueAs`. In `'value'` mode this
|
|
6634
|
+
* resolves the scalar via `optionValue`; in `'option'` mode it passes the
|
|
6635
|
+
* entry through unchanged. Callers map this over the array in multi-select.
|
|
6636
|
+
* Internal state (`selectionForOverlay`) keeps the option objects regardless,
|
|
6637
|
+
* so the selected-value overlay renders the same in both modes.
|
|
6638
|
+
*/
|
|
6639
|
+
toEmitValue(selection) {
|
|
6640
|
+
return this.valueAs === 'value' ? this.getOptionValue(selection) : selection;
|
|
6641
|
+
}
|
|
6514
6642
|
getValuesAsArray() {
|
|
6515
6643
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
6516
6644
|
if (Array.isArray(this.value))
|
|
@@ -6568,15 +6696,15 @@ const UdpFluentDropdown = class {
|
|
|
6568
6696
|
const overlayOptions = this.getSelectedOverlayOptions();
|
|
6569
6697
|
const hasOverlay = overlayOptions.length > 0;
|
|
6570
6698
|
const mappedAppearance = this.appearance === 'underline' ? 'transparent' : this.appearance;
|
|
6571
|
-
return (h(Host, { key: '
|
|
6699
|
+
return (h(Host, { key: '2739e491826ba8d094f3ecc454c888d4815f0bc9', class: { 'has-error': hasError } }, h("fluent-field", { key: '49d9f2af0b1b490ba19cb8ffd76f9e81d80d40e4', class: {
|
|
6572
6700
|
'no-message': !message && !this.includeErrorPadding,
|
|
6573
6701
|
'no-label': !this.label,
|
|
6574
|
-
} }, this.label && (h("fluent-label", { key: '
|
|
6702
|
+
} }, this.label && (h("fluent-label", { key: 'db3f23065b207e958f1885a93f3f9c3607c32c18', slot: "label", disabled: this.disabled, onClick: () => this.handleTogglePopover(false), style: { paddingTop: '2px', paddingBottom: '2px' } }, this.label, this.popupHint && (h("udp-tooltip", { key: 'cd9957075c3688082d4b21046b77265bbe8e77b3', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: '0198aed441b9c9a1776f0fa3d6d8c4c56b08fe37', name: "info", size: "xs", class: "popup-hint-icon" }))))), h("div", { key: 'c2ada338eda46b6c44d3c8bd03e370e08d79df1c', slot: "input", class: {
|
|
6575
6703
|
'input-wrapper': true,
|
|
6576
6704
|
'has-overlay': hasOverlay,
|
|
6577
|
-
} }, h("fluent-dropdown", { key: '
|
|
6705
|
+
} }, 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(),
|
|
6578
6706
|
// Suppress native invalid popup
|
|
6579
|
-
onInvalid: (e) => e.preventDefault(), ref: el => (this.dropdownRef = el) }, h("fluent-listbox", { key: '
|
|
6707
|
+
onInvalid: (e) => e.preventDefault(), ref: el => (this.dropdownRef = el) }, h("fluent-listbox", { key: '648c741cf3f5676f0048e22afe355626cf8f0cb4' }, this.loading && (h("fluent-option", { key: '1dd8f2d7b137c0921bb6393489604fef65b88b63', disabled: true, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', true) }, h("span", { key: '1cd40a943df80a3e4e32279939451f2a884fa611' }, "Loading..."), h("span", { key: 'b00ec9c25a83e8ca28c4a7c350750e07cc323d00', slot: "indicator" }))), !this.loading && ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) === 0 && (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 &&
|
|
6580
6708
|
((_b = this.options) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
|
6581
6709
|
(() => {
|
|
6582
6710
|
const nodes = [];
|
|
@@ -6596,17 +6724,17 @@ const UdpFluentDropdown = class {
|
|
|
6596
6724
|
nodes.push(h("fluent-option", { key: index, disabled: !!optDisabled, value: safeValue, ref: (el) => el === null || el === void 0 ? void 0 : el.toggleAttribute('disabled', !!optDisabled) }, optIcon && this.iconPosition === 'start' && (h("span", { slot: "start", class: "option-icon-slot" }, h("udp-fluent-icon", { name: optIcon, size: "sm" }))), optLabel, optIcon && this.iconPosition === 'end' && (h("span", { class: "option-icon-end", style: { pointerEvents: 'none', marginLeft: '4px' } }, h("udp-fluent-icon", { name: optIcon, size: "sm" }))), this.renderBadges(optBadges)));
|
|
6597
6725
|
});
|
|
6598
6726
|
return nodes;
|
|
6599
|
-
})()), h("div", { key: '
|
|
6727
|
+
})()), h("div", { key: '759461d74da6528e4b33be11cc4a3b80c8f80789', slot: "indicator", class: "indicator-wrapper" }, h("udp-fluent-icon-button", { key: '7f43ab70441f994632c89fec4f42772a679fe423', class: {
|
|
6600
6728
|
'clear-button': true,
|
|
6601
6729
|
'is-visible': this.showClearButton && !this.disabled && this.clearable,
|
|
6602
|
-
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), h("udp-fluent-icon", { key: '
|
|
6730
|
+
}, slot: "indicator", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), h("udp-fluent-icon", { key: '59f53079ac480470026413b158154e5e3e4ca505', name: "chevron-down", size: "sm", class: "chevron-down", onClick: (ev) => {
|
|
6603
6731
|
// stopPropagation: fluent's clickHandler would re-open via its `!this.open → showPopover` branch.
|
|
6604
6732
|
ev.stopPropagation();
|
|
6605
6733
|
this.handleTogglePopover(false);
|
|
6606
|
-
} }))), hasOverlay && (h("div", { key: '
|
|
6734
|
+
} }))), hasOverlay && (h("div", { key: '9f2c12555d194f036e0a81618cb2ae77a595eac0', class: { 'selected-overlay': true, 'multi': overlayOptions.length > 1 }, "aria-hidden": "true" }, overlayOptions.map((opt, i) => (h("span", { class: "selected-item", key: this.getOptionValue(opt) || i }, i > 0 && h("span", { class: "selected-separator" }, ", "), h("span", { class: "selected-label" }, this.resolveProp(opt, this.optionLabel, true)), this.renderBadges(this.getOptionBadges(opt)))))))), h("div", { key: 'f336e3cc721c256dae4de0da6e05f87ca3455c43', class: {
|
|
6607
6735
|
'message-wrapper': true,
|
|
6608
6736
|
'includeErrorPadding': this.includeErrorPadding,
|
|
6609
|
-
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, h("udp-text", { key: '
|
|
6737
|
+
}, slot: "message", onClick: () => this.handleTogglePopover(true) }, h("udp-text", { key: 'bf2bc3358bee4302fc663d0a06edf61eb4a11f13', variant: "caption1", class: {
|
|
6610
6738
|
message: true,
|
|
6611
6739
|
error: hasError,
|
|
6612
6740
|
} }, message)))));
|
|
@@ -6895,7 +7023,7 @@ const UdpFluentIconButton = class {
|
|
|
6895
7023
|
const hoverActive = this.fillOnHover && this.isHovered;
|
|
6896
7024
|
const effectiveVariant = hoverActive ? 'filled' : this.iconVariant;
|
|
6897
7025
|
const effectiveColor = hoverActive ? 'var(--colorBrandForeground1)' : this.iconColor;
|
|
6898
|
-
return (h(Host, { key: '
|
|
7026
|
+
return (h(Host, { key: '0cb2fc447a4c7f3114fed7a760ce398fd067b9b6', exportparts: "button", onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false) }, 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 }, h("udp-fluent-icon", { key: '07f3ba0b0cec8064fc23504d895d0ddad14ae7ba', name: this.iconName, size: getIconSize(this.size, 'standard'), variant: effectiveVariant, color: effectiveColor }))));
|
|
6899
7027
|
}
|
|
6900
7028
|
};
|
|
6901
7029
|
UdpFluentIconButton.style = udpFluentIconButtonCss();
|
|
@@ -7154,7 +7282,7 @@ const UdpFluentRadioGroup = class {
|
|
|
7154
7282
|
var _a;
|
|
7155
7283
|
const hasError = !!this.error;
|
|
7156
7284
|
const message = this.error || this.hint;
|
|
7157
|
-
return (h(Host, { key: '
|
|
7285
|
+
return (h(Host, { key: '310105e91fd86663ac9db8daa7305f8c6dff9c27' }, h("fluent-field", { key: '88ac237d7e1f5700dec8be7f18ef057bc611f7db', "label-position": "above", class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, h("fluent-label", { key: '1911ee90e0bf02780ddeb1ceec4d57d7c7c03170', slot: "label", disabled: this.disabled }, this.label, this.popupHint && (h("udp-tooltip", { key: 'a917bcd2e9b5c583dfc1c2f582b21966dc1da1ff', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: '149612a75db4b940228b65a45fcb398fe388dade', name: "info", size: "xs", class: "popup-hint-icon" })))), 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 => (h("fluent-field", { "label-position": "after" }, h("fluent-label", { slot: "label", onClick: () => this.handleLabelClick(item.value, item.disabled) }, item.label), h("fluent-radio", { slot: "input", value: item.value, disabled: item.disabled, ref: (el) => this.radioRefs.set(item.value, el) }))))), h("udp-text", { key: '2902bac054f7096a946566bc494ef7783a958406', slot: "message", variant: "caption1", class: {
|
|
7158
7286
|
message: true,
|
|
7159
7287
|
error: hasError,
|
|
7160
7288
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -7207,7 +7335,7 @@ const UdpFluentSwitch = class {
|
|
|
7207
7335
|
render() {
|
|
7208
7336
|
const hasError = !!this.error;
|
|
7209
7337
|
const message = this.error || this.hint;
|
|
7210
|
-
return (h(Host, { key: '
|
|
7338
|
+
return (h(Host, { key: '91c654669e6e08d366b438d82ce2f56e7c56fdce' }, h("fluent-field", { key: '65cbfc5e391cc5c7fbce3eabd4e3ec2d5fe89f18', "label-position": this.labelPosition, class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, h("fluent-label", { key: 'e6668f04f88cbcb7c5bb4b7073b00adfb0acc74e', slot: "label", onClick: this.handleLabelClick }, this.label, this.popupHint && (h("udp-tooltip", { key: '1978ceaaab8a8306f8a81a01d55445dd6f8c8652', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: 'd3e7c25477403f90921af5f0e0e4ee48f093af01', name: "info", size: "xs", class: "popup-hint-icon" })))), h("fluent-switch", { key: '9b006bf50ce4589b4a7bc3703d347cb000a8ce34', slot: "input", name: this.name, checked: this.checked, disabled: this.disabled, onChange: this.handleChange, ref: (el) => (this.internalSwitch = el) }), h("udp-text", { key: '2968daf18e49a4c1fb62beee787371afd05440cd', slot: "message", variant: "caption1", class: {
|
|
7211
7339
|
message: true,
|
|
7212
7340
|
error: hasError,
|
|
7213
7341
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -7217,7 +7345,7 @@ const UdpFluentSwitch = class {
|
|
|
7217
7345
|
};
|
|
7218
7346
|
UdpFluentSwitch.style = udpFluentSwitchCss();
|
|
7219
7347
|
|
|
7220
|
-
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:
|
|
7348
|
+
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}`;
|
|
7221
7349
|
|
|
7222
7350
|
const UdpFluentTablist = class {
|
|
7223
7351
|
constructor(hostRef) {
|
|
@@ -7577,11 +7705,11 @@ const UdpFluentTextInput = class {
|
|
|
7577
7705
|
const hasError = !!this.error;
|
|
7578
7706
|
const message = this.error || this.hint;
|
|
7579
7707
|
const noMessage = !message && !this.includeErrorPadding;
|
|
7580
|
-
return (h(Host, { key: '
|
|
7708
|
+
return (h(Host, { key: '83e92ed8f16c3051a0ca726e81ff4a51550984ad', class: { 'has-error': hasError } }, h("fluent-field", { key: '9fbcdf450ab82e2850f31e1f4660b56f9d7fce5a', class: { 'no-message': noMessage } }, 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,
|
|
7581
7709
|
// Events
|
|
7582
7710
|
onInput: this.handleInput, onBlur: () => this.inputBlur.emit(), onFocus: () => this.inputFocus.emit(),
|
|
7583
7711
|
// Suppress native invalid popup
|
|
7584
|
-
onInvalid: (e) => e.preventDefault() }, h("slot", { key: '
|
|
7712
|
+
onInvalid: (e) => e.preventDefault() }, h("slot", { key: '06db34c98acda08ce3bbc6069d9b00c345c665fb', slot: "start", name: "start" }), h("slot", { key: '3ca5e0ed49dc7f92bc0a1b22795982f6d3d2059c', slot: "end", name: "end" }), this.label && (h("fluent-label", { key: 'ce228830fc9a6bb7e2143c585e98a829dbc6fc9e', required: this.required, disabled: this.disabled }, this.label, this.popupHint && (h("udp-tooltip", { key: 'e806bdc4d058a67039c649e5a65b47c41f46e23e', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: 'bee18eb447ee5a2c9348e26df0f8885114d0f300', name: "info", size: "xs", class: "popup-hint-icon" })))))), h("udp-text", { key: '695e97d2aa86e70d8b188a26285bff1deb69d2fc', slot: "message", variant: "caption1", class: {
|
|
7585
7713
|
message: true,
|
|
7586
7714
|
error: hasError,
|
|
7587
7715
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -7623,7 +7751,7 @@ const UdpFluentToggleButton = class {
|
|
|
7623
7751
|
}
|
|
7624
7752
|
render() {
|
|
7625
7753
|
const iconSize = getIconSize(this.size);
|
|
7626
|
-
return (h(Host, { key: '
|
|
7754
|
+
return (h(Host, { key: '7063ff374b0be78469d61a5cd0702a763b2226a9' }, 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 || hasSlotContent(this.el, 'start')) && (h("span", { key: '4977733f57427a16f67a6930cd60ed6da765e84e', class: "slot-wrapper", slot: "start" }, h("slot", { key: 'adda33214afc7987dd9a26b521a23945a52b71fb', name: "start" }, this.startIconName && (h("udp-fluent-icon", { key: '3a1458c1e97f523f915d0dbb382468d0450809fd', name: this.startIconName, size: iconSize }))))), h("slot", { key: 'bf0d94afe5284b9604fcdb6b76ded71cf54566e0' }), (this.endIconName || hasSlotContent(this.el, 'end')) && (h("span", { key: '2b1de85e37bb2afca1e11d55e3142d75052c5eef', class: "slot-wrapper", slot: "end" }, h("slot", { key: 'd0e28a78465274173dfbbc48626236008e612d32', name: "end" }, this.endIconName && h("udp-fluent-icon", { key: '311410f9cef7ccffb1af50bfe994e87297e2c25d', name: this.endIconName, size: iconSize })))))));
|
|
7627
7755
|
}
|
|
7628
7756
|
get el() { return getElement(this); }
|
|
7629
7757
|
};
|
|
@@ -7725,10 +7853,10 @@ const UdpFormComponent = class {
|
|
|
7725
7853
|
}
|
|
7726
7854
|
}
|
|
7727
7855
|
render() {
|
|
7728
|
-
return (h("form", { key: '
|
|
7856
|
+
return (h("form", { key: '7aa36000dfbc6b70f9e47a7d5767c134364995db', id: this.formId, noValidate: true, onSubmit: e => {
|
|
7729
7857
|
e.preventDefault();
|
|
7730
7858
|
void this.form.submit();
|
|
7731
|
-
} }, h("slot", { key: '
|
|
7859
|
+
} }, h("slot", { key: '3a84c27a4b9b0b277cb722c509010d2c886ca52c' })));
|
|
7732
7860
|
}
|
|
7733
7861
|
get el() { return getElement(this); }
|
|
7734
7862
|
static get watchers() { return {
|
|
@@ -7836,7 +7964,7 @@ const UdpLazyLoader = class {
|
|
|
7836
7964
|
}
|
|
7837
7965
|
}
|
|
7838
7966
|
render() {
|
|
7839
|
-
return h(Host, { key: '
|
|
7967
|
+
return h(Host, { key: 'd93d224698a89a86e2ab1778bdabe82925428f2b' }, this.shouldRender && this.content ? this.content() : null);
|
|
7840
7968
|
}
|
|
7841
7969
|
static get watchers() { return {
|
|
7842
7970
|
"if": [{
|
|
@@ -7860,7 +7988,7 @@ const UdpLinearLoader = class {
|
|
|
7860
7988
|
loader: true,
|
|
7861
7989
|
[`loader--color-${this.color}`]: true,
|
|
7862
7990
|
};
|
|
7863
|
-
return (h(Host, { key: '
|
|
7991
|
+
return (h(Host, { key: '761a94eebc2e9c8805fa82cc61c4a76668f5015b' }, h("div", { key: 'ab746cfda51c4c64191a91cf9ac7e54dd27b3a2e', class: loaderClasses }, h("div", { key: '4c08ea0a28de807b3836b832bcca9f0557db3804', class: "indeterminate" }))));
|
|
7864
7992
|
}
|
|
7865
7993
|
};
|
|
7866
7994
|
UdpLinearLoader.style = udpLinearLoaderCss();
|
|
@@ -7919,11 +8047,11 @@ const UdpListRenderer = class {
|
|
|
7919
8047
|
render() {
|
|
7920
8048
|
const showPrimaryText = this.primaryText || this.hasPrimaryTextSlot;
|
|
7921
8049
|
const showSecondaryText = this.secondaryText || this.hasSecondaryTextSlot;
|
|
7922
|
-
return (h(Host, { key: '
|
|
8050
|
+
return (h(Host, { key: '38b8402037018050b955dfdd1b10d8dc050db57a' }, h("div", { key: 'db06e7c9c2404c512dab266f00cf20ff4cbdca64', class: {
|
|
7923
8051
|
'list-item': true,
|
|
7924
8052
|
'clickable': this.clickable,
|
|
7925
8053
|
'variant-compact': this.variant === 'compact',
|
|
7926
|
-
}, onClick: this.handleClick, onKeyPress: this.handleKeyPress, role: this.clickable ? 'button' : undefined, tabindex: this.clickable ? 0 : -1 }, this.iconName && (h("div", { key: '
|
|
8054
|
+
}, onClick: this.handleClick, onKeyPress: this.handleKeyPress, role: this.clickable ? 'button' : undefined, tabindex: this.clickable ? 0 : -1 }, this.iconName && (h("div", { key: '5638e84985d9f200e7f69d918ea10b14f88eaec6', class: "avatar-container" }, h("udp-avatar", { key: '6d51c030025482eeeaa269eca7938f7ffa406d93', iconName: this.iconName, variant: this.avatarVariant, color: this.avatarBackgroundColor }))), h("div", { key: '799b85e83c00ab20c4d1ee186aa6ce831c818d27', class: "text-container" }, showPrimaryText && (h("div", { key: 'b98a0096aba1767d4775f377cef302583d980cc9', class: "primary-text" }, h("slot", { key: '212d09710969f9bb35d0d464a5fb7059aa6a651e', name: "primary-text" }, h("unity-typography", { key: 'a8232e206e5d720e97779f150c39ca068c456ec7', variant: "body" }, this.primaryText)))), showSecondaryText && (h("div", { key: 'e9f2a85b108cc2cbbcae8be90a18bf41a8ab177f', class: "secondary-text" }, h("slot", { key: '4fad8114d2af181df09f111fbebfc3a9f8c3ae0e', name: "secondary-text" }, h("unity-typography", { key: '04c8bbfba3705679dcf08962737b8726a182c890', variant: "caption-text", color: "textSecondary" }, this.secondaryText))))), this.hasStatusChipSlot && (h("div", { key: '85c7190bebe53677d9cbe0eb9d529e50e0a9586c', class: "status-chip-container" }, h("slot", { key: 'e04bc7b9fc83f88910a8d87b2c0982021dd88cf2', name: "status-chip" }))), this.hasActionsSlot && (h("div", { key: '94c532b6238ed87709069828e9800fab2230918c', class: "actions-container" }, h("slot", { key: '80fe2b1653b00ed5061c1c13e861bc0fa1b96f74', name: "actions" }))))));
|
|
7927
8055
|
}
|
|
7928
8056
|
get hostEl() { return getElement(this); }
|
|
7929
8057
|
};
|
|
@@ -7945,7 +8073,7 @@ const UdpMenuItem = class {
|
|
|
7945
8073
|
};
|
|
7946
8074
|
}
|
|
7947
8075
|
render() {
|
|
7948
|
-
return (h("button", { key: '
|
|
8076
|
+
return (h("button", { key: 'b26afc2ab755b1b71822b89208e5d45f0733787f', class: "menu-item-root", onClick: this.handleItemClick, disabled: this.disabled, role: "menuitem" }, this.iconName && h("udp-icon", { key: '214be4eabb71a7cf8d3eeec8151ae381012a8e79', iconName: this.iconName, class: "menu-icon" }), h("span", { key: '8604d5cc4d0f3cb5233c06a8408beaf1da98c590', class: "menu-item-label" }, h("unity-typography", { key: '6f9352bd35d5cb919968ac7836b77f52b5de0f82', variant: 'body1' }, this.label))));
|
|
7949
8077
|
}
|
|
7950
8078
|
};
|
|
7951
8079
|
UdpMenuItem.style = udpMenuItemCss();
|
|
@@ -7975,7 +8103,7 @@ const UdpMessageBar = class {
|
|
|
7975
8103
|
};
|
|
7976
8104
|
}
|
|
7977
8105
|
render() {
|
|
7978
|
-
return (h(Host, { key: '
|
|
8106
|
+
return (h(Host, { key: '84eb625214dc77c60004a0a44d4d57242e1f44a9' }, h("fluent-message-bar", { key: '62497532a0ffeff30ce08693b91794ecc09c4dc2', shape: this.shape, layout: this.layout, intent: this.intent }, h("udp-flexbox", { key: '1208b31ee665592212c6cb48410cdbfa798b2455', direction: "row", gap: "sm", slot: "actions" }, h("slot", { key: '257a8c42983d8a12e27cd0deb2634c1f2a0180d2', name: "actions" })), this.dismissible ? (h("udp-fluent-icon-button", { slot: "dismiss", appearance: "subtle", iconName: "dismiss", "aria-label": "Dismiss", onClick: this.handleDismissClick })) : (h("slot", { name: "dismiss", slot: "dismiss" })), h("slot", { key: 'a072d93e6d19f01a44dc62b9024490cb102c749f', name: "icon", slot: "icon" }), h("slot", { key: '55ea279fe5b7d247c9fbe37fe06068a342d6667e' }))));
|
|
7979
8107
|
}
|
|
7980
8108
|
};
|
|
7981
8109
|
|
|
@@ -8095,7 +8223,7 @@ const UdpPopOver = class {
|
|
|
8095
8223
|
maxHeight: this.popoverMaxHeight,
|
|
8096
8224
|
overflow: this.overflow
|
|
8097
8225
|
};
|
|
8098
|
-
return (h(Host, { key: '
|
|
8226
|
+
return (h(Host, { key: 'd1dcfc4885536250c52af3e6b05371a7a9fd24d0' }, h("div", { key: 'c4a0946facfb54a99974e74fb70935ccdcc4fba9', class: "popover", style: style }, h("slot", { key: '8b76a9950358a1e5305af4aded8e29b0a927223f' }))));
|
|
8099
8227
|
}
|
|
8100
8228
|
get hostEl() { return getElement(this); }
|
|
8101
8229
|
static get watchers() { return {
|
|
@@ -8729,7 +8857,7 @@ const UdpProgressBar = class {
|
|
|
8729
8857
|
this.validationState = 'info';
|
|
8730
8858
|
}
|
|
8731
8859
|
render() {
|
|
8732
|
-
return (h(Host, { key: '
|
|
8860
|
+
return (h(Host, { key: '0948de54e61747c0fc87ad8467391d475a8937b8' }, 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 })));
|
|
8733
8861
|
}
|
|
8734
8862
|
};
|
|
8735
8863
|
|
|
@@ -8805,14 +8933,14 @@ const UdpSearchInput = class {
|
|
|
8805
8933
|
render() {
|
|
8806
8934
|
const hasError = !!this.error;
|
|
8807
8935
|
const message = this.error || this.hint;
|
|
8808
|
-
return (h(Host, { key: '
|
|
8936
|
+
return (h(Host, { key: 'c0ad7e57ba5f4a9eda2ce854c778ba559a0ab4c6', class: { 'has-error': hasError } }, h("fluent-field", { key: 'e8b058e088387a5c1b970d2a0c37515829c29789', class: { 'no-message': !message && !this.includeErrorPadding } }, 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,
|
|
8809
8937
|
// Events
|
|
8810
8938
|
onInput: this.handleInput, onBlur: () => this.inputBlur.emit(), onFocus: () => this.inputFocus.emit(),
|
|
8811
8939
|
// Suppress native invalid popup
|
|
8812
|
-
onInvalid: (e) => e.preventDefault() }, h("slot", { key: '
|
|
8940
|
+
onInvalid: (e) => e.preventDefault() }, h("slot", { key: 'e286143785d07aed1ecbb7ae7aacc6185f3967da', slot: "start", name: "start" }, h("udp-fluent-icon", { key: '4ffcfbb08de2f19e78efa2b2654ea74ebf401a2a', name: "search", size: "xs" })), h("udp-fluent-icon-button", { key: '6271fb0be37b314c2a7ef01777e790cdfde4aafd', class: {
|
|
8813
8941
|
'clear-button': true,
|
|
8814
8942
|
'is-visible': !!this.internalValue && !this.disabled && !this.readonly,
|
|
8815
|
-
}, slot: "end", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), this.label && (h("fluent-label", { key: '
|
|
8943
|
+
}, slot: "end", iconName: "dismiss", appearance: "transparent", size: "small", onClick: this.handleClear, onMouseDown: e => e.preventDefault(), ariaLabel: "Clear", tabIndex: -1 }), this.label && (h("fluent-label", { key: '76c6d879ab5081ebb682fb673ae4cc17cfed843d', required: this.required, disabled: this.disabled }, this.label, this.popupHint && (h("udp-tooltip", { key: 'e9458ccc073f21a35e708913d01247b1cde0b4f7', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: 'e01470ae5dd057c2fd3f327269a8434669af0027', name: "info", size: "xs", class: "popup-hint-icon" })))))), (!!message || this.includeErrorPadding) && (h("udp-text", { key: '04724c87df263e121eca183b1c3b4f15a9e7c34e', slot: "message", variant: "caption1", class: {
|
|
8816
8944
|
message: true,
|
|
8817
8945
|
error: hasError,
|
|
8818
8946
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -9054,27 +9182,27 @@ const UdpSideSheet = class {
|
|
|
9054
9182
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9055
9183
|
const headerStartIcon = Boolean(this.headerActionButtonIcon) ? (h("udp-icon", { iconName: this.headerActionButtonIcon, color: "inherit" })) : undefined;
|
|
9056
9184
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9057
|
-
const overflowIcon = h("udp-icon", { key: '
|
|
9058
|
-
return (h("div", { key: '
|
|
9185
|
+
const overflowIcon = h("udp-icon", { key: '114fb6c9c7672ed0c8e0350d35fcaafc5e90fc9d', iconName: "overflowMenuVertical", color: "inherit" });
|
|
9186
|
+
return (h("div", { key: '36c5d92ff2dfe298b600c15a973e05b4e03ef612', class: "backdrop", onClick: this.onCloseBackdrop }, h("div", { key: 'c0d84cde7128de85fd492c8c4002fcef0c65571c', class: { sheet: true, [this.position]: true, [widthClass]: true }, style: sideSheetStyle }, h("div", { key: '91c2ae473b6158d0671fda0f8e89e993b239f659', class: "title-container" }, h("div", { key: '277dd337d923754dd50a8f671498717cf2208f3e', class: "close-button" }, h("stencil-icon-button", { key: '56ad80ad182e482cdfc8b786f99b6962354487de',
|
|
9059
9187
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9060
|
-
icon: Close24, onClick: this.onClose, secondary: true })), h("div", { key: '
|
|
9061
|
-
_b.map((item) => (h("udp-button", { variant: "outlined", disabled: item.disabled, onClick: item.onClick, endIcon: item.icon }, item.label))), this.headerActionButtonLabel && (h("udp-button", { key: '
|
|
9188
|
+
icon: Close24, onClick: this.onClose, secondary: true })), h("div", { key: 'ec6288c444babe7cd43b9fa107aa914b7af1a0c0', class: "title-text" }, h("unity-typography", { key: '9a7f020155a46e9258f8c21afe3f41d6df4b60f2', variant: "h6" }, this.title)), (this.headerActionButtonLabel || ((_a = this.headerSecondaryButtons) === null || _a === void 0 ? void 0 : _a.length) > 0) && (h("div", { key: '87d81014638a9229a195ffbf9f982307db2c13ef', class: "header-action-button" }, (_b = this.headerSecondaryButtons) === null || _b === void 0 ? void 0 :
|
|
9189
|
+
_b.map((item) => (h("udp-button", { variant: "outlined", disabled: item.disabled, onClick: item.onClick, endIcon: item.icon }, item.label))), this.headerActionButtonLabel && (h("udp-button", { key: '7b53fad664ba84d8eeeb2893d18085decdc635d9', disabled: this.headerActionButtonDisabled, onClick: this.onHeaderActionButtonClick,
|
|
9062
9190
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9063
|
-
startIcon: headerStartIcon, variant: "contained" }, this.headerActionButtonLabel))))), h("div", { key: '
|
|
9191
|
+
startIcon: headerStartIcon, variant: "contained" }, this.headerActionButtonLabel))))), h("div", { key: '47a68f2b5d8a94709249b8d90a2ca67542d76e4a', class: "loader-container" }, h("udp-linear-loader", { key: '9ec156c748a5faceb4de0db2ca87ef2490294aa2', class: { 'is-loading': this.loading }, color: "primary" })), h("div", { key: '17e9cda2a7d3709f4bb6043c62165efb0685308e', class: { content: true, padding: this.padding } }, h("slot", { key: '43e24e734199f3bae197752b6d284e40a0af84dc' })), (this.primaryButtonLabel || ((_c = this.footerSecondaryButtons) === null || _c === void 0 ? void 0 : _c.length) > 0) && (h("div", { key: '5b5c4916c753d4cf9f87c31d929d163fc96cefd9' }, h("div", { key: '6866f082dcd22d831cf938b7749baa40860badf0', class: "loader-container" }), h("div", { key: '779dcc447ed0f2d8e6fdc7c54d6c8d9f424b6028', class: {
|
|
9064
9192
|
footer: true,
|
|
9065
|
-
}, ref: el => (this.footerRef = el) }, !this.showOverflowButton && ((_d = this.footerSecondaryButtons) === null || _d === void 0 ? void 0 : _d.length) > 0 && (h("div", { key: '
|
|
9193
|
+
}, ref: el => (this.footerRef = el) }, !this.showOverflowButton && ((_d = this.footerSecondaryButtons) === null || _d === void 0 ? void 0 : _d.length) > 0 && (h("div", { key: 'd06b60b390d1a71fa363a2154eafb9061fb3bebd', class: "footer-secondary-buttons-container" }, h("div", { key: 'eefa3e4c23c680817567e9cafc6aadfd88671151', class: "footer-secondary-buttons" }, (_e = this.footerSecondaryButtons) === null || _e === void 0 ? void 0 : _e.map((item) => (h("udp-button", { variant: "outlined", disabled: item.disabled, onClick: item.onClick, endIcon: item.icon }, item.label)))))), this.showOverflowButton && (h("udp-button", { key: 'aa5fe72411ecbc3a9b13a104dc2b56fc0992b3c2', variant: "outlined", onClick: this.onMoreActionButtonClick, color: "secondary",
|
|
9066
9194
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
9067
|
-
endIcon: overflowIcon }, "More")), this.primaryButtonLabel && (h("udp-button", { key: '
|
|
9195
|
+
endIcon: overflowIcon }, "More")), this.primaryButtonLabel && (h("udp-button", { key: 'caefbeae9aa3a1bc103b36014d21654fc5463c74', variant: "contained", disabled: this.primaryButtonDisabled, onClick: this.onPrimaryButtonClick, endIcon: this.primaryButtonIcon }, this.primaryButtonLabel)), this.showOverflowButton && (h("udp-pop-over", { key: '887bc8092861206af6bb4dabcfeaf2dd1b3fdb3b', anchorElement: this.overflowMenuAnchor, isOpen: this.openOverflowMenu, popoverWidth: '200px', popoverMaxHeight: '300px', handleOnClose: this.handleCloseOverflowMenu }, h("div", { key: 'd0178781341edf03446cc3fb51caf92c20559c01', class: "menu" }, (_f = this.footerSecondaryButtons) === null || _f === void 0 ? void 0 : _f.map(item => (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: () => {
|
|
9068
9196
|
item === null || item === void 0 ? void 0 : item.onClick();
|
|
9069
9197
|
this.handleCloseOverflowMenu();
|
|
9070
|
-
}, disabled: item === null || item === void 0 ? void 0 : item.disabled })))))), h("div", { key: '
|
|
9198
|
+
}, disabled: item === null || item === void 0 ? void 0 : item.disabled })))))), h("div", { key: '4bee880fe9710a26eb03b074ef35bb7f75802c96', ref: el => (this.measurementContainerRef = el), style: {
|
|
9071
9199
|
position: 'absolute',
|
|
9072
9200
|
visibility: 'hidden',
|
|
9073
9201
|
pointerEvents: 'none',
|
|
9074
9202
|
display: 'flex',
|
|
9075
9203
|
gap: 'var(--spacing-02, 4px)',
|
|
9076
9204
|
}, "aria-hidden": "true" }, (_g = this.footerSecondaryButtons) === null || _g === void 0 ? void 0 :
|
|
9077
|
-
_g.map((item) => (h("udp-button", { variant: "text", size: "medium", disabled: item.disabled, endIcon: item.icon }, item.label))), this.primaryButtonLabel && (h("udp-button", { key: '
|
|
9205
|
+
_g.map((item) => (h("udp-button", { variant: "text", size: "medium", disabled: item.disabled, endIcon: item.icon }, item.label))), this.primaryButtonLabel && (h("udp-button", { key: 'bc6ddc8680666fee42ef35997bda54a3d895bc30', variant: "contained", size: "medium", disabled: this.primaryButtonDisabled, endIcon: this.primaryButtonIcon }, this.primaryButtonLabel)))))))));
|
|
9078
9206
|
}
|
|
9079
9207
|
get hostEl() { return getElement(this); }
|
|
9080
9208
|
static get watchers() { return {
|
|
@@ -9121,7 +9249,7 @@ const UdpSlider = class {
|
|
|
9121
9249
|
render() {
|
|
9122
9250
|
const hasError = !!this.error;
|
|
9123
9251
|
const message = this.error || this.hint;
|
|
9124
|
-
return (h(Host, { key: '
|
|
9252
|
+
return (h(Host, { key: '968e919a567381345434edbf781862a31dc91af3' }, h("fluent-field", { key: 'e86bf259ec53806c62aa0a0dcd61088088a80d91', "label-position": "above", class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, h("fluent-label", { key: 'e22647bd497fe52f2e393969e1443c20ea0f3a38', slot: "label", disabled: this.disabled }, this.label, this.popupHint && (h("udp-tooltip", { key: 'e9814f13f25e7c0a4aad486bf3b01dbae3a6453e', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: 'bc4ca6609a1cb4e245d2e80f1ef664bf0f885be7', name: "info", size: "xs", class: "popup-hint-icon" })))), 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 }), h("udp-text", { key: 'f16788b1ce17b13b2c98194324d66174d92b7369', slot: "message", variant: "caption1", class: {
|
|
9125
9253
|
message: true,
|
|
9126
9254
|
error: hasError,
|
|
9127
9255
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -9135,7 +9263,7 @@ const UdpSpinner = class {
|
|
|
9135
9263
|
registerInstance(this, hostRef);
|
|
9136
9264
|
}
|
|
9137
9265
|
render() {
|
|
9138
|
-
return (h(Host, { key: '
|
|
9266
|
+
return (h(Host, { key: 'b2ebebedd1f2d8dc407f468ed5be898f18be92c4' }, h("fluent-spinner", { key: 'd5ffa74b2face2f7ccba2cda261bee48abbbceb6', size: this.size, appearance: this.appearance })));
|
|
9139
9267
|
}
|
|
9140
9268
|
};
|
|
9141
9269
|
|
|
@@ -9401,7 +9529,7 @@ const UdpTabPanel = class {
|
|
|
9401
9529
|
}
|
|
9402
9530
|
render() {
|
|
9403
9531
|
const isActive = this.activeTabId === this.id;
|
|
9404
|
-
return (h(Host, { key: '
|
|
9532
|
+
return (h(Host, { key: '067b209fb2c85ef835fb236e1964f019e0c1266d', role: "tabpanel", "aria-labelledby": this.id, "aria-hidden": !isActive ? 'true' : 'false', hidden: !isActive }, h("slot", { key: 'a3c13914b547903978700e6304f68fa406190e3d' })));
|
|
9405
9533
|
}
|
|
9406
9534
|
static get delegatesFocus() { return true; }
|
|
9407
9535
|
};
|
|
@@ -9526,11 +9654,11 @@ const UdpTextarea = class {
|
|
|
9526
9654
|
render() {
|
|
9527
9655
|
const hasError = !!this.error;
|
|
9528
9656
|
const message = this.error || this.hint;
|
|
9529
|
-
return (h(Host, { key: '
|
|
9657
|
+
return (h(Host, { key: '77859e24a772df8c9be07c9b06b0cdd2515e0f7b', class: { 'has-error': hasError } }, h("fluent-field", { key: 'fa47373ad6ab9e226b98f2ff4353ef5dbf2e0b53', class: { 'no-label': !this.label, 'no-message': !message && !this.includeErrorPadding } }, 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,
|
|
9530
9658
|
// Events
|
|
9531
9659
|
onInput: this.handleInput, onBlur: () => this.inputBlur.emit(), onFocus: () => this.inputFocus.emit(),
|
|
9532
9660
|
// Suppress native invalid popup
|
|
9533
|
-
onInvalid: (e) => e.preventDefault() }), h("fluent-label", { key: '
|
|
9661
|
+
onInvalid: (e) => e.preventDefault() }), h("fluent-label", { key: '60dd872557b36cee9345bb9a5d7b823f613a156c', slot: "label", disabled: this.disabled }, this.label, this.popupHint && (h("udp-tooltip", { key: 'a6e9e0a150bf5c329338ac3036b654e43ec15960', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: '6c415371038d73c8c8f77db341b5b65484c69acf', name: "info", size: "xs", class: "popup-hint-icon" })))), h("udp-text", { key: 'e7da461e4f27239319db9f2d62b2b4d00de9eb46', slot: "message", variant: "caption1", class: {
|
|
9534
9662
|
message: true,
|
|
9535
9663
|
error: hasError,
|
|
9536
9664
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -10010,7 +10138,7 @@ const UdpTimeInput = class {
|
|
|
10010
10138
|
const effectiveError = this.internalError || this.error;
|
|
10011
10139
|
const hasError = !!effectiveError;
|
|
10012
10140
|
const message = effectiveError || this.hint;
|
|
10013
|
-
return (h(Host, { key: '
|
|
10141
|
+
return (h(Host, { key: '44d0689e7988d9a72fc1a9e322d348bcdac7bbed', class: { 'has-error': hasError } }, h("fluent-field", { key: 'deb61a054545c8fefe432414c3ee53979704cf35', class: { 'no-message': !message && !this.includeErrorPadding } }, h("udp-popover", { key: 'b83cfbd2db1c0454c6fa066f7f75e95143271a5c', slot: "input", open: this.isOpen, position: "bottom-start", toggleOnTriggerClick: false, matchTriggerWidth: true, onPopoverClose: this.handlePopoverClose }, 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 }, h("fluent-label", { key: 'f3dc0195ce785fc62bb35723c619a8996803e7cb', required: this.required, disabled: this.disabled, onMouseDown: this.handleLabelMouseDown }, this.label, this.popupHint && (h("udp-tooltip", { key: '03b5638ac5a585f976e94e36b6b59f42c16812b2', content: this.popupHint, positioning: "above" }, h("udp-fluent-icon", { key: '4e7f21d6b631214930e9aba8fb0ec46eb117d050', name: "info", size: "xs", class: "popup-hint-icon" })))), h("div", { key: 'bbe3485bf19a013b1ac9ae93a9528da270a4b5e2', slot: "end" }, h("udp-fluent-icon-button", { key: '46663269176388b61a586aa68bf237d3d74ac1d5', appearance: "transparent", iconName: "clock", disabled: this.disabled, tabindex: -1, onMouseDown: this.handleIconMouseDown, onClick: this.handleIconClick }))), h("div", { key: '55509c3c56fff966a1fc709e82f7788fd88659ea', slot: "content", class: "listbox-container" }, h("fluent-listbox", { key: '9afbeb89265f4a34fed387aaaa9a0b071341e3fc' }, this.timeOptions.map((option, index) => (h("fluent-option", { key: option.value, value: option.value, class: { active: index === this.activeIndex }, onClick: () => this.handleOptionClick(option) }, h("span", { slot: "checked-indicator" }), option.label)))))), h("udp-text", { key: '7aa55e4723dffd30df6b256e00496a1936fd6ce6', slot: "message", variant: "caption1", class: {
|
|
10014
10142
|
message: true,
|
|
10015
10143
|
error: hasError,
|
|
10016
10144
|
includeErrorPadding: this.includeErrorPadding,
|
|
@@ -10058,18 +10186,18 @@ const UdpTooltip = class {
|
|
|
10058
10186
|
render() {
|
|
10059
10187
|
// A stable, internal ID is safe because it is scoped to this Shadow Root
|
|
10060
10188
|
const anchorId = 'internal-anchor';
|
|
10061
|
-
return (h(Host, { key: '
|
|
10189
|
+
return (h(Host, { key: '0067d7a56b24d183eb0b91f931f2d19d01f2e5d6' }, h("div", { key: '60e0ce5333db01759dfc0fd7b56ce7b5dd4d9a29', id: anchorId, onFocusin: (e) => {
|
|
10062
10190
|
var _a, _b;
|
|
10063
10191
|
// Only show on keyboard-driven focus, not pointer clicks or programmatic focus restoration
|
|
10064
10192
|
if ((_a = e.target) === null || _a === void 0 ? void 0 : _a.matches(':focus-visible')) {
|
|
10065
10193
|
(_b = this.tooltipRef) === null || _b === void 0 ? void 0 : _b.showTooltip(0);
|
|
10066
10194
|
}
|
|
10067
|
-
}, onFocusout: () => { var _a; return (_a = this.tooltipRef) === null || _a === void 0 ? void 0 : _a.hideTooltip(0); } }, h("slot", { key: '
|
|
10195
|
+
}, onFocusout: () => { var _a; return (_a = this.tooltipRef) === null || _a === void 0 ? void 0 : _a.hideTooltip(0); } }, h("slot", { key: 'b6be513e4eb69604e26ddec26fdf4329164d21d8' })), h("fluent-tooltip", { key: '52c743de0edb443bea54e174cd76858777a9adce', ref: el => (this.tooltipRef = el), anchor: anchorId, delay: this.delay, positioning: this.positioning }, this.content)));
|
|
10068
10196
|
}
|
|
10069
10197
|
};
|
|
10070
10198
|
UdpTooltip.style = udpTooltipCss();
|
|
10071
10199
|
|
|
10072
|
-
const udpTreeCss = () => `:host{display:block}`;
|
|
10200
|
+
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)}`;
|
|
10073
10201
|
|
|
10074
10202
|
const UdpTree = class {
|
|
10075
10203
|
constructor(hostRef) {
|
|
@@ -10099,6 +10227,49 @@ const UdpTree = class {
|
|
|
10099
10227
|
* Path to the content property, or a function to generate the content (default slot).
|
|
10100
10228
|
*/
|
|
10101
10229
|
this.itemContent = 'label';
|
|
10230
|
+
/**
|
|
10231
|
+
* How a row click behaves:
|
|
10232
|
+
* - `'tree'` (default): native Fluent tree behavior — clicking a row toggles
|
|
10233
|
+
* its expansion and selects it; `itemClick` fires for the directly-clicked
|
|
10234
|
+
* row. Selection is managed internally by Fluent.
|
|
10235
|
+
* - `'button'`: rows act as buttons. A click anywhere on the row (icon, text,
|
|
10236
|
+
* aside) emits `itemClick` exactly once and stops there — no built-in
|
|
10237
|
+
* expand toggle and no internal selection. Pair with `selectedId` (for the
|
|
10238
|
+
* highlight) and `itemExpanded` (to control which parents are open).
|
|
10239
|
+
*/
|
|
10240
|
+
this.interaction = 'tree';
|
|
10241
|
+
/**
|
|
10242
|
+
* When `true`, parent rows get a disclosure chevron that toggles their
|
|
10243
|
+
* expansion, while the rest of the row keeps its normal click behavior.
|
|
10244
|
+
* Designed to pair with `interaction="button"`: clicking a row body still
|
|
10245
|
+
* emits `itemClick` (open details), but clicking the chevron only
|
|
10246
|
+
* expands/collapses that group — it neither selects the row nor emits
|
|
10247
|
+
* `itemClick`. Initial open/closed state is seeded from `itemExpanded`
|
|
10248
|
+
* (so a tree can render fully expanded on load); the user's subsequent
|
|
10249
|
+
* collapse/expand choices are owned internally and persist by id across
|
|
10250
|
+
* re-renders. No effect in `interaction="tree"` mode, where Fluent's native
|
|
10251
|
+
* row-click already toggles expansion.
|
|
10252
|
+
*/
|
|
10253
|
+
this.collapsible = false;
|
|
10254
|
+
/**
|
|
10255
|
+
* Per-id expansion overrides applied on top of the `itemExpanded` seed.
|
|
10256
|
+
* Empty until the user clicks a chevron; an entry means "the user set this
|
|
10257
|
+
* row's expansion explicitly." Keyed by resolved item id so the choice
|
|
10258
|
+
* survives `treeItems` edits (e.g. the builder re-flattening the form).
|
|
10259
|
+
*/
|
|
10260
|
+
this.expandedOverrides = {};
|
|
10261
|
+
}
|
|
10262
|
+
/** True when the click landed on a row's disclosure chevron `::part`. */
|
|
10263
|
+
isChevronClick(e) {
|
|
10264
|
+
return e.composedPath().some(el => el instanceof Element &&
|
|
10265
|
+
(el.getAttribute('part') === 'chevron' ||
|
|
10266
|
+
el.classList.contains('chevron') ||
|
|
10267
|
+
el.getAttribute('slot') === 'chevron'));
|
|
10268
|
+
}
|
|
10269
|
+
/** Flip the stored expansion for one row, seeding from its initial state. */
|
|
10270
|
+
toggleExpanded(id, initialExpanded) {
|
|
10271
|
+
const current = id in this.expandedOverrides ? this.expandedOverrides[id] : initialExpanded;
|
|
10272
|
+
this.expandedOverrides = Object.assign(Object.assign({}, this.expandedOverrides), { [id]: !current });
|
|
10102
10273
|
}
|
|
10103
10274
|
/**
|
|
10104
10275
|
* Flexible resolver to get data from the item
|
|
@@ -10121,6 +10292,38 @@ const UdpTree = class {
|
|
|
10121
10292
|
}
|
|
10122
10293
|
return undefined;
|
|
10123
10294
|
}
|
|
10295
|
+
/** Icon size that pairs with the tree's row size. */
|
|
10296
|
+
iconSizeForTree() {
|
|
10297
|
+
return this.size === 'small' ? 'sm' : 'md';
|
|
10298
|
+
}
|
|
10299
|
+
/** Start-slot icon from `itemIcon` (string name or `{ name, color?, size? }`). */
|
|
10300
|
+
renderItemIcon(item) {
|
|
10301
|
+
var _a;
|
|
10302
|
+
const resolved = this.resolveProp(item, this.itemIcon);
|
|
10303
|
+
if (!resolved)
|
|
10304
|
+
return null;
|
|
10305
|
+
const d = typeof resolved === 'string' ? { name: resolved } : resolved;
|
|
10306
|
+
if (!d || !d.name)
|
|
10307
|
+
return null;
|
|
10308
|
+
return h("udp-fluent-icon", { name: d.name, size: (_a = d.size) !== null && _a !== void 0 ? _a : this.iconSizeForTree(), color: d.color });
|
|
10309
|
+
}
|
|
10310
|
+
/** Start-slot avatar from `itemAvatar`. Wins over `itemIcon` when both resolve. */
|
|
10311
|
+
renderItemAvatar(item) {
|
|
10312
|
+
var _a, _b;
|
|
10313
|
+
const d = this.resolveProp(item, this.itemAvatar);
|
|
10314
|
+
if (!d || typeof d !== 'object')
|
|
10315
|
+
return null;
|
|
10316
|
+
return (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 }));
|
|
10317
|
+
}
|
|
10318
|
+
/** End-slot badge from `itemBadge` (scalar content, or a descriptor object). */
|
|
10319
|
+
renderItemBadge(item) {
|
|
10320
|
+
var _a, _b, _c;
|
|
10321
|
+
const resolved = this.resolveProp(item, this.itemBadge);
|
|
10322
|
+
if (resolved === null || resolved === undefined || resolved === '')
|
|
10323
|
+
return null;
|
|
10324
|
+
const d = typeof resolved === 'object' ? resolved : { content: resolved };
|
|
10325
|
+
return (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));
|
|
10326
|
+
}
|
|
10124
10327
|
/**
|
|
10125
10328
|
* Recursively renders tree items and their children
|
|
10126
10329
|
*/
|
|
@@ -10133,20 +10336,57 @@ const UdpTree = class {
|
|
|
10133
10336
|
return itemsAtLevel.map(item => {
|
|
10134
10337
|
const id = this.resolveProp(item, this.itemId);
|
|
10135
10338
|
const content = this.resolveProp(item, this.itemContent);
|
|
10136
|
-
const start = this.resolveProp(item, this.itemStart);
|
|
10137
|
-
const end = this.resolveProp(item, this.itemEnd);
|
|
10138
10339
|
const aside = this.resolveProp(item, this.itemAside);
|
|
10340
|
+
const selected = this.selectedId !== undefined && id === this.selectedId;
|
|
10341
|
+
// Start slot: avatar wins over icon, which wins over plain itemStart text.
|
|
10342
|
+
const avatar = this.renderItemAvatar(item);
|
|
10343
|
+
const icon = avatar ? null : this.renderItemIcon(item);
|
|
10344
|
+
const startText = this.resolveProp(item, this.itemStart);
|
|
10345
|
+
const start = avatar || icon || (startText != null ? startText : null);
|
|
10346
|
+
// End slot: plain itemEnd content plus an optional declarative badge.
|
|
10347
|
+
const endContent = this.resolveProp(item, this.itemEnd);
|
|
10348
|
+
const badge = this.renderItemBadge(item);
|
|
10349
|
+
const end = endContent != null || badge ? [endContent, badge] : null;
|
|
10139
10350
|
// Find children of this item
|
|
10140
10351
|
const children = items.filter(child => this.resolveProp(child, this.itemParentId) === id);
|
|
10141
10352
|
const hasChildren = children.length > 0;
|
|
10142
|
-
|
|
10353
|
+
// Seed expansion from `itemExpanded`; once the user toggles a chevron in
|
|
10354
|
+
// `collapsible` mode, the stored override wins so the choice sticks.
|
|
10355
|
+
const seedExpanded = this.itemExpanded !== undefined
|
|
10356
|
+
? !!this.resolveProp(item, this.itemExpanded)
|
|
10357
|
+
: undefined;
|
|
10358
|
+
const expanded = this.collapsible && id in this.expandedOverrides
|
|
10359
|
+
? this.expandedOverrides[id]
|
|
10360
|
+
: seedExpanded;
|
|
10361
|
+
return (h("fluent-tree-item", { key: id, size: this.size, appearance: this.appearance, expanded: expanded, selected: selected, onClick: (e) => {
|
|
10362
|
+
// Chevron in collapsible mode: toggle this group's expansion only —
|
|
10363
|
+
// no selection, no `itemClick`. Stop here so the click never reaches
|
|
10364
|
+
// Fluent's tree handler (which would also select the row).
|
|
10365
|
+
if (this.collapsible && hasChildren && this.isChevronClick(e)) {
|
|
10366
|
+
e.stopPropagation();
|
|
10367
|
+
this.toggleExpanded(id, !!seedExpanded);
|
|
10368
|
+
return;
|
|
10369
|
+
}
|
|
10370
|
+
if (this.interaction === 'button') {
|
|
10371
|
+
// Whole row is a button: emit once for this row and stop, so the
|
|
10372
|
+
// click never bubbles to ancestor items or to Fluent's tree
|
|
10373
|
+
// click handler (which would toggle expansion / auto-select).
|
|
10374
|
+
e.stopPropagation();
|
|
10375
|
+
this.itemClick.emit(item);
|
|
10376
|
+
return;
|
|
10377
|
+
}
|
|
10378
|
+
// 'tree' mode — preserve native behavior: only the directly-clicked
|
|
10379
|
+
// row emits; Fluent's tree handler manages toggle + selection.
|
|
10143
10380
|
if (e.target === e.currentTarget)
|
|
10144
10381
|
this.itemClick.emit(item);
|
|
10145
10382
|
} }, start && h("div", { slot: "start" }, start), content, end && h("div", { slot: "end" }, end), aside && h("div", { slot: "aside" }, aside), hasChildren && this.renderTreeItems(items, id)));
|
|
10146
10383
|
});
|
|
10147
10384
|
}
|
|
10148
10385
|
render() {
|
|
10149
|
-
return (h(Host, { key: '
|
|
10386
|
+
return (h(Host, { key: '60890c72952a6f5cff22c20e40afc2fece25a464' }, h("fluent-tree", { key: 'b22362f90a108f7342c7b9f56a3d5cdaa8129fbc', class: {
|
|
10387
|
+
'interaction-button': this.interaction === 'button',
|
|
10388
|
+
collapsible: this.collapsible,
|
|
10389
|
+
}, size: this.size, appearance: this.appearance }, this.treeItems.length > 0 ? this.renderTreeItems(this.treeItems) : h("slot", null))));
|
|
10150
10390
|
}
|
|
10151
10391
|
};
|
|
10152
10392
|
UdpTree.style = udpTreeCss();
|