dasar-ui 1.3.0 → 1.9.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 +92 -0
- package/Dockerfile +26 -0
- package/README.md +41 -40
- package/angular.json +114 -0
- package/docs/_config.yml +3 -0
- package/docs/getting-started.md +89 -0
- package/docs/index.md +9 -0
- package/docs/installation.md +46 -0
- package/package.json +57 -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 +112 -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.spec.ts +89 -0
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +294 -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 +730 -0
- package/projects/dasar-ui/src/lib/models/type.model.ts +11 -0
- package/projects/dasar-ui/src/lib/services/theme.service.spec.ts +130 -0
- package/projects/dasar-ui/src/lib/services/theme.service.ts +777 -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 +24 -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 +78 -0
- package/projects/documentation/src/app/app.spec.ts +23 -0
- package/projects/documentation/src/app/app.ts +57 -0
- package/projects/documentation/src/app/components/doc-customize-modal.component.ts +368 -0
- package/projects/documentation/src/app/components/doc-example.component.ts +195 -0
- package/projects/documentation/src/app/components/doc-markdown.component.ts +154 -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 +249 -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/getting-started/getting-started.page.ts +21 -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/installation/installation.page.ts +18 -0
- package/projects/documentation/src/app/pages/introduction/introduction.page.ts +18 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.html +29 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.ts +33 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.html +13 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.ts +30 -0
- package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.html +5 -0
- package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.html +20 -0
- package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.html +11 -0
- package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.ts +19 -0
- package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.html +7 -0
- package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.html +20 -0
- package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.ts +22 -0
- package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.html +9 -0
- package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.ts +16 -0
- package/projects/documentation/src/app/pages/list/examples/size/list-size.example.html +20 -0
- package/projects/documentation/src/app/pages/list/examples/size/list-size.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/list.page.html +95 -0
- package/projects/documentation/src/app/pages/list/list.page.ts +238 -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 +266 -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 +347 -0
- package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.html +13 -0
- package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.ts +20 -0
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.html +8 -0
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.scss +4 -0
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.ts +11 -0
- package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.html +13 -0
- package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.ts +33 -0
- package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.html +6 -0
- package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.ts +20 -0
- package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.html +15 -0
- package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.ts +31 -0
- package/projects/documentation/src/app/pages/theming/theming-component-config.page.ts +52 -0
- package/projects/documentation/src/app/pages/theming/theming-css-variables.page.ts +71 -0
- package/projects/documentation/src/app/pages/theming/theming-tokens.page.ts +56 -0
- package/projects/documentation/src/app/pages/theming/theming.data.ts +947 -0
- package/projects/documentation/src/app/pages/theming/theming.page.html +56 -0
- package/projects/documentation/src/app/pages/theming/theming.page.ts +144 -0
- package/projects/documentation/src/app/routes/app.routes.server.ts +8 -0
- package/projects/documentation/src/app/routes/app.routes.ts +135 -0
- package/projects/documentation/src/app/services/doc-customize.service.ts +119 -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 +19 -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
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { DocsLayoutComponent, DocApiProperty } from '../../layouts/doc.layout';
|
|
2
|
+
import { DocExampleComponent } from '../../components/doc-example.component';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { Component } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { DatepickerAppearanceExample } from './examples/appearance/datepicker-appearance.example';
|
|
7
|
+
import { DatepickerPlacementExample } from './examples/placement/datepicker-placement.example';
|
|
8
|
+
import { DatepickerFormatExample } from './examples/format/datepicker-format.example';
|
|
9
|
+
import { DatepickerStatesExample } from './examples/states/datepicker-states.example';
|
|
10
|
+
import { DatepickerFooterExample } from './examples/footer/datepicker-footer.example';
|
|
11
|
+
import { DatepickerBasicExample } from './examples/basic/datepicker-basic.example';
|
|
12
|
+
import { DatepickerSlotsExample } from './examples/slots/datepicker-slots.example';
|
|
13
|
+
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import basicHtml from './examples/basic/datepicker-basic.example.html' with { loader: 'text' };
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
import basicTs from './examples/basic/datepicker-basic.example.ts' with { loader: 'text' };
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import appearanceHtml from './examples/appearance/datepicker-appearance.example.html' with {
|
|
20
|
+
loader: 'text',
|
|
21
|
+
};
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import appearanceTs from './examples/appearance/datepicker-appearance.example.ts' with {
|
|
24
|
+
loader: 'text',
|
|
25
|
+
};
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import formatHtml from './examples/format/datepicker-format.example.html' with {
|
|
28
|
+
loader: 'text',
|
|
29
|
+
};
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import formatTs from './examples/format/datepicker-format.example.ts' with {
|
|
32
|
+
loader: 'text',
|
|
33
|
+
};
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import statesHtml from './examples/states/datepicker-states.example.html' with { loader: 'text' };
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import statesTs from './examples/states/datepicker-states.example.ts' with { loader: 'text' };
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import placementHtml from './examples/placement/datepicker-placement.example.html' with {
|
|
40
|
+
loader: 'text',
|
|
41
|
+
};
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import placementTs from './examples/placement/datepicker-placement.example.ts' with {
|
|
44
|
+
loader: 'text',
|
|
45
|
+
};
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import slotsHtml from './examples/slots/datepicker-slots.example.html' with { loader: 'text' };
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
import slotsTs from './examples/slots/datepicker-slots.example.ts' with { loader: 'text' };
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import footerHtml from './examples/footer/datepicker-footer.example.html' with {
|
|
52
|
+
loader: 'text',
|
|
53
|
+
};
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
import footerTs from './examples/footer/datepicker-footer.example.ts' with {
|
|
56
|
+
loader: 'text',
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
@Component({
|
|
60
|
+
imports: [
|
|
61
|
+
CommonModule,
|
|
62
|
+
DocsLayoutComponent,
|
|
63
|
+
DocExampleComponent,
|
|
64
|
+
DatepickerBasicExample,
|
|
65
|
+
DatepickerAppearanceExample,
|
|
66
|
+
DatepickerFormatExample,
|
|
67
|
+
DatepickerStatesExample,
|
|
68
|
+
DatepickerPlacementExample,
|
|
69
|
+
DatepickerSlotsExample,
|
|
70
|
+
DatepickerFooterExample,
|
|
71
|
+
],
|
|
72
|
+
templateUrl: './datepicker.page.html',
|
|
73
|
+
selector: 'app-datepicker-page',
|
|
74
|
+
standalone: true,
|
|
75
|
+
})
|
|
76
|
+
export class DatepickerDocPage {
|
|
77
|
+
public basicHtml = basicHtml;
|
|
78
|
+
public basicTs = basicTs;
|
|
79
|
+
public appearanceHtml = appearanceHtml;
|
|
80
|
+
public appearanceTs = appearanceTs;
|
|
81
|
+
public formatHtml = formatHtml;
|
|
82
|
+
public formatTs = formatTs;
|
|
83
|
+
public statesHtml = statesHtml;
|
|
84
|
+
public statesTs = statesTs;
|
|
85
|
+
public placementHtml = placementHtml;
|
|
86
|
+
public placementTs = placementTs;
|
|
87
|
+
public slotsHtml = slotsHtml;
|
|
88
|
+
public slotsTs = slotsTs;
|
|
89
|
+
public footerHtml = footerHtml;
|
|
90
|
+
public footerTs = footerTs;
|
|
91
|
+
|
|
92
|
+
protected readonly apiProps: DocApiProperty[] = [
|
|
93
|
+
{
|
|
94
|
+
name: 'value',
|
|
95
|
+
type: 'any',
|
|
96
|
+
defaultValue: 'null',
|
|
97
|
+
description:
|
|
98
|
+
'The currently selected date. Supports Angular two-way binding [(value)] and Reactive Forms.',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'display-format',
|
|
102
|
+
type: 'string',
|
|
103
|
+
defaultValue: "'DD-MM-YYYY'",
|
|
104
|
+
description: 'The date format shown in the input trigger (e.g., dd MMMM yyyy).',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: 'value-format',
|
|
108
|
+
type: 'string',
|
|
109
|
+
defaultValue: "'yyyy-MM-dd'",
|
|
110
|
+
description:
|
|
111
|
+
'The format of the returned value. Accepts date-fns strings, "iso", or "timestamp".',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'locale',
|
|
115
|
+
type: 'string',
|
|
116
|
+
defaultValue: "'en-US'",
|
|
117
|
+
description: 'Locale used for formatting month names, weekdays, etc. (e.g., id-ID).',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'appearance',
|
|
121
|
+
type: "'outline' | 'filled' | 'subtle'",
|
|
122
|
+
defaultValue: "'outline'",
|
|
123
|
+
description: 'The visual style of the trigger input.',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'size',
|
|
127
|
+
type: "'sm' | 'md' | 'lg'",
|
|
128
|
+
defaultValue: "'md'",
|
|
129
|
+
description: 'Controls the height, typographic scale and icon size of the input.',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'placement',
|
|
133
|
+
type: 'DasarDatepickerPlacement',
|
|
134
|
+
defaultValue: "'bottom-start'",
|
|
135
|
+
description: 'Preferred dropdown position. Auto-flips if there is no space.',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'clearable',
|
|
139
|
+
type: 'boolean',
|
|
140
|
+
defaultValue: 'false',
|
|
141
|
+
description: 'Displays an "x" icon to clear the selected date when hovered.',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'disabled',
|
|
145
|
+
type: 'boolean',
|
|
146
|
+
defaultValue: 'false',
|
|
147
|
+
description: 'Disables user interaction.',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'error',
|
|
151
|
+
type: 'boolean',
|
|
152
|
+
defaultValue: 'false',
|
|
153
|
+
description: 'Applies an error validation style to the input and hint text.',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'full-width',
|
|
157
|
+
type: 'boolean',
|
|
158
|
+
defaultValue: 'false',
|
|
159
|
+
description: 'Forces the host element to 100% width.',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'label / extra-label / hint',
|
|
163
|
+
type: 'string',
|
|
164
|
+
defaultValue: 'undefined',
|
|
165
|
+
description: 'Helper text rendered around the component.',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: '(valueChange) / (onDateSelected)',
|
|
169
|
+
type: 'EventEmitter<any>',
|
|
170
|
+
defaultValue: '-',
|
|
171
|
+
description: 'Emitted when a date is selected.',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: '[...-slot]',
|
|
175
|
+
type: 'Content Slot',
|
|
176
|
+
defaultValue: '-',
|
|
177
|
+
description:
|
|
178
|
+
'Directives like [prefix-slot], [label-slot], [extra-footer-slot] to project custom HTML.',
|
|
179
|
+
},
|
|
180
|
+
];
|
|
181
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<div style="display: flex; flex-direction: column; gap: 32px; width: 100%">
|
|
2
|
+
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap">
|
|
3
|
+
<div style="flex: 1; min-width: 200px">
|
|
4
|
+
<dasar-datepicker
|
|
5
|
+
label="Outline (Default)"
|
|
6
|
+
appearance="outline"
|
|
7
|
+
full-width
|
|
8
|
+
></dasar-datepicker>
|
|
9
|
+
</div>
|
|
10
|
+
<div style="flex: 1; min-width: 200px">
|
|
11
|
+
<dasar-datepicker label="Filled Appearance" appearance="filled" full-width></dasar-datepicker>
|
|
12
|
+
</div>
|
|
13
|
+
<div style="flex: 1; min-width: 200px">
|
|
14
|
+
<dasar-datepicker label="Subtle Appearance" appearance="subtle" full-width></dasar-datepicker>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div style="display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap">
|
|
19
|
+
<div style="flex: 1; min-width: 200px">
|
|
20
|
+
<dasar-datepicker label="Small Size" size="sm" full-width></dasar-datepicker>
|
|
21
|
+
</div>
|
|
22
|
+
<div style="flex: 1; min-width: 200px">
|
|
23
|
+
<dasar-datepicker label="Medium Size" size="md" full-width></dasar-datepicker>
|
|
24
|
+
</div>
|
|
25
|
+
<div style="flex: 1; min-width: 200px">
|
|
26
|
+
<dasar-datepicker label="Large Size" size="lg" full-width></dasar-datepicker>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarDatepickerComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './datepicker-appearance.example.html',
|
|
6
|
+
selector: 'app-datepicker-appearance-example',
|
|
7
|
+
imports: [DasarDatepickerComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerAppearanceExample {}
|
package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<div style="display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 320px">
|
|
2
|
+
<dasar-datepicker
|
|
3
|
+
label="Select a Date"
|
|
4
|
+
placeholder="Choose your birth date"
|
|
5
|
+
[(value)]="selectedDate"
|
|
6
|
+
full-width
|
|
7
|
+
></dasar-datepicker>
|
|
8
|
+
|
|
9
|
+
<p style="margin: 0; font-size: 14px; color: var(--theme-text-secondary-color)">
|
|
10
|
+
Returned Value: <strong>{{ selectedDate() || 'None' }}</strong>
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DasarDatepickerComponent } from 'dasar-ui';
|
|
2
|
+
import { Component, signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './datepicker-basic.example.html',
|
|
6
|
+
selector: 'app-datepicker-basic-example',
|
|
7
|
+
imports: [DasarDatepickerComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerBasicExample {
|
|
11
|
+
protected selectedDate = signal<string | null>(null);
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div style="width: 100%; max-width: 320px">
|
|
2
|
+
<dasar-datepicker
|
|
3
|
+
#dp
|
|
4
|
+
label="With Footer Actions"
|
|
5
|
+
placeholder="Select a date"
|
|
6
|
+
full-width
|
|
7
|
+
[(value)]="activeDate"
|
|
8
|
+
>
|
|
9
|
+
<div
|
|
10
|
+
extra-footer-slot
|
|
11
|
+
style="
|
|
12
|
+
padding: 12px;
|
|
13
|
+
border-top: 1px solid var(--theme-border-subtle-color);
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
align-items: center;
|
|
17
|
+
"
|
|
18
|
+
>
|
|
19
|
+
<dasar-button variant="ghost" size="sm" (click)="dp.clearValue($event)"> Clear </dasar-button>
|
|
20
|
+
<dasar-button variant="primary" size="sm" (click)="setToday(dp)"> Today </dasar-button>
|
|
21
|
+
</div>
|
|
22
|
+
</dasar-datepicker>
|
|
23
|
+
</div>
|
package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { DasarDatepickerComponent, DasarButtonComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
imports: [DasarDatepickerComponent, DasarButtonComponent],
|
|
6
|
+
templateUrl: './datepicker-footer.example.html',
|
|
7
|
+
selector: 'app-datepicker-footer-example',
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerFooterExample {
|
|
11
|
+
protected activeDate = signal<string | null>(null);
|
|
12
|
+
|
|
13
|
+
setToday(dpInstance: any) {
|
|
14
|
+
this.activeDate.set(new Date().toISOString());
|
|
15
|
+
dpInstance.isOpen = false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; width: 100%">
|
|
2
|
+
<div style="flex: 1; min-width: 250px">
|
|
3
|
+
<dasar-datepicker
|
|
4
|
+
label="Indonesian Format (id-ID)"
|
|
5
|
+
locale="id-ID"
|
|
6
|
+
display-format="dd MMMM yyyy"
|
|
7
|
+
value-format="yyyy-MM-dd"
|
|
8
|
+
hint="Displays as: 17 Agustus 1945"
|
|
9
|
+
[(value)]="idDate"
|
|
10
|
+
full-width
|
|
11
|
+
></dasar-datepicker>
|
|
12
|
+
<p style="font-size: 13px; color: gray; margin-top: 8px">
|
|
13
|
+
Bound output: {{ idDate() || 'null' }}
|
|
14
|
+
</p>
|
|
15
|
+
</div>
|
|
16
|
+
<div style="flex: 1; min-width: 250px">
|
|
17
|
+
<dasar-datepicker
|
|
18
|
+
label="American Format (en-US)"
|
|
19
|
+
locale="en-US"
|
|
20
|
+
display-format="MM/dd/yyyy"
|
|
21
|
+
value-format="timestamp"
|
|
22
|
+
hint="Outputs the raw JS Date timestamp"
|
|
23
|
+
[(value)]="usDate"
|
|
24
|
+
full-width
|
|
25
|
+
></dasar-datepicker>
|
|
26
|
+
<p style="font-size: 13px; color: gray; margin-top: 8px">
|
|
27
|
+
Bound output: {{ usDate() || 'null' }}
|
|
28
|
+
</p>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { DasarDatepickerComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './datepicker-format.example.html',
|
|
6
|
+
selector: 'app-datepicker-format-example',
|
|
7
|
+
imports: [DasarDatepickerComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerFormatExample {
|
|
11
|
+
protected idDate = signal<string | null>('2026-08-17');
|
|
12
|
+
protected usDate = signal<number | null>(new Date().getTime());
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
<div style="width: 250px">
|
|
3
|
+
<dasar-datepicker
|
|
4
|
+
label="Bottom Start (Default)"
|
|
5
|
+
placement="bottom-start"
|
|
6
|
+
full-width
|
|
7
|
+
></dasar-datepicker>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div style="width: 250px">
|
|
11
|
+
<dasar-datepicker
|
|
12
|
+
label="Top End"
|
|
13
|
+
placement="top-end"
|
|
14
|
+
hint="Dropdown opens upwards and aligns right."
|
|
15
|
+
full-width
|
|
16
|
+
></dasar-datepicker>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<p style="margin: 12px 0 0; font-size: 14px; color: var(--theme-text-secondary-color)">
|
|
21
|
+
<code>placement</code> is the <em>preferred</em> side of the trigger. When the preferred side has
|
|
22
|
+
no room left in the viewport, the panel automatically flips to the side with more space, both
|
|
23
|
+
vertically and horizontally, and it re-checks while you scroll or resize.
|
|
24
|
+
</p>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarDatepickerComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './datepicker-placement.example.html',
|
|
6
|
+
selector: 'app-datepicker-placement-example',
|
|
7
|
+
imports: [DasarDatepickerComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerPlacementExample {}
|
package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.html
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<div style="display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 400px">
|
|
2
|
+
<dasar-datepicker full-width>
|
|
3
|
+
<div label-slot style="display: flex; align-items: center; gap: 8px">
|
|
4
|
+
<dasar-icon name="calendar" size="sm"></dasar-icon>
|
|
5
|
+
<span style="font-weight: 600">Meeting Date</span>
|
|
6
|
+
</div>
|
|
7
|
+
<span extra-label-slot style="color: var(--theme-primary-color)">*Required</span>
|
|
8
|
+
<dasar-icon
|
|
9
|
+
prefix-slot
|
|
10
|
+
name="briefcase"
|
|
11
|
+
size="sm"
|
|
12
|
+
style="margin-left: 4px; color: gray"
|
|
13
|
+
></dasar-icon>
|
|
14
|
+
<div hint-slot style="display: flex; align-items: center; gap: 4px; margin-top: 4px">
|
|
15
|
+
<dasar-icon name="info-circle" size="xs"></dasar-icon>
|
|
16
|
+
<span>Select a date during business days.</span>
|
|
17
|
+
</div>
|
|
18
|
+
</dasar-datepicker>
|
|
19
|
+
</div>
|
package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarDatepickerComponent, DasarIconComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
imports: [DasarDatepickerComponent, DasarIconComponent],
|
|
6
|
+
templateUrl: './datepicker-slots.example.html',
|
|
7
|
+
selector: 'app-datepicker-slots-example',
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerSlotsExample {}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; width: 100%">
|
|
2
|
+
<div style="flex: 1; min-width: 200px">
|
|
3
|
+
<dasar-datepicker
|
|
4
|
+
label="Clearable Field"
|
|
5
|
+
[clearable]="true"
|
|
6
|
+
[(value)]="dateValue"
|
|
7
|
+
full-width
|
|
8
|
+
></dasar-datepicker>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div style="flex: 1; min-width: 200px">
|
|
12
|
+
<dasar-datepicker
|
|
13
|
+
label="Error State"
|
|
14
|
+
[error]="true"
|
|
15
|
+
hint="Please select a valid date in the future."
|
|
16
|
+
full-width
|
|
17
|
+
></dasar-datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div style="flex: 1; min-width: 200px">
|
|
21
|
+
<dasar-datepicker
|
|
22
|
+
label="Disabled State"
|
|
23
|
+
[disabled]="true"
|
|
24
|
+
hint="You cannot interact with this field."
|
|
25
|
+
full-width
|
|
26
|
+
></dasar-datepicker>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DasarDatepickerComponent } from 'dasar-ui';
|
|
2
|
+
import { Component, signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './datepicker-states.example.html',
|
|
6
|
+
selector: 'app-datepicker-states-example',
|
|
7
|
+
imports: [DasarDatepickerComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class DatepickerStatesExample {
|
|
11
|
+
protected dateValue = signal<string | null>(new Date().toISOString());
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { DocsLayoutComponent } from '../../layouts/doc.layout';
|
|
3
|
+
import { DocMarkdownComponent } from '../../components/doc-markdown.component';
|
|
4
|
+
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import source from '../../../../../../docs/getting-started.md' with { loader: 'text' };
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
imports: [DocsLayoutComponent, DocMarkdownComponent],
|
|
10
|
+
template: `<docs-layout
|
|
11
|
+
title="Getting Started"
|
|
12
|
+
description="Render a component, add the theme provider, and toggle light and dark mode."
|
|
13
|
+
>
|
|
14
|
+
<doc-markdown [source]="source" />
|
|
15
|
+
</docs-layout>`,
|
|
16
|
+
selector: 'app-getting-started-page',
|
|
17
|
+
standalone: true,
|
|
18
|
+
})
|
|
19
|
+
export class GettingStartedDocPage {
|
|
20
|
+
protected source = source;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<docs-layout
|
|
2
|
+
title="Icon"
|
|
3
|
+
description="Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat cupiditate odit ipsa quaerat blanditiis vel eveniet, aut esse laudantium similique quo nobis odio nostrum ipsam consequatur. Magni odit maiores nesciunt?"
|
|
4
|
+
[apiData]="apiProps"
|
|
5
|
+
>
|
|
6
|
+
<doc-example-component
|
|
7
|
+
[previewStyle]="{ display: 'flex', gap: '12px', 'align-items': 'center', 'flex-wrap': 'wrap' }"
|
|
8
|
+
[codes]="[{ label: 'HTML', lang: 'html', value: basicExampleCode }]"
|
|
9
|
+
title="Basic"
|
|
10
|
+
>
|
|
11
|
+
<dasar-icon name="home"></dasar-icon>
|
|
12
|
+
<dasar-icon name="home" color="red"></dasar-icon>
|
|
13
|
+
<dasar-icon name="home" [stroke]="1"></dasar-icon>
|
|
14
|
+
</doc-example-component>
|
|
15
|
+
</docs-layout>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DocsLayoutComponent, DocApiProperty } from '../../layouts/doc.layout';
|
|
2
|
+
import { DocExampleComponent } from '../../components/doc-example.component';
|
|
3
|
+
import { DasarCardComponent, DasarIconComponent } from 'dasar-ui';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { Component } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
imports: [
|
|
9
|
+
CommonModule,
|
|
10
|
+
DocsLayoutComponent,
|
|
11
|
+
DasarCardComponent,
|
|
12
|
+
DasarIconComponent,
|
|
13
|
+
DocExampleComponent,
|
|
14
|
+
],
|
|
15
|
+
templateUrl: './icon.page.html',
|
|
16
|
+
selector: 'app-icon-page',
|
|
17
|
+
standalone: true,
|
|
18
|
+
})
|
|
19
|
+
export class IconDocPage {
|
|
20
|
+
protected readonly apiProps: DocApiProperty[] = [
|
|
21
|
+
{
|
|
22
|
+
name: 'name',
|
|
23
|
+
type: 'string',
|
|
24
|
+
defaultValue: "''",
|
|
25
|
+
description: 'The exact key of the icon registered in ICON_REGISTRY to render.',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'size',
|
|
29
|
+
type: 'DasarIconSizeType',
|
|
30
|
+
defaultValue: "'md'",
|
|
31
|
+
description:
|
|
32
|
+
"Controls the size of the icon. Accepts scale tokens (e.g., 'sm', 'md', 'lg') or a custom number (rendered in pixels).",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'color',
|
|
36
|
+
type: 'string',
|
|
37
|
+
defaultValue: "'currentColor'",
|
|
38
|
+
description:
|
|
39
|
+
'Sets the stroke color of the SVG. Inherits the surrounding text color by default.',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'stroke',
|
|
43
|
+
type: 'number',
|
|
44
|
+
defaultValue: '2',
|
|
45
|
+
description: 'Defines the stroke-width (thickness) of the SVG paths.',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'fluid',
|
|
49
|
+
type: 'boolean',
|
|
50
|
+
defaultValue: 'false',
|
|
51
|
+
description:
|
|
52
|
+
'Strips fixed sizing constraints, allowing the icon to fill 100% of its container.',
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
protected readonly basicExampleCode = `
|
|
56
|
+
<dasar-icon name="home"></dasar-icon>
|
|
57
|
+
<dasar-icon name="home" color="red"></dasar-icon>
|
|
58
|
+
<dasar-icon name="home" [stroke]="1"></dasar-icon>
|
|
59
|
+
`;
|
|
60
|
+
}
|
package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.html
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div style="display: flex; flex-direction: column; gap: 32px; width: 100%">
|
|
2
|
+
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap">
|
|
3
|
+
<div style="flex: 1; min-width: 200px">
|
|
4
|
+
<dasar-input label="Outline (Default)" appearance="outline" full-width></dasar-input>
|
|
5
|
+
</div>
|
|
6
|
+
<div style="flex: 1; min-width: 200px">
|
|
7
|
+
<dasar-input label="Filled Appearance" appearance="filled" full-width></dasar-input>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div style="display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap">
|
|
12
|
+
<div style="flex: 1; min-width: 200px">
|
|
13
|
+
<dasar-input label="Small Size" size="sm" placeholder="Small input" full-width></dasar-input>
|
|
14
|
+
</div>
|
|
15
|
+
<div style="flex: 1; min-width: 200px">
|
|
16
|
+
<dasar-input
|
|
17
|
+
label="Medium Size"
|
|
18
|
+
size="md"
|
|
19
|
+
placeholder="Medium input"
|
|
20
|
+
full-width
|
|
21
|
+
></dasar-input>
|
|
22
|
+
</div>
|
|
23
|
+
<div style="flex: 1; min-width: 200px">
|
|
24
|
+
<dasar-input label="Large Size" size="lg" placeholder="Large input" full-width></dasar-input>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarInputComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './input-appearance.example.html',
|
|
6
|
+
selector: 'app-input-appearance-example',
|
|
7
|
+
imports: [DasarInputComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class InputAppearanceExample {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div style="display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 320px">
|
|
2
|
+
<dasar-input
|
|
3
|
+
label="Email Address"
|
|
4
|
+
placeholder="Enter your email"
|
|
5
|
+
type="email"
|
|
6
|
+
[(ngModel)]="emailValue"
|
|
7
|
+
full-width
|
|
8
|
+
></dasar-input>
|
|
9
|
+
|
|
10
|
+
<p style="margin: 0; font-size: 14px; color: var(--theme-text-secondary-color)">
|
|
11
|
+
Bound Value: <strong>{{ emailValue || 'None' }}</strong>
|
|
12
|
+
</p>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DasarInputComponent } from 'dasar-ui';
|
|
2
|
+
import { FormsModule } from '@angular/forms';
|
|
3
|
+
import { Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
imports: [FormsModule, DasarInputComponent],
|
|
7
|
+
templateUrl: './input-basic.example.html',
|
|
8
|
+
selector: 'app-input-basic-example',
|
|
9
|
+
standalone: true,
|
|
10
|
+
})
|
|
11
|
+
export class InputBasicExample {
|
|
12
|
+
protected emailValue: string = '';
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; width: 100%">
|
|
2
|
+
<div style="flex: 1; min-width: 250px">
|
|
3
|
+
<dasar-input
|
|
4
|
+
label="Currency (Thousand Mask)"
|
|
5
|
+
placeholder="1.000.000"
|
|
6
|
+
mask="thousand"
|
|
7
|
+
[(ngModel)]="amount"
|
|
8
|
+
full-width
|
|
9
|
+
></dasar-input>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div style="flex: 1; min-width: 250px">
|
|
13
|
+
<dasar-input
|
|
14
|
+
label="Date Mask"
|
|
15
|
+
placeholder="DD/MM/YYYY"
|
|
16
|
+
mask="date"
|
|
17
|
+
[(ngModel)]="dateStr"
|
|
18
|
+
full-width
|
|
19
|
+
></dasar-input>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div style="flex: 1; min-width: 250px">
|
|
23
|
+
<dasar-input
|
|
24
|
+
label="Custom Mask (Uppercase)"
|
|
25
|
+
placeholder="XYZ-123"
|
|
26
|
+
[mask]="customUpperMask"
|
|
27
|
+
[(ngModel)]="promoCode"
|
|
28
|
+
full-width
|
|
29
|
+
></dasar-input>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|