scb-wc 0.1.3 → 0.1.4
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/README.md +194 -164
- package/all.js +91 -5
- package/blazor/CustomEvents.cs +83 -0
- package/blazor/ScbBlazorInteropBase.cs +4460 -1674
- package/blazor/scb-blazor-bridge.js +6827 -2805
- package/blazor/wrappers/ScbAccordion.razor +50 -0
- package/blazor/wrappers/ScbAppBar.razor +95 -0
- package/blazor/wrappers/ScbBreadcrumb.razor +59 -0
- package/blazor/wrappers/ScbCalendar.razor +100 -0
- package/blazor/wrappers/ScbCalendarCard.razor +189 -0
- package/blazor/wrappers/ScbCheckbox.razor +92 -0
- package/blazor/wrappers/ScbCollapse.razor +76 -0
- package/blazor/wrappers/ScbCookiesConsent.razor +106 -0
- package/blazor/wrappers/ScbDatepicker.razor +77 -0
- package/blazor/wrappers/ScbDialog.razor +72 -0
- package/blazor/wrappers/ScbDrawer.razor +64 -0
- package/blazor/wrappers/ScbDropZone.razor +168 -0
- package/blazor/wrappers/ScbDropdown.razor +76 -0
- package/blazor/wrappers/ScbHorizontalScroller.razor +137 -0
- package/blazor/wrappers/ScbList.razor +77 -0
- package/blazor/wrappers/ScbMenu.razor +71 -0
- package/blazor/wrappers/ScbNav.razor +92 -0
- package/blazor/wrappers/ScbNotificationCard.razor +122 -0
- package/blazor/wrappers/ScbOptionsMenu.razor +88 -0
- package/blazor/wrappers/ScbPagination.razor +80 -0
- package/blazor/wrappers/ScbRadioGroup.razor +94 -0
- package/blazor/wrappers/ScbSearch.razor +83 -0
- package/blazor/wrappers/ScbSegmentedButton.razor +85 -0
- package/blazor/wrappers/ScbSelect.razor +79 -0
- package/blazor/wrappers/ScbSlider.razor +96 -0
- package/blazor/wrappers/ScbSnackbar.razor +93 -0
- package/blazor/wrappers/ScbSwitch.razor +92 -0
- package/blazor/wrappers/ScbTable.razor +67 -0
- package/blazor/wrappers/ScbTableAdvanced.razor +78 -0
- package/blazor/wrappers/ScbTabs.razor +55 -0
- package/blazor/wrappers/ScbTextfield.razor +104 -0
- package/blazor/wrappers/ScbTooltip.razor +88 -0
- package/blazor/wrappers/ScbViz.razor +142 -0
- package/demo-data-preview.svg +12 -0
- package/dummy.png +0 -0
- package/fonts/inter/files/inter-latin-wght-italic.woff2 +0 -0
- package/fonts/inter/files/inter-latin-wght-normal.woff2 +0 -0
- package/fonts/material-symbols-outlined/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
- package/index.js +91 -1
- package/mvc/components/all.js +90 -1
- package/mvc/components/scb-accordion/scb-accordion-item.js +211 -0
- package/mvc/components/scb-accordion/scb-accordion.js +44 -0
- package/mvc/components/scb-app-bar/scb-app-bar.js +166 -0
- package/mvc/components/scb-avatar/scb-avatar.js +111 -0
- package/mvc/components/scb-badge/scb-badge.js +80 -0
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +14 -0
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +96 -0
- package/mvc/components/scb-button/scb-button.js +268 -0
- package/mvc/components/scb-calendar/scb-calendar-event.js +6 -0
- package/mvc/components/scb-calendar/scb-calendar.js +168 -0
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +346 -0
- package/mvc/components/scb-card/scb-card.js +761 -0
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +33 -0
- package/mvc/components/scb-checkbox/scb-checkbox.js +140 -0
- package/mvc/components/scb-chevron/scb-chevron.js +121 -0
- package/mvc/components/scb-chip/scb-chip.js +66 -0
- package/mvc/components/scb-collapse/scb-collapse.js +89 -0
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +78 -0
- package/mvc/components/scb-datepicker/scb-datepicker.js +296 -0
- package/mvc/components/scb-dialog/scb-dialog.js +265 -0
- package/mvc/components/scb-divider/scb-divider.js +69 -0
- package/mvc/components/scb-drawer/scb-drawer.js +128 -0
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +555 -0
- package/mvc/components/scb-dropdown/scb-dropdown.js +306 -0
- package/mvc/components/scb-fab/scb-fab.js +108 -0
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +46 -0
- package/mvc/components/scb-fact-card/scb-fact-card.js +226 -0
- package/mvc/components/scb-footer/scb-footer-section.js +3 -0
- package/mvc/components/scb-footer/scb-footer.js +210 -0
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +131 -0
- package/mvc/components/scb-grid/scb-grid-item.js +11 -0
- package/mvc/components/scb-grid/scb-grid.js +98 -0
- package/mvc/components/scb-grid/scb-stack.js +33 -0
- package/mvc/components/scb-header/scb-header-menu-group.js +1 -0
- package/mvc/components/scb-header/scb-header-menu-item.js +5 -0
- package/mvc/components/scb-header/scb-header-tab.js +5 -0
- package/mvc/components/scb-header/scb-header-utility.js +1 -0
- package/mvc/components/scb-header/scb-header.js +681 -0
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +196 -0
- package/mvc/components/scb-icon-button/scb-icon-button.js +171 -0
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +212 -0
- package/mvc/components/scb-link/scb-link.js +61 -0
- package/mvc/components/scb-list/scb-list-item.js +153 -0
- package/mvc/components/scb-list/scb-list.js +26 -0
- package/mvc/components/scb-menu/scb-menu-item.js +205 -0
- package/mvc/components/scb-menu/scb-menu-section.js +42 -0
- package/mvc/components/scb-menu/scb-menu.js +81 -0
- package/mvc/components/scb-menu/scb-sub-menu.js +10 -0
- package/mvc/components/scb-nav/scb-nav-item.js +28 -0
- package/mvc/components/scb-nav/scb-nav.js +104 -0
- package/mvc/components/scb-notification-card/scb-notification-card.js +358 -0
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +66 -0
- package/mvc/components/scb-options-menu/scb-options-menu.js +88 -0
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +34 -0
- package/mvc/components/scb-overlay/scb-overlay.js +49 -0
- package/mvc/components/scb-pagination/scb-pagination.js +312 -0
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +87 -0
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +147 -0
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +62 -0
- package/mvc/components/scb-radio-button/scb-radio-button.js +132 -0
- package/mvc/components/scb-radio-button/scb-radio-group.js +43 -0
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +79 -0
- package/mvc/components/scb-search/scb-search.js +292 -0
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +32 -0
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +74 -0
- package/mvc/components/scb-select/scb-select-option.js +61 -0
- package/mvc/components/scb-select/scb-select.js +284 -0
- package/mvc/components/scb-skeleton/scb-skeleton.js +38 -0
- package/mvc/components/scb-slider/scb-slider.js +27 -0
- package/mvc/components/scb-snackbar/scb-snackbar.js +128 -0
- package/mvc/components/scb-status-pill/scb-status-pill.js +45 -0
- package/mvc/components/scb-stepper/scb-step.js +239 -0
- package/mvc/components/scb-stepper/scb-stepper.js +139 -0
- package/mvc/components/scb-switch/scb-switch.js +59 -0
- package/mvc/components/scb-table/scb-table.js +51 -0
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +76 -0
- package/mvc/components/scb-tabs/scb-primary-tab.js +6 -0
- package/mvc/components/scb-tabs/scb-secondary-tab.js +6 -0
- package/mvc/components/scb-tabs/scb-tabs.js +28 -0
- package/mvc/components/scb-textfield/scb-textfield.js +595 -0
- package/mvc/components/scb-toc/scb-toc-item.js +303 -0
- package/mvc/components/scb-toc/scb-toc.js +19 -0
- package/mvc/components/scb-tooltip/scb-tooltip.js +196 -0
- package/mvc/components/scb-vignette/scb-vignette.js +37 -0
- package/mvc/components/scb-viz/scb-viz-actions-runtime.js +2 -0
- package/mvc/components/scb-viz/scb-viz-print-runtime.js +98 -0
- package/mvc/components/scb-viz/scb-viz-series-differentiation-registry.js +1 -0
- package/mvc/components/scb-viz/scb-viz-series-differentiation-runtime.js +1 -0
- package/mvc/components/scb-viz/scb-viz-table-runtime.js +1 -0
- package/mvc/components/scb-viz/scb-viz.js +1140 -0
- package/mvc/fonts/inter/files/inter-latin-wght-italic.woff2 +0 -0
- package/mvc/fonts/inter/files/inter-latin-wght-normal.woff2 +0 -0
- package/mvc/fonts/material-symbols-outlined/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
- package/mvc/scb-blazor-bridge.js +6827 -2805
- package/mvc/scb-logo.svg +20 -20
- package/mvc/scb-typography.css +1 -1
- package/mvc/scb-wc.css +3 -2
- package/mvc/scb.svg +13 -13
- package/mvc/vendor/assertClassBrand.js +1 -0
- package/mvc/vendor/classPrivateFieldGet2.js +1 -0
- package/mvc/vendor/decorate.js +1 -0
- package/mvc/vendor/preload-helper.js +1 -0
- package/mvc/vendor/vendor-lit.js +1 -0
- package/mvc/vendor/vendor-material.js +364 -0
- package/mvc/vendor/vendor.js +4 -0
- package/package.json +420 -77
- package/scb-accordion/scb-accordion-item.js +340 -0
- package/scb-accordion/scb-accordion.js +151 -0
- package/scb-app-bar/scb-app-bar.js +317 -0
- package/scb-avatar/scb-avatar.js +197 -0
- package/scb-badge/scb-badge.js +165 -0
- package/scb-breadcrumb/scb-breadcrumb-item.js +62 -0
- package/scb-breadcrumb/scb-breadcrumb.js +255 -0
- package/scb-button/scb-button.js +398 -0
- package/scb-calendar/scb-calendar-event.js +48 -0
- package/scb-calendar/scb-calendar.js +700 -0
- package/scb-calendar-card/scb-calendar-card.js +505 -0
- package/scb-card/scb-card.js +1231 -0
- package/scb-checkbox/scb-checkbox-group.js +104 -0
- package/scb-checkbox/scb-checkbox.js +316 -0
- package/scb-chevron/scb-chevron.js +144 -0
- package/scb-chip/scb-chip.js +234 -0
- package/scb-collapse/scb-collapse.js +231 -0
- package/scb-cookies-consent/scb-cookies-consent.js +164 -0
- package/scb-datepicker/scb-datepicker.js +470 -0
- package/scb-dialog/scb-dialog.js +574 -0
- package/scb-divider/scb-divider.js +119 -0
- package/scb-drawer/scb-drawer.js +297 -0
- package/scb-drop-zone/scb-drop-zone.js +965 -0
- package/scb-dropdown/scb-dropdown.js +598 -0
- package/scb-fab/scb-fab.js +190 -0
- package/scb-fact-card/scb-fact-card-content.js +82 -0
- package/scb-fact-card/scb-fact-card.js +376 -0
- package/scb-footer/scb-footer-section.js +23 -0
- package/scb-footer/scb-footer.js +343 -0
- package/scb-gallery-grid/scb-gallery-grid.js +242 -0
- package/scb-grid/scb-grid-item.js +81 -0
- package/scb-grid/scb-grid.js +200 -0
- package/scb-grid/scb-stack.js +120 -0
- package/scb-header/scb-header-menu-group.js +21 -0
- package/scb-header/scb-header-menu-item.js +22 -0
- package/scb-header/scb-header-tab.js +25 -0
- package/scb-header/scb-header-utility.js +27 -0
- package/scb-header/scb-header.js +1358 -0
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +353 -0
- package/scb-icon-button/scb-icon-button.js +335 -0
- package/scb-keyfigure-card/scb-keyfigure-card.js +340 -0
- package/scb-link/scb-link.js +136 -0
- package/scb-list/scb-list-item.js +297 -0
- package/scb-list/scb-list.js +119 -0
- package/scb-menu/scb-menu-item.js +330 -0
- package/scb-menu/scb-menu-section.js +60 -0
- package/scb-menu/scb-menu.js +154 -0
- package/scb-menu/scb-sub-menu.js +36 -0
- package/scb-nav/scb-nav-item.js +96 -0
- package/scb-nav/scb-nav.js +263 -0
- package/scb-notification-card/scb-notification-card.js +479 -0
- package/scb-options-menu/scb-options-menu-item.js +218 -0
- package/scb-options-menu/scb-options-menu.js +237 -0
- package/scb-options-menu/scb-options-sub-menu.js +69 -0
- package/scb-overlay/scb-overlay.js +144 -0
- package/scb-pagination/scb-pagination.js +438 -0
- package/scb-progress-indicator/scb-progress-indicator.js +199 -0
- package/scb-progress-stepper/scb-progress-step.js +213 -0
- package/scb-progress-stepper/scb-progress-stepper.js +132 -0
- package/scb-radio-button/scb-radio-button.js +249 -0
- package/scb-radio-button/scb-radio-group.js +216 -0
- package/scb-scrollspy/scb-scrollspy.js +670 -0
- package/scb-search/scb-search.js +643 -0
- package/scb-segmented-button/scb-segmented-button.js +215 -0
- package/scb-segmented-button/scb-segmented-item.js +133 -0
- package/scb-select/scb-select-option.js +88 -0
- package/scb-select/scb-select.js +517 -0
- package/scb-skeleton/scb-skeleton.js +92 -0
- package/scb-slider/scb-slider.js +98 -0
- package/scb-snackbar/scb-snackbar.js +223 -0
- package/scb-status-pill/scb-status-pill.js +100 -0
- package/scb-stepper/scb-step.js +311 -0
- package/scb-stepper/scb-stepper.js +325 -0
- package/scb-switch/scb-switch.js +182 -0
- package/scb-table/scb-table.js +202 -0
- package/scb-table-advanced/scb-table-advanced.js +327 -0
- package/scb-tabs/scb-primary-tab.js +68 -0
- package/scb-tabs/scb-secondary-tab.js +68 -0
- package/scb-tabs/scb-tabs.js +100 -0
- package/scb-test-components/index.d.ts +90 -0
- package/scb-test-components/scb-accordion/scb-accordion-item.d.ts +39 -0
- package/scb-test-components/scb-accordion/scb-accordion.d.ts +27 -0
- package/scb-test-components/scb-app-bar/scb-app-bar.d.ts +25 -0
- package/scb-test-components/scb-avatar/scb-avatar.d.ts +37 -0
- package/scb-test-components/scb-badge/scb-badge.d.ts +28 -0
- package/scb-test-components/scb-breadcrumb/scb-breadcrumb-item.d.ts +15 -0
- package/scb-test-components/scb-breadcrumb/scb-breadcrumb.d.ts +27 -0
- package/scb-test-components/scb-button/scb-button.d.ts +40 -0
- package/scb-test-components/scb-calendar/scb-calendar-event.d.ts +15 -0
- package/scb-test-components/scb-calendar/scb-calendar.d.ts +77 -0
- package/scb-test-components/scb-calendar-card/scb-calendar-card.d.ts +45 -0
- package/scb-test-components/scb-card/scb-card.d.ts +101 -0
- package/scb-test-components/scb-checkbox/scb-checkbox-group.d.ts +23 -0
- package/scb-test-components/scb-checkbox/scb-checkbox.d.ts +52 -0
- package/scb-test-components/scb-chevron/scb-chevron.d.ts +13 -0
- package/scb-test-components/scb-chip/scb-chip.d.ts +61 -0
- package/scb-test-components/scb-collapse/scb-collapse.d.ts +29 -0
- package/scb-test-components/scb-cookies-consent/scb-cookies-consent.d.ts +23 -0
- package/scb-test-components/scb-datepicker/scb-datepicker.d.ts +39 -0
- package/scb-test-components/scb-dialog/scb-dialog.d.ts +72 -0
- package/scb-test-components/scb-divider/scb-divider.d.ts +34 -0
- package/scb-test-components/scb-drawer/scb-drawer.d.ts +72 -0
- package/scb-test-components/scb-drop-zone/scb-drop-zone.d.ts +143 -0
- package/scb-test-components/scb-dropdown/scb-dropdown.d.ts +70 -0
- package/scb-test-components/scb-fab/scb-fab.d.ts +42 -0
- package/scb-test-components/scb-fact-card/scb-fact-card-content.d.ts +15 -0
- package/scb-test-components/scb-fact-card/scb-fact-card.d.ts +49 -0
- package/scb-test-components/scb-footer/scb-footer-section.d.ts +20 -0
- package/scb-test-components/scb-footer/scb-footer.d.ts +31 -0
- package/scb-test-components/scb-gallery-grid/scb-gallery-grid.d.ts +20 -0
- package/scb-test-components/scb-grid/scb-grid-item.d.ts +32 -0
- package/scb-test-components/scb-grid/scb-grid.d.ts +36 -0
- package/scb-test-components/scb-grid/scb-stack.d.ts +32 -0
- package/scb-test-components/scb-header/scb-header-menu-group.d.ts +12 -0
- package/scb-test-components/scb-header/scb-header-menu-item.d.ts +13 -0
- package/scb-test-components/scb-header/scb-header-tab.d.ts +13 -0
- package/scb-test-components/scb-header/scb-header-utility.d.ts +14 -0
- package/scb-test-components/scb-header/scb-header.d.ts +132 -0
- package/scb-test-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +47 -0
- package/scb-test-components/scb-icon-button/scb-icon-button.d.ts +76 -0
- package/scb-test-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +46 -0
- package/scb-test-components/scb-link/scb-link.d.ts +25 -0
- package/scb-test-components/scb-list/scb-list-item.d.ts +38 -0
- package/scb-test-components/scb-list/scb-list.d.ts +26 -0
- package/scb-test-components/scb-menu/scb-menu-item.d.ts +52 -0
- package/scb-test-components/scb-menu/scb-menu-section.d.ts +11 -0
- package/scb-test-components/scb-menu/scb-menu.d.ts +25 -0
- package/scb-test-components/scb-menu/scb-sub-menu.d.ts +14 -0
- package/scb-test-components/scb-nav/scb-nav-item.d.ts +20 -0
- package/scb-test-components/scb-nav/scb-nav.d.ts +50 -0
- package/scb-test-components/scb-notification-card/scb-notification-card.d.ts +46 -0
- package/scb-test-components/scb-options-menu/scb-options-menu-item.d.ts +29 -0
- package/scb-test-components/scb-options-menu/scb-options-menu.d.ts +35 -0
- package/scb-test-components/scb-options-menu/scb-options-sub-menu.d.ts +11 -0
- package/scb-test-components/scb-overlay/scb-overlay.d.ts +24 -0
- package/scb-test-components/scb-pagination/scb-pagination.d.ts +36 -0
- package/scb-test-components/scb-progress-indicator/scb-progress-indicator.d.ts +28 -0
- package/scb-test-components/scb-progress-stepper/scb-progress-step.d.ts +21 -0
- package/scb-test-components/scb-progress-stepper/scb-progress-stepper.d.ts +22 -0
- package/scb-test-components/scb-radio-button/scb-radio-button.d.ts +26 -0
- package/scb-test-components/scb-radio-button/scb-radio-group.d.ts +49 -0
- package/scb-test-components/scb-scrollspy/scb-scrollspy.d.ts +217 -0
- package/scb-test-components/scb-search/scb-search.d.ts +96 -0
- package/scb-test-components/scb-segmented-button/scb-segmented-button.d.ts +80 -0
- package/scb-test-components/scb-segmented-button/scb-segmented-item.d.ts +21 -0
- package/scb-test-components/scb-select/scb-select-option.d.ts +16 -0
- package/scb-test-components/scb-select/scb-select.d.ts +62 -0
- package/scb-test-components/scb-skeleton/scb-skeleton.d.ts +25 -0
- package/scb-test-components/scb-slider/scb-slider.d.ts +28 -0
- package/scb-test-components/scb-snackbar/scb-snackbar.d.ts +24 -0
- package/scb-test-components/scb-status-pill/scb-status-pill.d.ts +22 -0
- package/scb-test-components/scb-stepper/scb-step.d.ts +22 -0
- package/scb-test-components/scb-stepper/scb-stepper.d.ts +47 -0
- package/scb-test-components/scb-switch/scb-switch.d.ts +52 -0
- package/scb-test-components/scb-table/scb-table.d.ts +24 -0
- package/scb-test-components/scb-table-advanced/scb-table-advanced.d.ts +39 -0
- package/scb-test-components/scb-tabs/scb-primary-tab.d.ts +15 -0
- package/scb-test-components/scb-tabs/scb-secondary-tab.d.ts +15 -0
- package/scb-test-components/scb-tabs/scb-tabs.d.ts +21 -0
- package/scb-test-components/scb-textfield/scb-textfield.d.ts +75 -0
- package/scb-test-components/scb-toc/scb-toc-item.d.ts +38 -0
- package/scb-test-components/scb-toc/scb-toc.d.ts +27 -0
- package/scb-test-components/scb-tooltip/scb-tooltip.d.ts +51 -0
- package/scb-test-components/scb-vignette/scb-vignette.d.ts +20 -0
- package/scb-test-components/scb-viz/scb-viz-actions-runtime.d.ts +26 -0
- package/scb-test-components/scb-viz/scb-viz-print-runtime.d.ts +27 -0
- package/scb-test-components/scb-viz/scb-viz-series-differentiation-registry.d.ts +21 -0
- package/scb-test-components/scb-viz/scb-viz-series-differentiation-runtime.d.ts +42 -0
- package/scb-test-components/scb-viz/scb-viz-table-runtime.d.ts +28 -0
- package/scb-test-components/scb-viz/scb-viz.d.ts +207 -0
- package/scb-textfield/scb-textfield.js +827 -0
- package/scb-toc/scb-toc-item.js +477 -0
- package/scb-toc/scb-toc.js +101 -0
- package/scb-tooltip/scb-tooltip.js +402 -0
- package/scb-typography.css +1 -1
- package/scb-vignette/scb-vignette.js +88 -0
- package/scb-viz/scb-viz-actions-runtime.js +143 -0
- package/scb-viz/scb-viz-print-runtime.js +121 -0
- package/scb-viz/scb-viz-series-differentiation-registry.js +117 -0
- package/scb-viz/scb-viz-series-differentiation-runtime.js +126 -0
- package/scb-viz/scb-viz-table-runtime.js +86 -0
- package/scb-viz/scb-viz.js +2195 -0
- package/scb-wc-selfhost.css +29 -0
- package/scb-wc.bundle.js +12893 -1099
- package/scb-wc.css +3 -2
- package/scb-wc.d.ts +180 -0
- package/index.d.ts +0 -0
- package/mvc/components/index.js +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-cookies-consent @attributes="BuildAttributes()"
|
|
7
|
+
@onopenchange="HandleOpenChange"
|
|
8
|
+
>
|
|
9
|
+
@ChildContent
|
|
10
|
+
</scb-cookies-consent>
|
|
11
|
+
|
|
12
|
+
@code {
|
|
13
|
+
[Parameter] public string? Id { get; set; }
|
|
14
|
+
[Parameter] public bool Open { get; set; }
|
|
15
|
+
[Parameter] public bool AutoRemove { get; set; }
|
|
16
|
+
[Parameter] public string? Title { get; set; }
|
|
17
|
+
[Parameter] public string? SupportingText { get; set; }
|
|
18
|
+
[Parameter] public string? AriaLabel { get; set; }
|
|
19
|
+
[Parameter] public string? Spacing { get; set; }
|
|
20
|
+
[Parameter] public string? SpacingTop { get; set; }
|
|
21
|
+
[Parameter] public string? SpacingBottom { get; set; }
|
|
22
|
+
[Parameter] public string? SpacingLeft { get; set; }
|
|
23
|
+
[Parameter] public string? SpacingRight { get; set; }
|
|
24
|
+
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
25
|
+
[Parameter] public EventCallback<bool> OpenChanged { get; set; }
|
|
26
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnOpenChange { get; set; }
|
|
27
|
+
|
|
28
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
29
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
30
|
+
|
|
31
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
32
|
+
{
|
|
33
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
34
|
+
|
|
35
|
+
if (!string.IsNullOrWhiteSpace(Id))
|
|
36
|
+
{
|
|
37
|
+
attributes["id"] = Id!;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (Open)
|
|
41
|
+
{
|
|
42
|
+
attributes["open"] = string.Empty;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (AutoRemove)
|
|
46
|
+
{
|
|
47
|
+
attributes["auto-remove"] = string.Empty;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (!string.IsNullOrWhiteSpace(Title))
|
|
51
|
+
{
|
|
52
|
+
attributes["title"] = Title!;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!string.IsNullOrWhiteSpace(SupportingText))
|
|
56
|
+
{
|
|
57
|
+
attributes["supporting-text"] = SupportingText!;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (!string.IsNullOrWhiteSpace(AriaLabel))
|
|
61
|
+
{
|
|
62
|
+
attributes["aria-label"] = AriaLabel!;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!string.IsNullOrWhiteSpace(Spacing))
|
|
66
|
+
{
|
|
67
|
+
attributes["spacing"] = Spacing!;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (!string.IsNullOrWhiteSpace(SpacingTop))
|
|
71
|
+
{
|
|
72
|
+
attributes["spacing-top"] = SpacingTop!;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!string.IsNullOrWhiteSpace(SpacingBottom))
|
|
76
|
+
{
|
|
77
|
+
attributes["spacing-bottom"] = SpacingBottom!;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (!string.IsNullOrWhiteSpace(SpacingLeft))
|
|
81
|
+
{
|
|
82
|
+
attributes["spacing-left"] = SpacingLeft!;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (!string.IsNullOrWhiteSpace(SpacingRight))
|
|
86
|
+
{
|
|
87
|
+
attributes["spacing-right"] = SpacingRight!;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (AdditionalAttributes is not null)
|
|
91
|
+
{
|
|
92
|
+
foreach (var kvp in AdditionalAttributes)
|
|
93
|
+
{
|
|
94
|
+
attributes[kvp.Key] = kvp.Value;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return attributes;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async Task HandleOpenChange(ScbCustomEventArgs args)
|
|
102
|
+
{
|
|
103
|
+
await OpenChanged.InvokeAsync(args.Open);
|
|
104
|
+
await OnOpenChange.InvokeAsync(args);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-datepicker @attributes="BuildAttributes()"
|
|
7
|
+
@onvaluechange="HandleValueChange"
|
|
8
|
+
@onopenchange="HandleOpenChange"
|
|
9
|
+
>
|
|
10
|
+
</scb-datepicker>
|
|
11
|
+
|
|
12
|
+
@code {
|
|
13
|
+
[Parameter] public string? Id { get; set; }
|
|
14
|
+
[Parameter] public bool Open { get; set; }
|
|
15
|
+
[Parameter] public string? SelectedValue { get; set; }
|
|
16
|
+
[Parameter] public string? Variant { get; set; }
|
|
17
|
+
[Parameter] public string? Lang { get; set; }
|
|
18
|
+
[Parameter] public EventCallback<string?> SelectedValueChanged { get; set; }
|
|
19
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnValueChange { get; set; }
|
|
20
|
+
[Parameter] public EventCallback<bool> OpenChanged { get; set; }
|
|
21
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnOpenChange { get; set; }
|
|
22
|
+
|
|
23
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
24
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
25
|
+
|
|
26
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
27
|
+
{
|
|
28
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
29
|
+
|
|
30
|
+
if (!string.IsNullOrWhiteSpace(Id))
|
|
31
|
+
{
|
|
32
|
+
attributes["id"] = Id!;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (Open)
|
|
36
|
+
{
|
|
37
|
+
attributes["open"] = string.Empty;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (SelectedValue is not null)
|
|
41
|
+
{
|
|
42
|
+
attributes["selected-value"] = SelectedValue;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (!string.IsNullOrWhiteSpace(Variant))
|
|
46
|
+
{
|
|
47
|
+
attributes["variant"] = Variant!;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (!string.IsNullOrWhiteSpace(Lang))
|
|
51
|
+
{
|
|
52
|
+
attributes["lang"] = Lang!;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (AdditionalAttributes is not null)
|
|
56
|
+
{
|
|
57
|
+
foreach (var kvp in AdditionalAttributes)
|
|
58
|
+
{
|
|
59
|
+
attributes[kvp.Key] = kvp.Value;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return attributes;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private async Task HandleValueChange(ScbCustomEventArgs args)
|
|
67
|
+
{
|
|
68
|
+
await SelectedValueChanged.InvokeAsync(args.Value);
|
|
69
|
+
await OnValueChange.InvokeAsync(args);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async Task HandleOpenChange(ScbCustomEventArgs args)
|
|
73
|
+
{
|
|
74
|
+
await OpenChanged.InvokeAsync(args.Open);
|
|
75
|
+
await OnOpenChange.InvokeAsync(args);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-dialog @attributes="BuildAttributes()"
|
|
7
|
+
@onopenchange="HandleOpenChange"
|
|
8
|
+
@ondialogok="HandleDialogOk"
|
|
9
|
+
@ondialogcancel="HandleDialogCancel"
|
|
10
|
+
>
|
|
11
|
+
@ChildContent
|
|
12
|
+
</scb-dialog>
|
|
13
|
+
|
|
14
|
+
@code {
|
|
15
|
+
[Parameter] public bool Open { get; set; }
|
|
16
|
+
[Parameter] public string? Variant { get; set; }
|
|
17
|
+
[Parameter] public string? Label { get; set; }
|
|
18
|
+
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
19
|
+
[Parameter] public EventCallback<bool> OpenChanged { get; set; }
|
|
20
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnOpenChange { get; set; }
|
|
21
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnDialogOk { get; set; }
|
|
22
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnDialogCancel { get; set; }
|
|
23
|
+
|
|
24
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
25
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
26
|
+
|
|
27
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
28
|
+
{
|
|
29
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
30
|
+
|
|
31
|
+
if (Open)
|
|
32
|
+
{
|
|
33
|
+
attributes["open"] = string.Empty;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (!string.IsNullOrWhiteSpace(Variant))
|
|
37
|
+
{
|
|
38
|
+
attributes["variant"] = Variant!;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (!string.IsNullOrWhiteSpace(Label))
|
|
42
|
+
{
|
|
43
|
+
attributes["label"] = Label!;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (AdditionalAttributes is not null)
|
|
47
|
+
{
|
|
48
|
+
foreach (var kvp in AdditionalAttributes)
|
|
49
|
+
{
|
|
50
|
+
attributes[kvp.Key] = kvp.Value;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return attributes;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async Task HandleOpenChange(ScbCustomEventArgs args)
|
|
58
|
+
{
|
|
59
|
+
await OpenChanged.InvokeAsync(args.Open);
|
|
60
|
+
await OnOpenChange.InvokeAsync(args);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private async Task HandleDialogOk(ScbCustomEventArgs args)
|
|
64
|
+
{
|
|
65
|
+
await OnDialogOk.InvokeAsync(args);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async Task HandleDialogCancel(ScbCustomEventArgs args)
|
|
69
|
+
{
|
|
70
|
+
await OnDialogCancel.InvokeAsync(args);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-drawer @attributes="BuildAttributes()"
|
|
7
|
+
@onopenchange="HandleOpenChange"
|
|
8
|
+
>
|
|
9
|
+
@ChildContent
|
|
10
|
+
</scb-drawer>
|
|
11
|
+
|
|
12
|
+
@code {
|
|
13
|
+
[Parameter] public string? Id { get; set; }
|
|
14
|
+
[Parameter] public bool Open { get; set; }
|
|
15
|
+
[Parameter] public string? Label { get; set; }
|
|
16
|
+
[Parameter] public string? SubLabel { get; set; }
|
|
17
|
+
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
18
|
+
[Parameter] public EventCallback<bool> OpenChanged { get; set; }
|
|
19
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnOpenChange { get; set; }
|
|
20
|
+
|
|
21
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
22
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
23
|
+
|
|
24
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
25
|
+
{
|
|
26
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
27
|
+
|
|
28
|
+
if (!string.IsNullOrWhiteSpace(Id))
|
|
29
|
+
{
|
|
30
|
+
attributes["id"] = Id!;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (Open)
|
|
34
|
+
{
|
|
35
|
+
attributes["open"] = string.Empty;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (!string.IsNullOrWhiteSpace(Label))
|
|
39
|
+
{
|
|
40
|
+
attributes["label"] = Label!;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (!string.IsNullOrWhiteSpace(SubLabel))
|
|
44
|
+
{
|
|
45
|
+
attributes["sub-label"] = SubLabel!;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (AdditionalAttributes is not null)
|
|
49
|
+
{
|
|
50
|
+
foreach (var kvp in AdditionalAttributes)
|
|
51
|
+
{
|
|
52
|
+
attributes[kvp.Key] = kvp.Value;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return attributes;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private async Task HandleOpenChange(ScbCustomEventArgs args)
|
|
60
|
+
{
|
|
61
|
+
await OpenChanged.InvokeAsync(args.Open);
|
|
62
|
+
await OnOpenChange.InvokeAsync(args);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-drop-zone @attributes="BuildAttributes()"
|
|
7
|
+
@ondropzonechange="HandleDropZoneChange"
|
|
8
|
+
>
|
|
9
|
+
</scb-drop-zone>
|
|
10
|
+
|
|
11
|
+
@code {
|
|
12
|
+
[Parameter] public string? Id { get; set; }
|
|
13
|
+
[Parameter] public string? Type { get; set; }
|
|
14
|
+
[Parameter] public string? Name { get; set; }
|
|
15
|
+
[Parameter] public bool Multiple { get; set; }
|
|
16
|
+
[Parameter] public string? Label { get; set; }
|
|
17
|
+
[Parameter] public string? SupportingText { get; set; }
|
|
18
|
+
[Parameter] public string? MetaText { get; set; }
|
|
19
|
+
[Parameter] public string? ButtonLabel { get; set; }
|
|
20
|
+
[Parameter] public string? ReplaceButtonLabel { get; set; }
|
|
21
|
+
[Parameter] public string? RemoveButtonLabel { get; set; }
|
|
22
|
+
[Parameter] public string? Accept { get; set; }
|
|
23
|
+
[Parameter] public bool HidePreview { get; set; }
|
|
24
|
+
[Parameter] public bool ShowExistingPreview { get; set; }
|
|
25
|
+
[Parameter] public bool Disabled { get; set; }
|
|
26
|
+
[Parameter] public string? PreviewSrc { get; set; }
|
|
27
|
+
[Parameter] public string? PreviewAlt { get; set; }
|
|
28
|
+
[Parameter] public string? PreviewTitle { get; set; }
|
|
29
|
+
[Parameter] public string? PreviewMeta { get; set; }
|
|
30
|
+
[Parameter] public string? ExistingValue { get; set; }
|
|
31
|
+
[Parameter] public string? ExistingValueName { get; set; }
|
|
32
|
+
[Parameter] public string? RemoveValueName { get; set; }
|
|
33
|
+
[Parameter] public EventCallback<int> SelectedCountChanged { get; set; }
|
|
34
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnDropZoneChange { get; set; }
|
|
35
|
+
[Parameter] public EventCallback<string?> SelectedFileNameChanged { get; set; }
|
|
36
|
+
[Parameter] public EventCallback<bool> MarkedForRemovalChanged { get; set; }
|
|
37
|
+
|
|
38
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
39
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
40
|
+
|
|
41
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
42
|
+
{
|
|
43
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
44
|
+
|
|
45
|
+
if (!string.IsNullOrWhiteSpace(Id))
|
|
46
|
+
{
|
|
47
|
+
attributes["id"] = Id!;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (!string.IsNullOrWhiteSpace(Type))
|
|
51
|
+
{
|
|
52
|
+
attributes["type"] = Type!;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (!string.IsNullOrWhiteSpace(Name))
|
|
56
|
+
{
|
|
57
|
+
attributes["name"] = Name!;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (Multiple)
|
|
61
|
+
{
|
|
62
|
+
attributes["multiple"] = string.Empty;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!string.IsNullOrWhiteSpace(Label))
|
|
66
|
+
{
|
|
67
|
+
attributes["label"] = Label!;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (!string.IsNullOrWhiteSpace(SupportingText))
|
|
71
|
+
{
|
|
72
|
+
attributes["supporting-text"] = SupportingText!;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!string.IsNullOrWhiteSpace(MetaText))
|
|
76
|
+
{
|
|
77
|
+
attributes["meta-text"] = MetaText!;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (!string.IsNullOrWhiteSpace(ButtonLabel))
|
|
81
|
+
{
|
|
82
|
+
attributes["button-label"] = ButtonLabel!;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (!string.IsNullOrWhiteSpace(ReplaceButtonLabel))
|
|
86
|
+
{
|
|
87
|
+
attributes["replace-button-label"] = ReplaceButtonLabel!;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (!string.IsNullOrWhiteSpace(RemoveButtonLabel))
|
|
91
|
+
{
|
|
92
|
+
attributes["remove-button-label"] = RemoveButtonLabel!;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (!string.IsNullOrWhiteSpace(Accept))
|
|
96
|
+
{
|
|
97
|
+
attributes["accept"] = Accept!;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (HidePreview)
|
|
101
|
+
{
|
|
102
|
+
attributes["hide-preview"] = string.Empty;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (ShowExistingPreview)
|
|
106
|
+
{
|
|
107
|
+
attributes["show-existing-preview"] = string.Empty;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (Disabled)
|
|
111
|
+
{
|
|
112
|
+
attributes["disabled"] = string.Empty;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (!string.IsNullOrWhiteSpace(PreviewSrc))
|
|
116
|
+
{
|
|
117
|
+
attributes["preview-src"] = PreviewSrc!;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (!string.IsNullOrWhiteSpace(PreviewAlt))
|
|
121
|
+
{
|
|
122
|
+
attributes["preview-alt"] = PreviewAlt!;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (!string.IsNullOrWhiteSpace(PreviewTitle))
|
|
126
|
+
{
|
|
127
|
+
attributes["preview-title"] = PreviewTitle!;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (!string.IsNullOrWhiteSpace(PreviewMeta))
|
|
131
|
+
{
|
|
132
|
+
attributes["preview-meta"] = PreviewMeta!;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (!string.IsNullOrWhiteSpace(ExistingValue))
|
|
136
|
+
{
|
|
137
|
+
attributes["existing-value"] = ExistingValue!;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (!string.IsNullOrWhiteSpace(ExistingValueName))
|
|
141
|
+
{
|
|
142
|
+
attributes["existing-value-name"] = ExistingValueName!;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (!string.IsNullOrWhiteSpace(RemoveValueName))
|
|
146
|
+
{
|
|
147
|
+
attributes["remove-value-name"] = RemoveValueName!;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (AdditionalAttributes is not null)
|
|
151
|
+
{
|
|
152
|
+
foreach (var kvp in AdditionalAttributes)
|
|
153
|
+
{
|
|
154
|
+
attributes[kvp.Key] = kvp.Value;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return attributes;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
private async Task HandleDropZoneChange(ScbCustomEventArgs args)
|
|
162
|
+
{
|
|
163
|
+
await SelectedCountChanged.InvokeAsync(args.SelectedCount);
|
|
164
|
+
await SelectedFileNameChanged.InvokeAsync(args.FileName);
|
|
165
|
+
await MarkedForRemovalChanged.InvokeAsync(args.MarkedForRemoval);
|
|
166
|
+
await OnDropZoneChange.InvokeAsync(args);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-dropdown @attributes="BuildAttributes()"
|
|
7
|
+
@onopenchange="HandleOpenChange"
|
|
8
|
+
>
|
|
9
|
+
@ChildContent
|
|
10
|
+
</scb-dropdown>
|
|
11
|
+
|
|
12
|
+
@code {
|
|
13
|
+
[Parameter] public string? Id { get; set; }
|
|
14
|
+
[Parameter] public string? Label { get; set; }
|
|
15
|
+
[Parameter] public string? Variant { get; set; }
|
|
16
|
+
[Parameter] public string? Size { get; set; }
|
|
17
|
+
[Parameter] public bool Open { get; set; }
|
|
18
|
+
[Parameter] public bool Disabled { get; set; }
|
|
19
|
+
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
20
|
+
[Parameter] public EventCallback<bool> OpenChanged { get; set; }
|
|
21
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnOpenChange { get; set; }
|
|
22
|
+
|
|
23
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
24
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
25
|
+
|
|
26
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
27
|
+
{
|
|
28
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
29
|
+
|
|
30
|
+
if (!string.IsNullOrWhiteSpace(Id))
|
|
31
|
+
{
|
|
32
|
+
attributes["id"] = Id!;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!string.IsNullOrWhiteSpace(Label))
|
|
36
|
+
{
|
|
37
|
+
attributes["label"] = Label!;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (!string.IsNullOrWhiteSpace(Variant))
|
|
41
|
+
{
|
|
42
|
+
attributes["variant"] = Variant!;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (!string.IsNullOrWhiteSpace(Size))
|
|
46
|
+
{
|
|
47
|
+
attributes["size"] = Size!;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (Open)
|
|
51
|
+
{
|
|
52
|
+
attributes["open"] = string.Empty;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (Disabled)
|
|
56
|
+
{
|
|
57
|
+
attributes["disabled"] = string.Empty;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (AdditionalAttributes is not null)
|
|
61
|
+
{
|
|
62
|
+
foreach (var kvp in AdditionalAttributes)
|
|
63
|
+
{
|
|
64
|
+
attributes[kvp.Key] = kvp.Value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return attributes;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async Task HandleOpenChange(ScbCustomEventArgs args)
|
|
72
|
+
{
|
|
73
|
+
await OpenChanged.InvokeAsync(args.Open);
|
|
74
|
+
await OnOpenChange.InvokeAsync(args);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
@using System.Collections.Generic
|
|
2
|
+
@using ScbBlazor
|
|
3
|
+
|
|
4
|
+
@* Auto-generated from blazor/component-manifests.data.mjs. *@
|
|
5
|
+
|
|
6
|
+
<scb-horizontal-scroller @attributes="BuildAttributes()"
|
|
7
|
+
@onscrollstart="HandleScrollStart"
|
|
8
|
+
@onscrollend="HandleScrollEnd"
|
|
9
|
+
@onscrollleft="HandleScrollLeft"
|
|
10
|
+
@onscrollright="HandleScrollRight"
|
|
11
|
+
>
|
|
12
|
+
@ChildContent
|
|
13
|
+
</scb-horizontal-scroller>
|
|
14
|
+
|
|
15
|
+
@code {
|
|
16
|
+
[Parameter] public string? Id { get; set; }
|
|
17
|
+
[Parameter] public string? Variant { get; set; }
|
|
18
|
+
[Parameter] public string? Width { get; set; }
|
|
19
|
+
[Parameter] public bool ShowScrollbar { get; set; }
|
|
20
|
+
[Parameter] public string? RightScrollButtonLabel { get; set; }
|
|
21
|
+
[Parameter] public string? LeftScrollButtonLabel { get; set; }
|
|
22
|
+
[Parameter] public string? Spacing { get; set; }
|
|
23
|
+
[Parameter] public string? SpacingTop { get; set; }
|
|
24
|
+
[Parameter] public string? SpacingBottom { get; set; }
|
|
25
|
+
[Parameter] public string? SpacingLeft { get; set; }
|
|
26
|
+
[Parameter] public string? SpacingRight { get; set; }
|
|
27
|
+
[Parameter] public bool ContentFlex { get; set; }
|
|
28
|
+
[Parameter] public string? InternalGap { get; set; }
|
|
29
|
+
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
30
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnScrollStart { get; set; }
|
|
31
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnScrollEnd { get; set; }
|
|
32
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnScrollLeft { get; set; }
|
|
33
|
+
[Parameter] public EventCallback<ScbCustomEventArgs> OnScrollRight { get; set; }
|
|
34
|
+
|
|
35
|
+
[Parameter(CaptureUnmatchedValues = true)]
|
|
36
|
+
public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; }
|
|
37
|
+
|
|
38
|
+
private IReadOnlyDictionary<string, object> BuildAttributes()
|
|
39
|
+
{
|
|
40
|
+
var attributes = new Dictionary<string, object>(StringComparer.Ordinal);
|
|
41
|
+
|
|
42
|
+
if (!string.IsNullOrWhiteSpace(Id))
|
|
43
|
+
{
|
|
44
|
+
attributes["id"] = Id!;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (!string.IsNullOrWhiteSpace(Variant))
|
|
48
|
+
{
|
|
49
|
+
attributes["variant"] = Variant!;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (!string.IsNullOrWhiteSpace(Width))
|
|
53
|
+
{
|
|
54
|
+
attributes["width"] = Width!;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (ShowScrollbar)
|
|
58
|
+
{
|
|
59
|
+
attributes["show-scrollbar"] = string.Empty;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (!string.IsNullOrWhiteSpace(RightScrollButtonLabel))
|
|
63
|
+
{
|
|
64
|
+
attributes["right-scroll-button-label"] = RightScrollButtonLabel!;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (!string.IsNullOrWhiteSpace(LeftScrollButtonLabel))
|
|
68
|
+
{
|
|
69
|
+
attributes["left-scroll-button-label"] = LeftScrollButtonLabel!;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (!string.IsNullOrWhiteSpace(Spacing))
|
|
73
|
+
{
|
|
74
|
+
attributes["spacing"] = Spacing!;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (!string.IsNullOrWhiteSpace(SpacingTop))
|
|
78
|
+
{
|
|
79
|
+
attributes["spacing-top"] = SpacingTop!;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (!string.IsNullOrWhiteSpace(SpacingBottom))
|
|
83
|
+
{
|
|
84
|
+
attributes["spacing-bottom"] = SpacingBottom!;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (!string.IsNullOrWhiteSpace(SpacingLeft))
|
|
88
|
+
{
|
|
89
|
+
attributes["spacing-left"] = SpacingLeft!;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (!string.IsNullOrWhiteSpace(SpacingRight))
|
|
93
|
+
{
|
|
94
|
+
attributes["spacing-right"] = SpacingRight!;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (ContentFlex)
|
|
98
|
+
{
|
|
99
|
+
attributes["content-flex"] = string.Empty;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (!string.IsNullOrWhiteSpace(InternalGap))
|
|
103
|
+
{
|
|
104
|
+
attributes["internal-gap"] = InternalGap!;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (AdditionalAttributes is not null)
|
|
108
|
+
{
|
|
109
|
+
foreach (var kvp in AdditionalAttributes)
|
|
110
|
+
{
|
|
111
|
+
attributes[kvp.Key] = kvp.Value;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return attributes;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
private async Task HandleScrollStart(ScbCustomEventArgs args)
|
|
119
|
+
{
|
|
120
|
+
await OnScrollStart.InvokeAsync(args);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
private async Task HandleScrollEnd(ScbCustomEventArgs args)
|
|
124
|
+
{
|
|
125
|
+
await OnScrollEnd.InvokeAsync(args);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
private async Task HandleScrollLeft(ScbCustomEventArgs args)
|
|
129
|
+
{
|
|
130
|
+
await OnScrollLeft.InvokeAsync(args);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
private async Task HandleScrollRight(ScbCustomEventArgs args)
|
|
134
|
+
{
|
|
135
|
+
await OnScrollRight.InvokeAsync(args);
|
|
136
|
+
}
|
|
137
|
+
}
|