dasar-ui 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +31 -0
- package/.editorconfig +17 -0
- package/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/.prettierrc +12 -0
- package/.versionrc.json +4 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/settings.json +4 -0
- package/.vscode/tasks.json +42 -0
- package/CHANGELOG.md +48 -0
- package/Dockerfile +26 -0
- package/README.md +14 -19
- package/angular.json +114 -0
- package/package.json +56 -39
- package/projects/dasar-ui/README.md +64 -0
- package/projects/dasar-ui/ng-package.json +10 -0
- package/projects/dasar-ui/package.json +27 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.html +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.scss +352 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.ts +154 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.scss +69 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.ts +26 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.html +158 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.scss +371 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.ts +458 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.html +80 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.scss +184 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.ts +294 -0
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.html +42 -0
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.scss +38 -0
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.ts +205 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.html +111 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.scss +331 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.spec.ts +93 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.ts +527 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.registry.ts +5087 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.scss +24 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.ts +97 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.html +54 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.scss +251 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.ts +319 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list-item.html +17 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.html +25 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.scss +122 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.ts +166 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.html +64 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.scss +229 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.spec.ts +93 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.ts +278 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.html +72 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.scss +170 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.spec.ts +267 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.ts +305 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.html +90 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.scss +353 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.ts +337 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.html +11 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.scss +18 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.spec.ts +104 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.ts +87 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.html +98 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.scss +51 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.ts +99 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.html +150 -0
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.scss +272 -0
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.ts +228 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.html +189 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.scss +387 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.spec.ts +97 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.ts +540 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.html +162 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.scss +283 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.ts +380 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.html +103 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.scss +238 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.spec.ts +570 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.ts +349 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.html +43 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.scss +189 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.ts +139 -0
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +271 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.ts +9 -0
- package/projects/dasar-ui/src/lib/models/theme.model.ts +666 -0
- package/projects/dasar-ui/src/lib/models/type.model.ts +11 -0
- package/projects/dasar-ui/src/lib/services/theme.service.spec.ts +65 -0
- package/projects/dasar-ui/src/lib/services/theme.service.ts +707 -0
- package/{styles → projects/dasar-ui/src/lib/styles}/theme.scss +47 -48
- package/projects/dasar-ui/src/lib/styles/theme.ts +70 -0
- package/projects/dasar-ui/src/lib/utils/common.ts +156 -0
- package/projects/dasar-ui/src/lib/utils/icon-size.spec.ts +23 -0
- package/projects/dasar-ui/src/lib/utils/icon-size.ts +16 -0
- package/projects/dasar-ui/src/lib/utils/panel-placement.spec.ts +90 -0
- package/projects/dasar-ui/src/lib/utils/panel-placement.ts +53 -0
- package/projects/dasar-ui/src/public-api.ts +23 -0
- package/projects/dasar-ui/tsconfig.lib.json +21 -0
- package/projects/dasar-ui/tsconfig.lib.prod.json +11 -0
- package/projects/dasar-ui/tsconfig.spec.json +18 -0
- package/projects/documentation/public/favicon.ico +0 -0
- package/projects/documentation/src/app/app.html +51 -0
- package/projects/documentation/src/app/app.spec.ts +23 -0
- package/projects/documentation/src/app/app.ts +23 -0
- package/projects/documentation/src/app/components/doc-customize-modal.component.ts +314 -0
- package/projects/documentation/src/app/components/doc-example.component.ts +195 -0
- package/projects/documentation/src/app/config/app.config.server.ts +10 -0
- package/projects/documentation/src/app/config/app.config.ts +17 -0
- package/projects/documentation/src/app/layouts/doc.layout.ts +229 -0
- package/projects/documentation/src/app/pages/button/button.page.html +65 -0
- package/projects/documentation/src/app/pages/button/button.page.ts +139 -0
- package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.html +7 -0
- package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.html +19 -0
- package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.html +9 -0
- package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.html +7 -0
- package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/state/button-state.example.html +10 -0
- package/projects/documentation/src/app/pages/button/examples/state/button-state.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.html +9 -0
- package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.ts +10 -0
- package/projects/documentation/src/app/pages/calendar/calendar.page.html +75 -0
- package/projects/documentation/src/app/pages/calendar/calendar.page.ts +165 -0
- package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.html +21 -0
- package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.ts +10 -0
- package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.html +11 -0
- package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.html +36 -0
- package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.ts +11 -0
- package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.html +10 -0
- package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.ts +12 -0
- package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.html +15 -0
- package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.ts +12 -0
- package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.html +34 -0
- package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.ts +14 -0
- package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.html +20 -0
- package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.ts +37 -0
- package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.html +16 -0
- package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/card.page.html +75 -0
- package/projects/documentation/src/app/pages/card/card.page.ts +182 -0
- package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.html +13 -0
- package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.html +30 -0
- package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.ts +19 -0
- package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.html +173 -0
- package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/media/card-media.example.html +27 -0
- package/projects/documentation/src/app/pages/card/examples/media/card-media.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.html +13 -0
- package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.html +20 -0
- package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.html +11 -0
- package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/chip.page.html +55 -0
- package/projects/documentation/src/app/pages/chip/chip.page.ts +158 -0
- package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.html +7 -0
- package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.html +13 -0
- package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.ts +17 -0
- package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.html +9 -0
- package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.html +6 -0
- package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.html +8 -0
- package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/datepicker.page.html +75 -0
- package/projects/documentation/src/app/pages/datepicker/datepicker.page.ts +181 -0
- package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.html +29 -0
- package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.html +12 -0
- package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.ts +12 -0
- package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.html +23 -0
- package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.ts +17 -0
- package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.html +30 -0
- package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.ts +13 -0
- package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.html +24 -0
- package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.html +19 -0
- package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.html +28 -0
- package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.ts +12 -0
- package/projects/documentation/src/app/pages/icon/icon.page.html +15 -0
- package/projects/documentation/src/app/pages/icon/icon.page.ts +60 -0
- package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.html +27 -0
- package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.html +13 -0
- package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.html +31 -0
- package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.ts +19 -0
- package/projects/documentation/src/app/pages/input/examples/more/input-more.example.html +68 -0
- package/projects/documentation/src/app/pages/input/examples/more/input-more.example.ts +18 -0
- package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.html +52 -0
- package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/input/examples/states/input-states.example.html +29 -0
- package/projects/documentation/src/app/pages/input/examples/states/input-states.example.ts +10 -0
- package/projects/documentation/src/app/pages/input/input.page.html +65 -0
- package/projects/documentation/src/app/pages/input/input.page.ts +170 -0
- package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.html +5 -0
- package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.ts +17 -0
- package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.html +35 -0
- package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.ts +57 -0
- package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.html +12 -0
- package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.ts +16 -0
- package/projects/documentation/src/app/pages/menu/menu.page.html +35 -0
- package/projects/documentation/src/app/pages/menu/menu.page.ts +149 -0
- package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.html +18 -0
- package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.ts +21 -0
- package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.html +8 -0
- package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.ts +12 -0
- package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.html +44 -0
- package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.ts +14 -0
- package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.html +36 -0
- package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.ts +12 -0
- package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.html +29 -0
- package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.ts +14 -0
- package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.html +27 -0
- package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.ts +27 -0
- package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.html +14 -0
- package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.ts +13 -0
- package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.html +17 -0
- package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.ts +21 -0
- package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.html +30 -0
- package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.ts +12 -0
- package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.html +23 -0
- package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.ts +13 -0
- package/projects/documentation/src/app/pages/modal/modal.page.html +105 -0
- package/projects/documentation/src/app/pages/modal/modal.page.ts +257 -0
- package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.html +30 -0
- package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.html +12 -0
- package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.html +30 -0
- package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.ts +14 -0
- package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.html +49 -0
- package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.html +21 -0
- package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.ts +10 -0
- package/projects/documentation/src/app/pages/number-input/number-input.page.html +55 -0
- package/projects/documentation/src/app/pages/number-input/number-input.page.ts +142 -0
- package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.html +32 -0
- package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.ts +15 -0
- package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.html +13 -0
- package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.ts +20 -0
- package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.html +24 -0
- package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.ts +59 -0
- package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.html +20 -0
- package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.ts +20 -0
- package/projects/documentation/src/app/pages/select/examples/search/select-search.example.html +13 -0
- package/projects/documentation/src/app/pages/select/examples/search/select-search.example.ts +22 -0
- package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.html +44 -0
- package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.ts +15 -0
- package/projects/documentation/src/app/pages/select/examples/states/select-states.example.html +31 -0
- package/projects/documentation/src/app/pages/select/examples/states/select-states.example.ts +12 -0
- package/projects/documentation/src/app/pages/select/select.page.html +75 -0
- package/projects/documentation/src/app/pages/select/select.page.ts +195 -0
- package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.html +14 -0
- package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.ts +25 -0
- package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.html +12 -0
- package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.html +29 -0
- package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.ts +20 -0
- package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.html +39 -0
- package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.html +7 -0
- package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.html +3 -0
- package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.ts +41 -0
- package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.html +43 -0
- package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.html +36 -0
- package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.ts +34 -0
- package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.html +8 -0
- package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.ts +52 -0
- package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.html +53 -0
- package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.ts +50 -0
- package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.html +23 -0
- package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.ts +42 -0
- package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.html +20 -0
- package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/table.page.html +125 -0
- package/projects/documentation/src/app/pages/table/table.page.ts +261 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.html +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.ts +27 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.html +27 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.ts +36 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.html +5 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.ts +20 -0
- package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.html +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.html +19 -0
- package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.ts +12 -0
- package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.html +16 -0
- package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.ts +23 -0
- package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.html +5 -0
- package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.ts +12 -0
- package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.ts +12 -0
- package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.html +20 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.ts +30 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.html +16 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.ts +26 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.html +22 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.ts +26 -0
- package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.html +25 -0
- package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/tabs.page.html +165 -0
- package/projects/documentation/src/app/pages/tabs/tabs.page.ts +340 -0
- package/projects/documentation/src/app/routes/app.routes.server.ts +8 -0
- package/projects/documentation/src/app/routes/app.routes.ts +87 -0
- package/projects/documentation/src/app/services/doc-customize.service.ts +107 -0
- package/projects/documentation/src/app/utils/highlight.pipe.ts +43 -0
- package/projects/documentation/src/index.html +13 -0
- package/projects/documentation/src/main.server.ts +7 -0
- package/projects/documentation/src/main.ts +5 -0
- package/projects/documentation/src/server.ts +47 -0
- package/projects/documentation/src/styles.scss +7 -0
- package/projects/documentation/tsconfig.app.json +11 -0
- package/projects/documentation/tsconfig.spec.json +10 -0
- package/tsconfig.json +40 -0
- package/fesm2022/dasar-ui.mjs +0 -9664
- package/fesm2022/dasar-ui.mjs.map +0 -1
- package/types/dasar-ui.d.ts +0 -2114
package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { DasarTabsComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './tabs-scroll-icon.example.html',
|
|
6
|
+
selector: 'app-tabs-scroll-icon-example',
|
|
7
|
+
imports: [DasarTabsComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class TabsScrollIconExample {
|
|
11
|
+
protected items = [
|
|
12
|
+
'Inbox',
|
|
13
|
+
'Sent',
|
|
14
|
+
'Drafts',
|
|
15
|
+
'Starred',
|
|
16
|
+
'Snoozed',
|
|
17
|
+
'Important',
|
|
18
|
+
'Scheduled',
|
|
19
|
+
'All mail',
|
|
20
|
+
'Spam',
|
|
21
|
+
'Trash',
|
|
22
|
+
'Categories',
|
|
23
|
+
'Labels',
|
|
24
|
+
];
|
|
25
|
+
protected active = signal(0);
|
|
26
|
+
}
|
package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.html
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div style="width: 340px">
|
|
2
|
+
<dasar-tabs
|
|
3
|
+
appearance="outline"
|
|
4
|
+
size="sm"
|
|
5
|
+
[items]="items"
|
|
6
|
+
[active-index]="active()"
|
|
7
|
+
(onTabsChange)="active.set($event)"
|
|
8
|
+
>
|
|
9
|
+
<ng-template tabs-scroll-left-slot>
|
|
10
|
+
<span style="display: inline-flex; align-items: center; gap: 4px">‹ Prev</span>
|
|
11
|
+
</ng-template>
|
|
12
|
+
<ng-template tabs-scroll-right-slot>
|
|
13
|
+
<span style="display: inline-flex; align-items: center; gap: 4px">Next ›</span>
|
|
14
|
+
</ng-template>
|
|
15
|
+
<p>{{ items[active()] }}.</p>
|
|
16
|
+
</dasar-tabs>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<p style="font-size: 12px; margin-top: 8px; color: gray">
|
|
20
|
+
The slots only replace the button content. Clicking, the disabled edges and the automatic
|
|
21
|
+
visibility still come from the component.
|
|
22
|
+
</p>
|
package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { DasarTabsComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './tabs-scroll-slot.example.html',
|
|
6
|
+
selector: 'app-tabs-scroll-slot-example',
|
|
7
|
+
imports: [DasarTabsComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class TabsScrollSlotExample {
|
|
11
|
+
protected items = [
|
|
12
|
+
'First',
|
|
13
|
+
'Second',
|
|
14
|
+
'Third',
|
|
15
|
+
'Fourth',
|
|
16
|
+
'Fifth',
|
|
17
|
+
'Sixth',
|
|
18
|
+
'Seventh',
|
|
19
|
+
'Eighth',
|
|
20
|
+
'Ninth',
|
|
21
|
+
'Tenth',
|
|
22
|
+
'Eleventh',
|
|
23
|
+
'Twelfth',
|
|
24
|
+
];
|
|
25
|
+
protected active = signal(0);
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { DasarTabsComponent, DasarTabsSizeType } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './tabs-size.example.html',
|
|
6
|
+
selector: 'app-tabs-size-example',
|
|
7
|
+
imports: [DasarTabsComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class TabsSizeExample {
|
|
11
|
+
protected sizes: DasarTabsSizeType[] = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
12
|
+
protected items = ['Inbox', 'Sent', 'Drafts'];
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<dasar-tabs appearance="subtle" size="sm">
|
|
2
|
+
<ng-template tab-item-slot>
|
|
3
|
+
<span style="display: inline-flex; align-items: center; gap: 4px">
|
|
4
|
+
<dasar-icon name="home" [size]="14" />
|
|
5
|
+
Overview
|
|
6
|
+
</span>
|
|
7
|
+
</ng-template>
|
|
8
|
+
|
|
9
|
+
<ng-template tab-item-slot>
|
|
10
|
+
<span style="display: inline-flex; align-items: center; gap: 4px">
|
|
11
|
+
<dasar-icon name="settings" [size]="14" />
|
|
12
|
+
Settings
|
|
13
|
+
</span>
|
|
14
|
+
</ng-template>
|
|
15
|
+
|
|
16
|
+
<ng-template tab-item-slot>
|
|
17
|
+
<span style="display: inline-flex; align-items: center; gap: 4px">
|
|
18
|
+
<dasar-icon name="user" [size]="14" />
|
|
19
|
+
Team
|
|
20
|
+
<dasar-chip size="xs" variant="primary">3</dasar-chip>
|
|
21
|
+
</span>
|
|
22
|
+
</ng-template>
|
|
23
|
+
|
|
24
|
+
<p>Each tab trigger is a custom template rendered inside the default button.</p>
|
|
25
|
+
</dasar-tabs>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { DasarTabsComponent, DasarIconComponent, DasarChipComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './tabs-slots.example.html',
|
|
6
|
+
selector: 'app-tabs-slots-example',
|
|
7
|
+
imports: [DasarTabsComponent, DasarIconComponent, DasarChipComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class TabsSlotsExample {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { DasarTabsComponent, DasarTabsSpacingType } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './tabs-spacing.example.html',
|
|
6
|
+
selector: 'app-tabs-spacing-example',
|
|
7
|
+
imports: [DasarTabsComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class TabsSpacingExample {
|
|
11
|
+
protected spacings: DasarTabsSpacingType[] = ['normal', 'compact'];
|
|
12
|
+
protected items = ['Daily', 'Weekly', 'Monthly'];
|
|
13
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
<docs-layout
|
|
2
|
+
title="Tabs"
|
|
3
|
+
description="A tab strip for switching between related views. It renders string items or custom trigger templates, removes its body padding when no content is projected, and shows scroll arrows by itself as soon as the strip is wider than its container."
|
|
4
|
+
[apiData]="apiProps"
|
|
5
|
+
>
|
|
6
|
+
<doc-example-component
|
|
7
|
+
[codes]="[
|
|
8
|
+
{ label: 'HTML', lang: 'html', value: basicHtml },
|
|
9
|
+
{ label: 'TypeScript', lang: 'typescript', value: basicTs },
|
|
10
|
+
]"
|
|
11
|
+
title="Basic"
|
|
12
|
+
>
|
|
13
|
+
<app-tabs-basic-example />
|
|
14
|
+
</doc-example-component>
|
|
15
|
+
|
|
16
|
+
<doc-example-component
|
|
17
|
+
[codes]="[
|
|
18
|
+
{ label: 'HTML', lang: 'html', value: appearanceHtml },
|
|
19
|
+
{ label: 'TypeScript', lang: 'typescript', value: appearanceTs },
|
|
20
|
+
]"
|
|
21
|
+
title="Appearance"
|
|
22
|
+
>
|
|
23
|
+
<app-tabs-appearance-example />
|
|
24
|
+
</doc-example-component>
|
|
25
|
+
|
|
26
|
+
<doc-example-component
|
|
27
|
+
[codes]="[
|
|
28
|
+
{ label: 'HTML', lang: 'html', value: sizeHtml },
|
|
29
|
+
{ label: 'TypeScript', lang: 'typescript', value: sizeTs },
|
|
30
|
+
]"
|
|
31
|
+
title="Size"
|
|
32
|
+
>
|
|
33
|
+
<app-tabs-size-example />
|
|
34
|
+
</doc-example-component>
|
|
35
|
+
|
|
36
|
+
<doc-example-component
|
|
37
|
+
[codes]="[
|
|
38
|
+
{ label: 'HTML', lang: 'html', value: spacingHtml },
|
|
39
|
+
{ label: 'TypeScript', lang: 'typescript', value: spacingTs },
|
|
40
|
+
]"
|
|
41
|
+
title="Spacing"
|
|
42
|
+
>
|
|
43
|
+
<app-tabs-spacing-example />
|
|
44
|
+
</doc-example-component>
|
|
45
|
+
|
|
46
|
+
<doc-example-component
|
|
47
|
+
[codes]="[
|
|
48
|
+
{ label: 'HTML', lang: 'html', value: radiusHtml },
|
|
49
|
+
{ label: 'TypeScript', lang: 'typescript', value: radiusTs },
|
|
50
|
+
]"
|
|
51
|
+
title="Radius"
|
|
52
|
+
>
|
|
53
|
+
<app-tabs-radius-example />
|
|
54
|
+
</doc-example-component>
|
|
55
|
+
|
|
56
|
+
<doc-example-component
|
|
57
|
+
[codes]="[
|
|
58
|
+
{ label: 'HTML', lang: 'html', value: fluidHtml },
|
|
59
|
+
{ label: 'TypeScript', lang: 'typescript', value: fluidTs },
|
|
60
|
+
]"
|
|
61
|
+
title="Fluid"
|
|
62
|
+
>
|
|
63
|
+
<app-tabs-fluid-example />
|
|
64
|
+
</doc-example-component>
|
|
65
|
+
|
|
66
|
+
<doc-example-component
|
|
67
|
+
[codes]="[
|
|
68
|
+
{ label: 'HTML', lang: 'html', value: noBodyHtml },
|
|
69
|
+
{ label: 'TypeScript', lang: 'typescript', value: noBodyTs },
|
|
70
|
+
]"
|
|
71
|
+
title="No Body"
|
|
72
|
+
>
|
|
73
|
+
<app-tabs-no-body-example />
|
|
74
|
+
</doc-example-component>
|
|
75
|
+
|
|
76
|
+
<doc-example-component
|
|
77
|
+
[codes]="[
|
|
78
|
+
{ label: 'HTML', lang: 'html', value: slotsHtml },
|
|
79
|
+
{ label: 'TypeScript', lang: 'typescript', value: slotsTs },
|
|
80
|
+
]"
|
|
81
|
+
title="Custom Templates & Slots"
|
|
82
|
+
>
|
|
83
|
+
<app-tabs-slots-example />
|
|
84
|
+
</doc-example-component>
|
|
85
|
+
|
|
86
|
+
<doc-example-component
|
|
87
|
+
[codes]="[
|
|
88
|
+
{ label: 'HTML', lang: 'html', value: customStyleHtml },
|
|
89
|
+
{ label: 'TypeScript', lang: 'typescript', value: customStyleTs },
|
|
90
|
+
]"
|
|
91
|
+
title="Custom Style"
|
|
92
|
+
>
|
|
93
|
+
<app-tabs-custom-style-example />
|
|
94
|
+
</doc-example-component>
|
|
95
|
+
|
|
96
|
+
<doc-example-component
|
|
97
|
+
[codes]="[
|
|
98
|
+
{ label: 'HTML', lang: 'html', value: eventsHtml },
|
|
99
|
+
{ label: 'TypeScript', lang: 'typescript', value: eventsTs },
|
|
100
|
+
]"
|
|
101
|
+
title="Events"
|
|
102
|
+
>
|
|
103
|
+
<app-tabs-events-example />
|
|
104
|
+
</doc-example-component>
|
|
105
|
+
|
|
106
|
+
<doc-example-component
|
|
107
|
+
[codes]="[
|
|
108
|
+
{ label: 'HTML', lang: 'html', value: scrollHtml },
|
|
109
|
+
{ label: 'TypeScript', lang: 'typescript', value: scrollTs },
|
|
110
|
+
]"
|
|
111
|
+
title="Scroll Arrows"
|
|
112
|
+
>
|
|
113
|
+
<app-tabs-scroll-example />
|
|
114
|
+
</doc-example-component>
|
|
115
|
+
|
|
116
|
+
<doc-example-component
|
|
117
|
+
[codes]="[
|
|
118
|
+
{ label: 'HTML', lang: 'html', value: scrollIconHtml },
|
|
119
|
+
{ label: 'TypeScript', lang: 'typescript', value: scrollIconTs },
|
|
120
|
+
]"
|
|
121
|
+
title="Scroll Arrow Icons"
|
|
122
|
+
>
|
|
123
|
+
<app-tabs-scroll-icon-example />
|
|
124
|
+
</doc-example-component>
|
|
125
|
+
|
|
126
|
+
<doc-example-component
|
|
127
|
+
[codes]="[
|
|
128
|
+
{ label: 'HTML', lang: 'html', value: scrollSlotHtml },
|
|
129
|
+
{ label: 'TypeScript', lang: 'typescript', value: scrollSlotTs },
|
|
130
|
+
]"
|
|
131
|
+
title="Scroll Arrow Slots"
|
|
132
|
+
>
|
|
133
|
+
<app-tabs-scroll-slot-example />
|
|
134
|
+
</doc-example-component>
|
|
135
|
+
|
|
136
|
+
<doc-example-component
|
|
137
|
+
[codes]="[
|
|
138
|
+
{ label: 'HTML', lang: 'html', value: advancedDynamicHtml },
|
|
139
|
+
{ label: 'TypeScript', lang: 'typescript', value: advancedDynamicTs },
|
|
140
|
+
]"
|
|
141
|
+
title="Dynamic Tabs"
|
|
142
|
+
>
|
|
143
|
+
<app-tabs-advanced-dynamic-example />
|
|
144
|
+
</doc-example-component>
|
|
145
|
+
|
|
146
|
+
<doc-example-component
|
|
147
|
+
[codes]="[
|
|
148
|
+
{ label: 'HTML', lang: 'html', value: advancedFormHtml },
|
|
149
|
+
{ label: 'TypeScript', lang: 'typescript', value: advancedFormTs },
|
|
150
|
+
]"
|
|
151
|
+
title="Settings Form"
|
|
152
|
+
>
|
|
153
|
+
<app-tabs-advanced-form-example />
|
|
154
|
+
</doc-example-component>
|
|
155
|
+
|
|
156
|
+
<doc-example-component
|
|
157
|
+
[codes]="[
|
|
158
|
+
{ label: 'HTML', lang: 'html', value: advancedThemeHtml },
|
|
159
|
+
{ label: 'TypeScript', lang: 'typescript', value: advancedThemeTs },
|
|
160
|
+
]"
|
|
161
|
+
title="Theme Defaults"
|
|
162
|
+
>
|
|
163
|
+
<app-tabs-advanced-theme-example />
|
|
164
|
+
</doc-example-component>
|
|
165
|
+
</docs-layout>
|
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { DocsLayoutComponent, DocApiProperty } from '../../layouts/doc.layout';
|
|
4
|
+
import { DocExampleComponent } from '../../components/doc-example.component';
|
|
5
|
+
|
|
6
|
+
import { TabsBasicExample } from './examples/basic/tabs-basic.example';
|
|
7
|
+
import { TabsAppearanceExample } from './examples/appearance/tabs-appearance.example';
|
|
8
|
+
import { TabsSizeExample } from './examples/size/tabs-size.example';
|
|
9
|
+
import { TabsSpacingExample } from './examples/spacing/tabs-spacing.example';
|
|
10
|
+
import { TabsRadiusExample } from './examples/radius/tabs-radius.example';
|
|
11
|
+
import { TabsFluidExample } from './examples/fluid/tabs-fluid.example';
|
|
12
|
+
import { TabsNoBodyExample } from './examples/no-body/tabs-no-body.example';
|
|
13
|
+
import { TabsSlotsExample } from './examples/slots/tabs-slots.example';
|
|
14
|
+
import { TabsCustomStyleExample } from './examples/custom-style/tabs-custom-style.example';
|
|
15
|
+
import { TabsEventsExample } from './examples/events/tabs-events.example';
|
|
16
|
+
import { TabsAdvancedDynamicExample } from './examples/advanced-dynamic/tabs-advanced-dynamic.example';
|
|
17
|
+
import { TabsAdvancedFormExample } from './examples/advanced-form/tabs-advanced-form.example';
|
|
18
|
+
import { TabsAdvancedThemeExample } from './examples/advanced-theme/tabs-advanced-theme.example';
|
|
19
|
+
import { TabsScrollExample } from './examples/scroll/tabs-scroll.example';
|
|
20
|
+
import { TabsScrollIconExample } from './examples/scroll-icon/tabs-scroll-icon.example';
|
|
21
|
+
import { TabsScrollSlotExample } from './examples/scroll-slot/tabs-scroll-slot.example';
|
|
22
|
+
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import basicHtml from './examples/basic/tabs-basic.example.html' with { loader: 'text' };
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import basicTs from './examples/basic/tabs-basic.example.ts' with { loader: 'text' };
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import appearanceHtml from './examples/appearance/tabs-appearance.example.html' with {
|
|
29
|
+
loader: 'text',
|
|
30
|
+
};
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import appearanceTs from './examples/appearance/tabs-appearance.example.ts' with {
|
|
33
|
+
loader: 'text',
|
|
34
|
+
};
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import sizeHtml from './examples/size/tabs-size.example.html' with { loader: 'text' };
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import sizeTs from './examples/size/tabs-size.example.ts' with { loader: 'text' };
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
import spacingHtml from './examples/spacing/tabs-spacing.example.html' with { loader: 'text' };
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import spacingTs from './examples/spacing/tabs-spacing.example.ts' with { loader: 'text' };
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import radiusHtml from './examples/radius/tabs-radius.example.html' with { loader: 'text' };
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
import radiusTs from './examples/radius/tabs-radius.example.ts' with { loader: 'text' };
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
import fluidHtml from './examples/fluid/tabs-fluid.example.html' with { loader: 'text' };
|
|
49
|
+
// @ts-ignore
|
|
50
|
+
import fluidTs from './examples/fluid/tabs-fluid.example.ts' with { loader: 'text' };
|
|
51
|
+
// @ts-ignore
|
|
52
|
+
import noBodyHtml from './examples/no-body/tabs-no-body.example.html' with { loader: 'text' };
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
import noBodyTs from './examples/no-body/tabs-no-body.example.ts' with { loader: 'text' };
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
import slotsHtml from './examples/slots/tabs-slots.example.html' with { loader: 'text' };
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
import slotsTs from './examples/slots/tabs-slots.example.ts' with { loader: 'text' };
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
import customStyleHtml from './examples/custom-style/tabs-custom-style.example.html' with {
|
|
61
|
+
loader: 'text',
|
|
62
|
+
};
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
import customStyleTs from './examples/custom-style/tabs-custom-style.example.ts' with {
|
|
65
|
+
loader: 'text',
|
|
66
|
+
};
|
|
67
|
+
// @ts-ignore
|
|
68
|
+
import eventsHtml from './examples/events/tabs-events.example.html' with { loader: 'text' };
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
import eventsTs from './examples/events/tabs-events.example.ts' with { loader: 'text' };
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
import advancedDynamicHtml from './examples/advanced-dynamic/tabs-advanced-dynamic.example.html' with {
|
|
73
|
+
loader: 'text',
|
|
74
|
+
};
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
import advancedDynamicTs from './examples/advanced-dynamic/tabs-advanced-dynamic.example.ts' with {
|
|
77
|
+
loader: 'text',
|
|
78
|
+
};
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
import advancedFormHtml from './examples/advanced-form/tabs-advanced-form.example.html' with {
|
|
81
|
+
loader: 'text',
|
|
82
|
+
};
|
|
83
|
+
// @ts-ignore
|
|
84
|
+
import advancedFormTs from './examples/advanced-form/tabs-advanced-form.example.ts' with {
|
|
85
|
+
loader: 'text',
|
|
86
|
+
};
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
import advancedThemeHtml from './examples/advanced-theme/tabs-advanced-theme.example.html' with {
|
|
89
|
+
loader: 'text',
|
|
90
|
+
};
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
import advancedThemeTs from './examples/advanced-theme/tabs-advanced-theme.example.ts' with {
|
|
93
|
+
loader: 'text',
|
|
94
|
+
};
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
import scrollHtml from './examples/scroll/tabs-scroll.example.html' with { loader: 'text' };
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
import scrollTs from './examples/scroll/tabs-scroll.example.ts' with { loader: 'text' };
|
|
99
|
+
// @ts-ignore
|
|
100
|
+
import scrollIconHtml from './examples/scroll-icon/tabs-scroll-icon.example.html' with {
|
|
101
|
+
loader: 'text',
|
|
102
|
+
};
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
import scrollIconTs from './examples/scroll-icon/tabs-scroll-icon.example.ts' with {
|
|
105
|
+
loader: 'text',
|
|
106
|
+
};
|
|
107
|
+
// @ts-ignore
|
|
108
|
+
import scrollSlotHtml from './examples/scroll-slot/tabs-scroll-slot.example.html' with {
|
|
109
|
+
loader: 'text',
|
|
110
|
+
};
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
import scrollSlotTs from './examples/scroll-slot/tabs-scroll-slot.example.ts' with {
|
|
113
|
+
loader: 'text',
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
@Component({
|
|
117
|
+
imports: [
|
|
118
|
+
CommonModule,
|
|
119
|
+
DocsLayoutComponent,
|
|
120
|
+
DocExampleComponent,
|
|
121
|
+
TabsBasicExample,
|
|
122
|
+
TabsAppearanceExample,
|
|
123
|
+
TabsSizeExample,
|
|
124
|
+
TabsSpacingExample,
|
|
125
|
+
TabsRadiusExample,
|
|
126
|
+
TabsFluidExample,
|
|
127
|
+
TabsNoBodyExample,
|
|
128
|
+
TabsSlotsExample,
|
|
129
|
+
TabsCustomStyleExample,
|
|
130
|
+
TabsEventsExample,
|
|
131
|
+
TabsAdvancedDynamicExample,
|
|
132
|
+
TabsAdvancedFormExample,
|
|
133
|
+
TabsAdvancedThemeExample,
|
|
134
|
+
TabsScrollExample,
|
|
135
|
+
TabsScrollIconExample,
|
|
136
|
+
TabsScrollSlotExample,
|
|
137
|
+
],
|
|
138
|
+
templateUrl: './tabs.page.html',
|
|
139
|
+
selector: 'app-tabs-page',
|
|
140
|
+
standalone: true,
|
|
141
|
+
})
|
|
142
|
+
export class TabsDocPage {
|
|
143
|
+
protected basicHtml = basicHtml;
|
|
144
|
+
protected basicTs = basicTs;
|
|
145
|
+
|
|
146
|
+
protected appearanceHtml = appearanceHtml;
|
|
147
|
+
protected appearanceTs = appearanceTs;
|
|
148
|
+
|
|
149
|
+
protected sizeHtml = sizeHtml;
|
|
150
|
+
protected sizeTs = sizeTs;
|
|
151
|
+
|
|
152
|
+
protected spacingHtml = spacingHtml;
|
|
153
|
+
protected spacingTs = spacingTs;
|
|
154
|
+
|
|
155
|
+
protected radiusHtml = radiusHtml;
|
|
156
|
+
protected radiusTs = radiusTs;
|
|
157
|
+
|
|
158
|
+
protected fluidHtml = fluidHtml;
|
|
159
|
+
protected fluidTs = fluidTs;
|
|
160
|
+
|
|
161
|
+
protected noBodyHtml = noBodyHtml;
|
|
162
|
+
protected noBodyTs = noBodyTs;
|
|
163
|
+
|
|
164
|
+
protected slotsHtml = slotsHtml;
|
|
165
|
+
protected slotsTs = slotsTs;
|
|
166
|
+
|
|
167
|
+
protected customStyleHtml = customStyleHtml;
|
|
168
|
+
protected customStyleTs = customStyleTs;
|
|
169
|
+
|
|
170
|
+
protected eventsHtml = eventsHtml;
|
|
171
|
+
protected eventsTs = eventsTs;
|
|
172
|
+
|
|
173
|
+
protected advancedDynamicHtml = advancedDynamicHtml;
|
|
174
|
+
protected advancedDynamicTs = advancedDynamicTs;
|
|
175
|
+
|
|
176
|
+
protected advancedFormHtml = advancedFormHtml;
|
|
177
|
+
protected advancedFormTs = advancedFormTs;
|
|
178
|
+
|
|
179
|
+
protected advancedThemeHtml = advancedThemeHtml;
|
|
180
|
+
protected advancedThemeTs = advancedThemeTs;
|
|
181
|
+
|
|
182
|
+
protected scrollHtml = scrollHtml;
|
|
183
|
+
protected scrollTs = scrollTs;
|
|
184
|
+
|
|
185
|
+
protected scrollIconHtml = scrollIconHtml;
|
|
186
|
+
protected scrollIconTs = scrollIconTs;
|
|
187
|
+
|
|
188
|
+
protected scrollSlotHtml = scrollSlotHtml;
|
|
189
|
+
protected scrollSlotTs = scrollSlotTs;
|
|
190
|
+
|
|
191
|
+
protected readonly apiProps: DocApiProperty[] = [
|
|
192
|
+
{
|
|
193
|
+
name: 'items',
|
|
194
|
+
type: 'string[]',
|
|
195
|
+
defaultValue: '[]',
|
|
196
|
+
description:
|
|
197
|
+
'Renders one tab trigger per entry. When it is empty, the component falls back to the [tab-item-slot] templates.',
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
name: 'active-index',
|
|
201
|
+
type: 'number',
|
|
202
|
+
defaultValue: '0',
|
|
203
|
+
description: 'The index of the open tab. The component sets it in onTabsChange.',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'appearance',
|
|
207
|
+
type: "'solid' | 'subtle' | 'outline'",
|
|
208
|
+
defaultValue: "'subtle'",
|
|
209
|
+
description:
|
|
210
|
+
'Visual style of the tab strip. Outline removes the container and draws an underline instead.',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'size',
|
|
214
|
+
type: 'ScaleAttributeType',
|
|
215
|
+
defaultValue: "'md'",
|
|
216
|
+
description:
|
|
217
|
+
'Sizing of the tab strip and of the trigger buttons. none maps to xs and full maps to xl on the button scale.',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: 'spacing',
|
|
221
|
+
type: "'normal' | 'compact'",
|
|
222
|
+
defaultValue: "'normal'",
|
|
223
|
+
description: 'Padding and gap of the tab strip, and the gap above the body content.',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
name: 'radius',
|
|
227
|
+
type: 'ScaleAttributeType',
|
|
228
|
+
defaultValue: "'md'",
|
|
229
|
+
description: 'Border radius of the tab strip. Outline appearance always stays square.',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: 'fluid',
|
|
233
|
+
type: 'boolean',
|
|
234
|
+
defaultValue: 'false',
|
|
235
|
+
description: 'Stretches the triggers to fill the strip, so the tabs share the width evenly.',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'container-class',
|
|
239
|
+
type: 'string | object',
|
|
240
|
+
defaultValue: "''",
|
|
241
|
+
description: 'Class applied to the outer container.',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
name: 'list-class',
|
|
245
|
+
type: 'string | object',
|
|
246
|
+
defaultValue: "''",
|
|
247
|
+
description: 'Class applied to the tab strip.',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'content-class',
|
|
251
|
+
type: 'string | object',
|
|
252
|
+
defaultValue: "''",
|
|
253
|
+
description: 'Class applied to the body container.',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'container-style',
|
|
257
|
+
type: 'object',
|
|
258
|
+
defaultValue: 'null',
|
|
259
|
+
description:
|
|
260
|
+
'Inline style for the outer container. A good place to set the --tabs-* CSS variables.',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: 'list-style',
|
|
264
|
+
type: 'object',
|
|
265
|
+
defaultValue: 'null',
|
|
266
|
+
description: 'Inline style for the tab strip.',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: 'content-style',
|
|
270
|
+
type: 'object',
|
|
271
|
+
defaultValue: 'null',
|
|
272
|
+
description: 'Inline style for the body container.',
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: '(onTabsChange)',
|
|
276
|
+
type: 'EventEmitter<number>',
|
|
277
|
+
defaultValue: '-',
|
|
278
|
+
description:
|
|
279
|
+
'Fires when the active tab changes. It is not emitted when the active tab is clicked again.',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: '(onTabsClick)',
|
|
283
|
+
type: 'EventEmitter<number>',
|
|
284
|
+
defaultValue: '-',
|
|
285
|
+
description: 'Fires on every tab click, including the already active tab.',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: 'scroll-left-icon-name',
|
|
289
|
+
type: 'string',
|
|
290
|
+
defaultValue: "'chevron-left'",
|
|
291
|
+
description:
|
|
292
|
+
'Icon name for the left arrow. The arrow only renders while the strip overflows the container.',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: 'scroll-right-icon-name',
|
|
296
|
+
type: 'string',
|
|
297
|
+
defaultValue: "'chevron-right'",
|
|
298
|
+
description: 'Icon name for the right arrow.',
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: 'scroll-button-class',
|
|
302
|
+
type: 'string | object',
|
|
303
|
+
defaultValue: "''",
|
|
304
|
+
description: 'Class applied to both arrow buttons.',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'scroll-button-style',
|
|
308
|
+
type: 'object',
|
|
309
|
+
defaultValue: 'null',
|
|
310
|
+
description: 'Inline style applied to both arrow buttons.',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: '[tabs-scroll-left-slot]',
|
|
314
|
+
type: 'Content Slot',
|
|
315
|
+
defaultValue: '-',
|
|
316
|
+
description:
|
|
317
|
+
'Replaces the content of the left arrow button. The button itself, its disabled edge state and its visibility stay automatic.',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: '[tabs-scroll-right-slot]',
|
|
321
|
+
type: 'Content Slot',
|
|
322
|
+
defaultValue: '-',
|
|
323
|
+
description: 'Replaces the content of the right arrow button.',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
name: '[tab-item-slot]',
|
|
327
|
+
type: 'Content Slot',
|
|
328
|
+
defaultValue: '-',
|
|
329
|
+
description:
|
|
330
|
+
'Custom template for one tab trigger. The order of the templates defines the tab order. Used when items is empty.',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: 'default slot',
|
|
334
|
+
type: 'Content Slot',
|
|
335
|
+
defaultValue: '-',
|
|
336
|
+
description:
|
|
337
|
+
'The tab body. When nothing is projected, the component renders no body padding at all.',
|
|
338
|
+
},
|
|
339
|
+
];
|
|
340
|
+
}
|