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,189 @@
|
|
|
1
|
+
<div class="dasar-select-wrapper">
|
|
2
|
+
@if (label || extraLabelSlot) {
|
|
3
|
+
<div class="dasar-select-label-row">
|
|
4
|
+
@if (label) {
|
|
5
|
+
<label class="dasar-select-label">{{ label }}</label>
|
|
6
|
+
} @else {
|
|
7
|
+
<ng-content select="[label-slot]"></ng-content>
|
|
8
|
+
}
|
|
9
|
+
@if (extraLabelSlot) {
|
|
10
|
+
<ng-content select="[extra-label-slot]"></ng-content>
|
|
11
|
+
} @else if (labelRight) {
|
|
12
|
+
<span class="dasar-select-label-right">{{ labelRight }}</span>
|
|
13
|
+
}
|
|
14
|
+
</div>
|
|
15
|
+
}
|
|
16
|
+
<div
|
|
17
|
+
#triggerEl
|
|
18
|
+
class="dasar-select-container appearance-{{ appearance }} size-{{ size }} radius-{{ radius }}"
|
|
19
|
+
[class.hide-overflow]="hideOverflow"
|
|
20
|
+
[class.full-width]="fullWidth"
|
|
21
|
+
[class.disabled]="disabled"
|
|
22
|
+
[class.error]="error"
|
|
23
|
+
[class.open]="isOpen"
|
|
24
|
+
[ngClass]="containerClass"
|
|
25
|
+
[ngStyle]="containerStyle"
|
|
26
|
+
(click)="toggleDropdown()"
|
|
27
|
+
>
|
|
28
|
+
<ng-content select="[prefix-slot]"></ng-content>
|
|
29
|
+
<div
|
|
30
|
+
class="dasar-select-value-display"
|
|
31
|
+
[class.is-multiple]="isMultiple"
|
|
32
|
+
[class.display-chip]="isMultiple && multipleType === 'chip'"
|
|
33
|
+
>
|
|
34
|
+
@if (isMultiple) {
|
|
35
|
+
@if (multipleType === 'chip') {
|
|
36
|
+
@for (option of selectedOptions; track option.value) {
|
|
37
|
+
@if (chipTemplate) {
|
|
38
|
+
<ng-container
|
|
39
|
+
*ngTemplateOutlet="
|
|
40
|
+
chipTemplate.templateRef;
|
|
41
|
+
context: {
|
|
42
|
+
$implicit: option,
|
|
43
|
+
selectInstance: this,
|
|
44
|
+
}
|
|
45
|
+
"
|
|
46
|
+
>
|
|
47
|
+
</ng-container>
|
|
48
|
+
} @else {
|
|
49
|
+
<dasar-chip
|
|
50
|
+
[size]="chipSize"
|
|
51
|
+
[label]="option.label"
|
|
52
|
+
[removable]="!disabled"
|
|
53
|
+
[ngClass]="option.chipClass"
|
|
54
|
+
[ngStyle]="option.chipStyle"
|
|
55
|
+
[variant]="option.chipVariant ?? 'primary'"
|
|
56
|
+
(onClicked)="$event.stopPropagation()"
|
|
57
|
+
(onRemoved)="removeOption(option, $event)"
|
|
58
|
+
>
|
|
59
|
+
</dasar-chip>
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
} @else {
|
|
63
|
+
@if (!searchable || !isOpen) {
|
|
64
|
+
@if (selectedOptions.length > 0) {
|
|
65
|
+
<span class="dasar-select-selected-text">{{ getMultipleDisplayText() }}</span>
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@if (!isMultiple && (!searchable || !isOpen)) {
|
|
71
|
+
@if (selectedOption) {
|
|
72
|
+
<span class="dasar-select-selected-text">{{ selectedOption.label }}</span>
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
@if (!hasValue && (!searchable || !isOpen)) {
|
|
76
|
+
<span class="dasar-select-placeholder">{{ placeholder }}</span>
|
|
77
|
+
}
|
|
78
|
+
@if (searchable && isOpen) {
|
|
79
|
+
<input
|
|
80
|
+
#searchInput
|
|
81
|
+
type="text"
|
|
82
|
+
class="dasar-select-search-input"
|
|
83
|
+
[placeholder]="
|
|
84
|
+
hasValue && isMultiple && multipleType === 'chip'
|
|
85
|
+
? ''
|
|
86
|
+
: hasValue && !isMultiple
|
|
87
|
+
? (selectedOption?.label ?? '')
|
|
88
|
+
: hasValue && isMultiple && multipleType === 'text'
|
|
89
|
+
? getMultipleDisplayText()
|
|
90
|
+
: placeholder
|
|
91
|
+
"
|
|
92
|
+
[disabled]="disabled"
|
|
93
|
+
[(ngModel)]="searchQuery"
|
|
94
|
+
(ngModelChange)="onSearchInput($event)"
|
|
95
|
+
(click)="$event.stopPropagation()"
|
|
96
|
+
(blur)="onInputBlur()"
|
|
97
|
+
(focus)="onInputFocus()"
|
|
98
|
+
/>
|
|
99
|
+
}
|
|
100
|
+
</div>
|
|
101
|
+
@if (loading) {
|
|
102
|
+
<div class="dasar-select-loader-wrapper">
|
|
103
|
+
<dasar-icon name="loader" [size]="iconSize" class="spinning-icon"></dasar-icon>
|
|
104
|
+
</div>
|
|
105
|
+
}
|
|
106
|
+
@if (clearable && hasValue && !disabled) {
|
|
107
|
+
<dasar-icon
|
|
108
|
+
class="dasar-select-clear-btn"
|
|
109
|
+
tabindex="-1"
|
|
110
|
+
[size]="iconSize"
|
|
111
|
+
name="x"
|
|
112
|
+
(click)="clearSelection($event)"
|
|
113
|
+
></dasar-icon>
|
|
114
|
+
}
|
|
115
|
+
<ng-content select="[suffix-slot]"></ng-content>
|
|
116
|
+
<dasar-button
|
|
117
|
+
class="dasar-select-arrow-btn"
|
|
118
|
+
variant="ghost"
|
|
119
|
+
tabindex="-1"
|
|
120
|
+
icon-only
|
|
121
|
+
[class.rotated]="isOpen"
|
|
122
|
+
[disabled]="disabled"
|
|
123
|
+
[size]="size"
|
|
124
|
+
>
|
|
125
|
+
<dasar-icon [name]="arrowIconName" [size]="iconSize"></dasar-icon>
|
|
126
|
+
</dasar-button>
|
|
127
|
+
</div>
|
|
128
|
+
@if (isOpen && !disabled) {
|
|
129
|
+
<div
|
|
130
|
+
#panelEl
|
|
131
|
+
class="dasar-select-dropdown-panel size-{{ size }} radius-{{ radius }} placement-{{
|
|
132
|
+
currentPlacement
|
|
133
|
+
}}"
|
|
134
|
+
[ngClass]="dropdownPanelClass"
|
|
135
|
+
[ngStyle]="dropdownPanelStyle"
|
|
136
|
+
>
|
|
137
|
+
@if (loading) {
|
|
138
|
+
@if (optionLoadingSlot) {
|
|
139
|
+
<ng-content select="[option-loading-slot]"></ng-content>
|
|
140
|
+
} @else {
|
|
141
|
+
<div class="dasar-select-loading-state">
|
|
142
|
+
<span>Loading options...</span>
|
|
143
|
+
</div>
|
|
144
|
+
}
|
|
145
|
+
} @else if (filteredOptions.length === 0) {
|
|
146
|
+
@if (optionEmptySlot) {
|
|
147
|
+
<ng-content select="[option-empty-slot]"></ng-content>
|
|
148
|
+
} @else {
|
|
149
|
+
<div class="dasar-select-empty-state">
|
|
150
|
+
<span>No options found</span>
|
|
151
|
+
</div>
|
|
152
|
+
}
|
|
153
|
+
} @else {
|
|
154
|
+
@for (option of filteredOptions; track option.value) {
|
|
155
|
+
<div
|
|
156
|
+
class="dasar-select-option"
|
|
157
|
+
[class.selected]="isOptionSelected(option)"
|
|
158
|
+
[class.disabled]="option.disabled"
|
|
159
|
+
[ngClass]="optionClass"
|
|
160
|
+
(click)="selectOption(option, $event)"
|
|
161
|
+
>
|
|
162
|
+
@if (isMultiple) {
|
|
163
|
+
<input
|
|
164
|
+
type="checkbox"
|
|
165
|
+
[checked]="isOptionSelected(option)"
|
|
166
|
+
[disabled]="option.disabled"
|
|
167
|
+
/>
|
|
168
|
+
}
|
|
169
|
+
@if (optionTemplate) {
|
|
170
|
+
<ng-container
|
|
171
|
+
*ngTemplateOutlet="optionTemplate.templateRef; context: { $implicit: option }"
|
|
172
|
+
></ng-container>
|
|
173
|
+
} @else {
|
|
174
|
+
@if (option.iconName) {
|
|
175
|
+
<dasar-icon [name]="option.iconName" [size]="iconSize"></dasar-icon>
|
|
176
|
+
}
|
|
177
|
+
<span class="option-label">{{ option.label }}</span>
|
|
178
|
+
}
|
|
179
|
+
</div>
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
</div>
|
|
183
|
+
}
|
|
184
|
+
@if (hint) {
|
|
185
|
+
<div class="dasar-select-hint" [class.error]="error" [class.disabled]="disabled">
|
|
186
|
+
{{ hint }}
|
|
187
|
+
</div>
|
|
188
|
+
}
|
|
189
|
+
</div>
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
@use '../../styles/theme.scss' as *;
|
|
2
|
+
|
|
3
|
+
.dasar-select {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
position: relative;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
|
|
9
|
+
&.full-width {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.disabled {
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dasar-select-wrapper {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: var(--select-wrapper-gap, var(--space-1));
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dasar-select-label-row {
|
|
26
|
+
font-weight: var(--select-label-font-weight, var(--font-weight-medium));
|
|
27
|
+
color: var(--select-label-color, var(--theme-text-primary-color));
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
align-items: center;
|
|
30
|
+
line-height: var(--line-height-tight);
|
|
31
|
+
display: flex;
|
|
32
|
+
|
|
33
|
+
.dasar-select-label {
|
|
34
|
+
font-size: var(--select-label-font-size, var(--font-size-md));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dasar-select-label-right {
|
|
38
|
+
font-size: var(--select-label-right-font-size, var(--font-size-sm));
|
|
39
|
+
color: var(--select-label-right-color, var(--theme-text-secondary-color));
|
|
40
|
+
font-weight: var(--font-weight-regular);
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: var(--space-1);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dasar-select-container {
|
|
48
|
+
color: var(--select-color, var(--theme-text-secondary-color));
|
|
49
|
+
padding: 0 0 0 var(--select-padding-left, var(--space-base));
|
|
50
|
+
border-radius: var(--select-radius-sm, var(--radius-sm));
|
|
51
|
+
gap: var(--select-gap, var(--space-base));
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
font-family: inherit;
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
user-select: none;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
width: auto;
|
|
59
|
+
|
|
60
|
+
&.hide-overflow {
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.appearance-outline {
|
|
65
|
+
background-color: var(--select-outline-bg, transparent);
|
|
66
|
+
border: 1px solid var(--select-outline-border, var(--theme-border-strong-color));
|
|
67
|
+
|
|
68
|
+
&:hover:not(.disabled) {
|
|
69
|
+
border-color: var(--select-outline-hover-border, var(--theme-primary-color));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.open,
|
|
73
|
+
&:focus-within {
|
|
74
|
+
border-color: var(--select-outline-focus-border, var(--theme-primary-color));
|
|
75
|
+
box-shadow: 0 0 0 3px var(--select-outline-focus-ring, var(--theme-primary-surface-color));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.appearance-filled {
|
|
80
|
+
background-color: var(--select-filled-bg, var(--theme-bg-hover-color));
|
|
81
|
+
border: 1px solid var(--select-filled-border, transparent);
|
|
82
|
+
|
|
83
|
+
&:hover:not(.disabled) {
|
|
84
|
+
background-color: var(--select-filled-hover-bg, var(--theme-border-subtle-color));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&.open,
|
|
88
|
+
&:focus-within {
|
|
89
|
+
background-color: var(--select-filled-focus-bg, var(--theme-bg-surface-color));
|
|
90
|
+
border-color: var(--select-filled-focus-border, var(--theme-primary-color));
|
|
91
|
+
box-shadow: 0 0 0 3px var(--select-filled-focus-ring, var(--theme-primary-surface-color));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&.error {
|
|
96
|
+
border-color: var(--select-error-border, var(--theme-danger-color)) !important;
|
|
97
|
+
|
|
98
|
+
&.open,
|
|
99
|
+
&:focus-within {
|
|
100
|
+
box-shadow: 0 0 0 3px var(--select-error-focus-ring, var(--theme-danger-surface-color));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.disabled {
|
|
105
|
+
background-color: var(--select-disabled-bg, var(--theme-bg-hover-color)) !important;
|
|
106
|
+
border-color: var(--select-disabled-border, transparent) !important;
|
|
107
|
+
cursor: not-allowed;
|
|
108
|
+
opacity: var(--select-disabled-opacity, 0.6);
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.size-xs {
|
|
113
|
+
height: var(--select-height-xs, var(--space-6));
|
|
114
|
+
padding: 0 var(--select-padding-horizontal-xs, var(--space-base));
|
|
115
|
+
font-size: var(--font-size-xs);
|
|
116
|
+
padding-right: 0;
|
|
117
|
+
|
|
118
|
+
&:has([prefix-slot], [chip-template]) {
|
|
119
|
+
padding-left: 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.size-sm {
|
|
124
|
+
height: var(--select-height-sm, var(--space-8));
|
|
125
|
+
padding: 0 var(--select-padding-horizontal-sm, var(--space-3));
|
|
126
|
+
font-size: var(--font-size-sm);
|
|
127
|
+
padding-right: 0;
|
|
128
|
+
|
|
129
|
+
&:has([prefix-slot], [chip-template]) {
|
|
130
|
+
padding-left: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.size-md {
|
|
135
|
+
height: var(--select-height-md, var(--space-10));
|
|
136
|
+
padding: 0 var(--select-padding-horizontal-md, var(--space-4));
|
|
137
|
+
font-size: var(--font-size-base);
|
|
138
|
+
padding-right: 0;
|
|
139
|
+
|
|
140
|
+
&:has([prefix-slot], [chip-template]) {
|
|
141
|
+
padding-left: 0;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.size-lg {
|
|
146
|
+
height: var(--select-height-lg, var(--space-12));
|
|
147
|
+
padding: 0 var(--select-padding-horizontal-lg, var(--space-5));
|
|
148
|
+
font-size: var(--font-size-lg);
|
|
149
|
+
padding-right: 0;
|
|
150
|
+
|
|
151
|
+
&:has([prefix-slot], [chip-template]) {
|
|
152
|
+
padding-left: 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&.size-xl {
|
|
157
|
+
height: var(--select-height-xl, var(--space-16));
|
|
158
|
+
padding: 0 var(--select-padding-horizontal-xl, var(--space-6));
|
|
159
|
+
font-size: var(--font-size-xl, chip-template);
|
|
160
|
+
padding-right: 0;
|
|
161
|
+
|
|
162
|
+
&:has([prefix-slot]) {
|
|
163
|
+
padding-left: 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.radius-none {
|
|
168
|
+
border-radius: var(--select-radius-none, var(--radius-none));
|
|
169
|
+
}
|
|
170
|
+
&.radius-xs {
|
|
171
|
+
border-radius: var(--select-radius-xs, var(--radius-xs));
|
|
172
|
+
}
|
|
173
|
+
&.radius-sm {
|
|
174
|
+
border-radius: var(--select-radius-sm, var(--radius-sm));
|
|
175
|
+
}
|
|
176
|
+
&.radius-md {
|
|
177
|
+
border-radius: var(--select-radius-md, var(--radius-md));
|
|
178
|
+
}
|
|
179
|
+
&.radius-lg {
|
|
180
|
+
border-radius: var(--select-radius-lg, var(--radius-lg));
|
|
181
|
+
}
|
|
182
|
+
&.radius-xl {
|
|
183
|
+
border-radius: var(--select-radius-xl, var(--radius-xl));
|
|
184
|
+
}
|
|
185
|
+
&.radius-full {
|
|
186
|
+
border-radius: var(--select-radius-full, var(--radius-full));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.dasar-select-value-display {
|
|
191
|
+
color: var(--select-value-color, var(--theme-text-primary-color));
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: var(--space-1);
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
min-height: 24px;
|
|
196
|
+
flex-wrap: wrap;
|
|
197
|
+
display: flex;
|
|
198
|
+
flex: 1;
|
|
199
|
+
|
|
200
|
+
&.is-multiple {
|
|
201
|
+
scrollbar-width: thin;
|
|
202
|
+
flex-wrap: nowrap;
|
|
203
|
+
overflow: auto;
|
|
204
|
+
display: flex;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.dasar-select-selected-text {
|
|
209
|
+
text-wrap: nowrap;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.dasar-select-placeholder {
|
|
213
|
+
color: var(--select-placeholder-color, var(--theme-text-secondary-color));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.dasar-select-search-input {
|
|
217
|
+
flex: 1;
|
|
218
|
+
min-width: 60px;
|
|
219
|
+
border: none;
|
|
220
|
+
outline: none;
|
|
221
|
+
background: transparent;
|
|
222
|
+
font-family: inherit;
|
|
223
|
+
font-size: inherit;
|
|
224
|
+
color: var(--select-search-color, var(--theme-text-primary-color));
|
|
225
|
+
padding: 0;
|
|
226
|
+
|
|
227
|
+
&::placeholder {
|
|
228
|
+
color: var(--select-search-placeholder-color, var(--theme-text-secondary-color));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.dasar-select-loader-wrapper {
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
align-items: center;
|
|
235
|
+
color: var(--select-loader-color, var(--theme-text-secondary-color));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.dasar-select-arrow-btn {
|
|
239
|
+
transition: transform 0.2s ease;
|
|
240
|
+
pointer-events: none;
|
|
241
|
+
color: var(--select-arrow-color, var(--theme-text-secondary-color));
|
|
242
|
+
|
|
243
|
+
&.rotated {
|
|
244
|
+
transform: rotate(180deg);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.dasar-select-dropdown-panel {
|
|
249
|
+
position: absolute;
|
|
250
|
+
width: 100%;
|
|
251
|
+
max-height: var(--select-dropdown-max-height, 240px);
|
|
252
|
+
overflow-y: auto;
|
|
253
|
+
background-color: var(--select-dropdown-bg, var(--theme-bg-surface-color));
|
|
254
|
+
border: 1px solid var(--select-dropdown-border, var(--theme-border-subtle-color));
|
|
255
|
+
border-radius: var(--select-dropdown-radius, var(--radius-sm));
|
|
256
|
+
box-shadow: var(
|
|
257
|
+
--select-dropdown-shadow,
|
|
258
|
+
0 10px 25px -5px rgba(0, 0, 0, 0.1),
|
|
259
|
+
0 8px 10px -6px rgba(0, 0, 0, 0.1)
|
|
260
|
+
);
|
|
261
|
+
z-index: var(--select-dropdown-z-index, 50);
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-direction: column;
|
|
264
|
+
|
|
265
|
+
&.radius-none {
|
|
266
|
+
border-radius: var(--select-dropdown-radius-none, var(--radius-none));
|
|
267
|
+
}
|
|
268
|
+
&.radius-xs {
|
|
269
|
+
border-radius: var(--select-dropdown-radius-xs, var(--radius-xs));
|
|
270
|
+
}
|
|
271
|
+
&.radius-sm {
|
|
272
|
+
border-radius: var(--select-dropdown-radius-sm, var(--radius-sm));
|
|
273
|
+
}
|
|
274
|
+
&.radius-md {
|
|
275
|
+
border-radius: var(--select-dropdown-radius-md, var(--radius-md));
|
|
276
|
+
}
|
|
277
|
+
&.radius-lg {
|
|
278
|
+
border-radius: var(--select-dropdown-radius-lg, var(--radius-lg));
|
|
279
|
+
}
|
|
280
|
+
&.radius-xl {
|
|
281
|
+
border-radius: var(--select-dropdown-radius-xl, var(--radius-xl));
|
|
282
|
+
}
|
|
283
|
+
&.radius-full {
|
|
284
|
+
border-radius: var(--select-dropdown-radius-full, var(--radius-lg));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&.placement-bottom-start {
|
|
288
|
+
top: calc(100% + var(--select-dropdown-offset, 4px));
|
|
289
|
+
right: auto;
|
|
290
|
+
left: 0;
|
|
291
|
+
}
|
|
292
|
+
&.placement-bottom-end {
|
|
293
|
+
top: calc(100% + var(--select-dropdown-offset, 4px));
|
|
294
|
+
right: 0;
|
|
295
|
+
left: auto;
|
|
296
|
+
}
|
|
297
|
+
&.placement-top-start {
|
|
298
|
+
right: auto;
|
|
299
|
+
bottom: calc(100% + var(--select-dropdown-offset, 4px));
|
|
300
|
+
top: auto;
|
|
301
|
+
left: 0;
|
|
302
|
+
}
|
|
303
|
+
&.placement-top-end {
|
|
304
|
+
bottom: calc(100% + var(--select-dropdown-offset, 4px));
|
|
305
|
+
top: auto;
|
|
306
|
+
right: 0;
|
|
307
|
+
left: auto;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.dasar-select-option {
|
|
312
|
+
padding: var(--select-option-padding-y, var(--space-3))
|
|
313
|
+
var(--select-option-padding-x, var(--space-4));
|
|
314
|
+
color: var(--select-option-color, var(--theme-text-primary-color));
|
|
315
|
+
transition: background-color 0.15s ease;
|
|
316
|
+
gap: var(--space-base);
|
|
317
|
+
align-items: center;
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
display: flex;
|
|
320
|
+
|
|
321
|
+
.dasar-select-dropdown-panel.size-xs & {
|
|
322
|
+
font-size: var(--font-size-xs);
|
|
323
|
+
|
|
324
|
+
padding: var(--select-option-padding-y, var(--space-1))
|
|
325
|
+
var(--select-option-padding-x, var(--space-base));
|
|
326
|
+
}
|
|
327
|
+
.dasar-select-dropdown-panel.size-sm & {
|
|
328
|
+
font-size: var(--font-size-sm);
|
|
329
|
+
|
|
330
|
+
padding: var(--select-option-padding-y, var(--space-1))
|
|
331
|
+
var(--select-option-padding-x, var(--space-3));
|
|
332
|
+
}
|
|
333
|
+
.dasar-select-dropdown-panel.size-md & {
|
|
334
|
+
font-size: var(--font-size-base);
|
|
335
|
+
}
|
|
336
|
+
.dasar-select-dropdown-panel.size-lg & {
|
|
337
|
+
font-size: var(--font-size-lg);
|
|
338
|
+
|
|
339
|
+
padding: var(--select-option-padding-y, var(--space-3))
|
|
340
|
+
var(--select-option-padding-x, var(--space-4));
|
|
341
|
+
}
|
|
342
|
+
.dasar-select-dropdown-panel.size-xl & {
|
|
343
|
+
font-size: var(--font-size-xl);
|
|
344
|
+
|
|
345
|
+
padding: var(--select-option-padding-y, var(--space-3))
|
|
346
|
+
var(--select-option-padding-x, var(--space-5));
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
&:hover:not(.disabled) {
|
|
350
|
+
background-color: var(--select-option-hover-bg, var(--theme-bg-hover-color));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
&.selected {
|
|
354
|
+
background-color: var(--select-option-selected-bg, var(--theme-primary-surface-color));
|
|
355
|
+
color: var(--select-option-selected-color, var(--theme-primary-color));
|
|
356
|
+
font-weight: var(--select-option-selected-font-weight, var(--font-weight-medium));
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.disabled {
|
|
360
|
+
color: var(--select-option-disabled-color, var(--theme-text-disabled-color));
|
|
361
|
+
cursor: not-allowed;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.dasar-select-loading-state,
|
|
366
|
+
.dasar-select-empty-state {
|
|
367
|
+
color: var(--select-state-color, var(--theme-text-secondary-color));
|
|
368
|
+
font-size: var(--select-state-font-size, var(--font-size-base));
|
|
369
|
+
padding: var(--space-4);
|
|
370
|
+
text-align: center;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.dasar-select-hint {
|
|
374
|
+
font-size: var(--select-hint-font-size, var(--font-size-sm));
|
|
375
|
+
color: var(--select-hint-color, var(--theme-text-secondary-color));
|
|
376
|
+
line-height: var(--line-height-normal);
|
|
377
|
+
margin-top: calc(var(--space-0-5) * -1);
|
|
378
|
+
|
|
379
|
+
&.error {
|
|
380
|
+
color: var(--select-hint-error-color, var(--theme-danger-color));
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&.disabled {
|
|
384
|
+
opacity: var(--select-disabled-opacity, 0.6);
|
|
385
|
+
cursor: not-allowed;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, signal } from '@angular/core';
|
|
2
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { DasarSelect, DasarSelectComponent } from './dasar-select';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [FormsModule, DasarSelectComponent],
|
|
9
|
+
template: `
|
|
10
|
+
<dasar-select
|
|
11
|
+
[size]="size()"
|
|
12
|
+
[radius]="radius()"
|
|
13
|
+
[placement]="placement()"
|
|
14
|
+
[options]="options"
|
|
15
|
+
[ngModel]="value"
|
|
16
|
+
/>
|
|
17
|
+
`,
|
|
18
|
+
})
|
|
19
|
+
class SelectHost {
|
|
20
|
+
size = signal<'sm' | 'md' | 'lg'>('sm');
|
|
21
|
+
radius = signal<'none' | 'md' | 'lg' | 'full'>('lg');
|
|
22
|
+
placement = signal<'bottom-start' | 'top-start'>('bottom-start');
|
|
23
|
+
value = '';
|
|
24
|
+
options = [
|
|
25
|
+
{ label: 'Alpha', value: 'a', iconName: 'info-circle' },
|
|
26
|
+
{ label: 'Beta', value: 'b' },
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
describe('DasarSelect', () => {
|
|
31
|
+
let component: DasarSelect;
|
|
32
|
+
let fixture: ComponentFixture<SelectHost>;
|
|
33
|
+
let host: SelectHost;
|
|
34
|
+
|
|
35
|
+
const container = () =>
|
|
36
|
+
fixture.nativeElement.querySelector('.dasar-select-container') as HTMLElement;
|
|
37
|
+
const panel = () =>
|
|
38
|
+
fixture.nativeElement.querySelector('.dasar-select-dropdown-panel') as HTMLElement;
|
|
39
|
+
const open = async () => {
|
|
40
|
+
container().click();
|
|
41
|
+
await fixture.whenStable();
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
beforeEach(async () => {
|
|
45
|
+
await TestBed.configureTestingModule({
|
|
46
|
+
imports: [SelectHost],
|
|
47
|
+
}).compileComponents();
|
|
48
|
+
|
|
49
|
+
fixture = TestBed.createComponent(SelectHost);
|
|
50
|
+
host = fixture.componentInstance;
|
|
51
|
+
component = fixture.debugElement.children[0].componentInstance;
|
|
52
|
+
fixture.detectChanges();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('should create', () => {
|
|
56
|
+
expect(component).toBeTruthy();
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it('renders no panel while closed', () => {
|
|
60
|
+
expect(panel()).toBeNull();
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('panel follows size and radius of the trigger', async () => {
|
|
64
|
+
await open();
|
|
65
|
+
|
|
66
|
+
expect(panel()).toBeTruthy();
|
|
67
|
+
expect(panel().classList).toContain('size-sm');
|
|
68
|
+
expect(panel().classList).toContain('radius-lg');
|
|
69
|
+
expect(panel().classList).toContain('placement-bottom-start');
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it('panel reflects a radius change', async () => {
|
|
73
|
+
host.radius.set('none');
|
|
74
|
+
await open();
|
|
75
|
+
|
|
76
|
+
expect(panel().classList).toContain('radius-none');
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('panel starts at the requested placement', async () => {
|
|
80
|
+
host.placement.set('top-start');
|
|
81
|
+
await open();
|
|
82
|
+
|
|
83
|
+
expect(panel().classList).toContain('placement-top-start');
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
it('arrow icon scales with the select size', () => {
|
|
87
|
+
const svg = container().querySelector('.dasar-select-arrow-btn dasar-icon svg') as SVGElement;
|
|
88
|
+
expect(svg.getAttribute('width')).toBe('14');
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('option icons scale with the select size', async () => {
|
|
92
|
+
await open();
|
|
93
|
+
|
|
94
|
+
const svg = panel().querySelector('.dasar-select-option dasar-icon svg') as SVGElement;
|
|
95
|
+
expect(svg.getAttribute('width')).toBe('14');
|
|
96
|
+
});
|
|
97
|
+
});
|