dasar-ui 1.9.2 → 1.10.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/README.md +64 -65
- package/fesm2022/dasar-ui.mjs +37004 -0
- package/fesm2022/dasar-ui.mjs.map +1 -0
- package/package.json +39 -57
- package/{projects/dasar-ui/src/lib/styles → styles}/theme.scss +238 -238
- package/types/dasar-ui.d.ts +4075 -0
- package/.dockerignore +0 -31
- package/.editorconfig +0 -17
- package/.github/workflows/npm-publish-github-packages.yml +0 -36
- package/.prettierrc +0 -12
- package/.versionrc.json +0 -4
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/settings.json +0 -4
- package/.vscode/tasks.json +0 -42
- package/CHANGELOG.md +0 -101
- package/Dockerfile +0 -26
- package/angular.json +0 -114
- package/docs/_config.yml +0 -3
- package/docs/getting-started.md +0 -89
- package/docs/index.md +0 -9
- package/docs/installation.md +0 -46
- package/projects/dasar-ui/README.md +0 -64
- package/projects/dasar-ui/ng-package.json +0 -10
- package/projects/dasar-ui/package.json +0 -27
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.html +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.scss +0 -352
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.ts +0 -154
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.scss +0 -69
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.ts +0 -26
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.html +0 -158
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.scss +0 -371
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.ts +0 -458
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.html +0 -80
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.scss +0 -184
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.ts +0 -294
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.html +0 -42
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.scss +0 -38
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.ts +0 -205
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.html +0 -111
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.scss +0 -331
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.spec.ts +0 -93
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.ts +0 -527
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.html +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.registry.ts +0 -5087
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.scss +0 -24
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.ts +0 -97
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.html +0 -54
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.scss +0 -251
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.ts +0 -319
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list-item.html +0 -17
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.html +0 -25
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.scss +0 -122
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.ts +0 -166
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.html +0 -64
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.scss +0 -229
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.spec.ts +0 -93
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.ts +0 -278
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.html +0 -72
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.scss +0 -170
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.spec.ts +0 -267
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.ts +0 -305
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.html +0 -90
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.scss +0 -353
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.ts +0 -337
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.html +0 -11
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.scss +0 -18
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.spec.ts +0 -112
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.ts +0 -87
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.html +0 -98
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.scss +0 -51
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.ts +0 -99
- 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 +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.html +0 -150
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.scss +0 -272
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.ts +0 -228
- 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 +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.html +0 -189
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.scss +0 -387
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.spec.ts +0 -97
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.ts +0 -540
- 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 +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.ts +0 -9
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.html +0 -162
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.scss +0 -283
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.ts +0 -380
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.html +0 -103
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.scss +0 -238
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.spec.ts +0 -570
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.ts +0 -349
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.html +0 -43
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.scss +0 -189
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.ts +0 -139
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.spec.ts +0 -89
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +0 -294
- 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 +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.ts +0 -9
- 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 +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.ts +0 -9
- 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 +0 -1
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.spec.ts +0 -21
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.ts +0 -9
- package/projects/dasar-ui/src/lib/models/theme.model.ts +0 -730
- package/projects/dasar-ui/src/lib/models/type.model.ts +0 -11
- package/projects/dasar-ui/src/lib/services/theme.service.spec.ts +0 -130
- package/projects/dasar-ui/src/lib/services/theme.service.ts +0 -777
- package/projects/dasar-ui/src/lib/styles/theme.ts +0 -70
- package/projects/dasar-ui/src/lib/utils/common.ts +0 -156
- package/projects/dasar-ui/src/lib/utils/icon-size.spec.ts +0 -23
- package/projects/dasar-ui/src/lib/utils/icon-size.ts +0 -16
- package/projects/dasar-ui/src/lib/utils/panel-placement.spec.ts +0 -90
- package/projects/dasar-ui/src/lib/utils/panel-placement.ts +0 -53
- package/projects/dasar-ui/src/public-api.ts +0 -24
- package/projects/dasar-ui/tsconfig.lib.json +0 -21
- package/projects/dasar-ui/tsconfig.lib.prod.json +0 -11
- package/projects/dasar-ui/tsconfig.spec.json +0 -18
- package/projects/documentation/public/favicon.ico +0 -0
- package/projects/documentation/src/app/app.html +0 -78
- package/projects/documentation/src/app/app.spec.ts +0 -23
- package/projects/documentation/src/app/app.ts +0 -57
- package/projects/documentation/src/app/components/doc-customize-modal.component.ts +0 -368
- package/projects/documentation/src/app/components/doc-example.component.ts +0 -195
- package/projects/documentation/src/app/components/doc-markdown.component.ts +0 -154
- package/projects/documentation/src/app/config/app.config.server.ts +0 -10
- package/projects/documentation/src/app/config/app.config.ts +0 -17
- package/projects/documentation/src/app/layouts/doc.layout.ts +0 -249
- package/projects/documentation/src/app/pages/button/button.page.html +0 -65
- package/projects/documentation/src/app/pages/button/button.page.ts +0 -139
- package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.html +0 -7
- package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.ts +0 -10
- package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.html +0 -19
- package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.ts +0 -10
- package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.html +0 -9
- package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.ts +0 -10
- package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.html +0 -7
- package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.ts +0 -10
- package/projects/documentation/src/app/pages/button/examples/state/button-state.example.html +0 -10
- package/projects/documentation/src/app/pages/button/examples/state/button-state.example.ts +0 -10
- package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.html +0 -9
- package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.ts +0 -10
- package/projects/documentation/src/app/pages/calendar/calendar.page.html +0 -75
- package/projects/documentation/src/app/pages/calendar/calendar.page.ts +0 -165
- package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.html +0 -21
- package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.ts +0 -10
- package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.html +0 -11
- package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.ts +0 -13
- package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.html +0 -36
- package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.ts +0 -11
- package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.html +0 -10
- package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.ts +0 -12
- package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.html +0 -15
- package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.ts +0 -12
- package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.html +0 -34
- package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.ts +0 -14
- package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.html +0 -20
- package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.ts +0 -37
- package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.html +0 -16
- package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.ts +0 -10
- package/projects/documentation/src/app/pages/card/card.page.html +0 -75
- package/projects/documentation/src/app/pages/card/card.page.ts +0 -182
- package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.html +0 -13
- package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.ts +0 -10
- package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.html +0 -30
- package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.ts +0 -19
- package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.html +0 -173
- package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.ts +0 -10
- package/projects/documentation/src/app/pages/card/examples/media/card-media.example.html +0 -27
- package/projects/documentation/src/app/pages/card/examples/media/card-media.example.ts +0 -10
- package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.html +0 -13
- package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.ts +0 -10
- package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.html +0 -20
- package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.ts +0 -10
- package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.html +0 -11
- package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.ts +0 -10
- package/projects/documentation/src/app/pages/chip/chip.page.html +0 -55
- package/projects/documentation/src/app/pages/chip/chip.page.ts +0 -158
- package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.html +0 -7
- package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.ts +0 -10
- package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.html +0 -13
- package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.ts +0 -17
- package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.html +0 -9
- package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.ts +0 -10
- package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.html +0 -6
- package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.ts +0 -10
- package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.html +0 -8
- package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.ts +0 -10
- package/projects/documentation/src/app/pages/datepicker/datepicker.page.html +0 -75
- package/projects/documentation/src/app/pages/datepicker/datepicker.page.ts +0 -181
- package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.html +0 -29
- package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.ts +0 -10
- package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.html +0 -12
- package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.ts +0 -12
- package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.html +0 -23
- package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.ts +0 -17
- package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.html +0 -30
- package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.ts +0 -13
- package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.html +0 -24
- package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.ts +0 -10
- package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.html +0 -19
- package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.ts +0 -10
- package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.html +0 -28
- package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.ts +0 -12
- package/projects/documentation/src/app/pages/getting-started/getting-started.page.ts +0 -21
- package/projects/documentation/src/app/pages/icon/icon.page.html +0 -15
- package/projects/documentation/src/app/pages/icon/icon.page.ts +0 -60
- package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.html +0 -27
- package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.ts +0 -10
- package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.html +0 -13
- package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.ts +0 -13
- package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.html +0 -31
- package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.ts +0 -19
- package/projects/documentation/src/app/pages/input/examples/more/input-more.example.html +0 -68
- package/projects/documentation/src/app/pages/input/examples/more/input-more.example.ts +0 -18
- package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.html +0 -52
- package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.ts +0 -10
- package/projects/documentation/src/app/pages/input/examples/states/input-states.example.html +0 -29
- package/projects/documentation/src/app/pages/input/examples/states/input-states.example.ts +0 -10
- package/projects/documentation/src/app/pages/input/input.page.html +0 -65
- package/projects/documentation/src/app/pages/input/input.page.ts +0 -170
- package/projects/documentation/src/app/pages/installation/installation.page.ts +0 -18
- package/projects/documentation/src/app/pages/introduction/introduction.page.ts +0 -18
- package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.html +0 -29
- package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.ts +0 -33
- package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.html +0 -13
- package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.ts +0 -30
- package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.html +0 -5
- package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.ts +0 -12
- package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.html +0 -20
- package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.ts +0 -12
- package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.html +0 -11
- package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.ts +0 -19
- package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.html +0 -7
- package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.ts +0 -12
- package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.html +0 -20
- package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.ts +0 -22
- package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.html +0 -9
- package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.ts +0 -16
- package/projects/documentation/src/app/pages/list/examples/size/list-size.example.html +0 -20
- package/projects/documentation/src/app/pages/list/examples/size/list-size.example.ts +0 -12
- package/projects/documentation/src/app/pages/list/list.page.html +0 -95
- package/projects/documentation/src/app/pages/list/list.page.ts +0 -238
- package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.html +0 -5
- package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.ts +0 -17
- package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.html +0 -35
- package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.ts +0 -57
- package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.html +0 -12
- package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.ts +0 -16
- package/projects/documentation/src/app/pages/menu/menu.page.html +0 -35
- package/projects/documentation/src/app/pages/menu/menu.page.ts +0 -149
- package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.html +0 -18
- package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.ts +0 -21
- package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.html +0 -8
- package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.ts +0 -12
- package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.html +0 -44
- package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.ts +0 -14
- package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.html +0 -36
- package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.ts +0 -12
- package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.html +0 -29
- package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.ts +0 -14
- package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.html +0 -27
- package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.ts +0 -27
- package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.html +0 -14
- package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.ts +0 -13
- package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.html +0 -17
- package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.ts +0 -21
- package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.html +0 -30
- package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.ts +0 -12
- package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.html +0 -23
- package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.ts +0 -13
- package/projects/documentation/src/app/pages/modal/modal.page.html +0 -105
- package/projects/documentation/src/app/pages/modal/modal.page.ts +0 -266
- package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.html +0 -30
- package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.ts +0 -10
- package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.html +0 -12
- package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.ts +0 -13
- package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.html +0 -30
- package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.ts +0 -14
- package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.html +0 -49
- package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.ts +0 -10
- package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.html +0 -21
- package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.ts +0 -10
- package/projects/documentation/src/app/pages/number-input/number-input.page.html +0 -55
- package/projects/documentation/src/app/pages/number-input/number-input.page.ts +0 -142
- package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.html +0 -32
- package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.ts +0 -15
- package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.html +0 -13
- package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.ts +0 -20
- package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.html +0 -24
- package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.ts +0 -59
- package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.html +0 -20
- package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.ts +0 -20
- package/projects/documentation/src/app/pages/select/examples/search/select-search.example.html +0 -13
- package/projects/documentation/src/app/pages/select/examples/search/select-search.example.ts +0 -22
- package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.html +0 -44
- package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.ts +0 -15
- package/projects/documentation/src/app/pages/select/examples/states/select-states.example.html +0 -31
- package/projects/documentation/src/app/pages/select/examples/states/select-states.example.ts +0 -12
- package/projects/documentation/src/app/pages/select/select.page.html +0 -75
- package/projects/documentation/src/app/pages/select/select.page.ts +0 -195
- package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.html +0 -14
- package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.ts +0 -25
- package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.html +0 -12
- package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.ts +0 -21
- package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.html +0 -29
- package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.ts +0 -20
- package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.html +0 -39
- package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.ts +0 -21
- package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.html +0 -7
- package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.ts +0 -21
- package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.html +0 -3
- package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.ts +0 -41
- package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.html +0 -43
- package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.ts +0 -21
- package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.html +0 -36
- package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.ts +0 -34
- package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.html +0 -8
- package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.ts +0 -52
- package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.html +0 -53
- package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.ts +0 -50
- package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.html +0 -23
- package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.ts +0 -42
- package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.html +0 -20
- package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.ts +0 -21
- package/projects/documentation/src/app/pages/table/table.page.html +0 -125
- package/projects/documentation/src/app/pages/table/table.page.ts +0 -261
- package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.html +0 -13
- package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.ts +0 -27
- package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.html +0 -27
- package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.ts +0 -36
- package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.html +0 -5
- package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.ts +0 -20
- package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.html +0 -6
- package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.ts +0 -13
- package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.html +0 -13
- package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.ts +0 -13
- package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.html +0 -19
- package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.ts +0 -12
- package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.html +0 -16
- package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.ts +0 -23
- package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.html +0 -5
- package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.ts +0 -12
- package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.html +0 -6
- package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.ts +0 -12
- package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.html +0 -6
- package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.ts +0 -13
- package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.html +0 -20
- package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.ts +0 -30
- package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.html +0 -16
- package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.ts +0 -26
- package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.html +0 -22
- package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.ts +0 -26
- package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.html +0 -6
- package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.ts +0 -13
- package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.html +0 -25
- package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.ts +0 -10
- package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.html +0 -6
- package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.ts +0 -13
- package/projects/documentation/src/app/pages/tabs/tabs.page.html +0 -165
- package/projects/documentation/src/app/pages/tabs/tabs.page.ts +0 -347
- package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.html +0 -13
- package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.ts +0 -20
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.html +0 -8
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.scss +0 -4
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.ts +0 -11
- package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.html +0 -13
- package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.ts +0 -33
- package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.html +0 -6
- package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.ts +0 -20
- package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.html +0 -15
- package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.ts +0 -31
- package/projects/documentation/src/app/pages/theming/theming-component-config.page.ts +0 -52
- package/projects/documentation/src/app/pages/theming/theming-css-variables.page.ts +0 -71
- package/projects/documentation/src/app/pages/theming/theming-tokens.page.ts +0 -56
- package/projects/documentation/src/app/pages/theming/theming.data.ts +0 -947
- package/projects/documentation/src/app/pages/theming/theming.page.html +0 -56
- package/projects/documentation/src/app/pages/theming/theming.page.ts +0 -144
- package/projects/documentation/src/app/routes/app.routes.server.ts +0 -8
- package/projects/documentation/src/app/routes/app.routes.ts +0 -135
- package/projects/documentation/src/app/services/doc-customize.service.ts +0 -119
- package/projects/documentation/src/app/utils/highlight.pipe.ts +0 -43
- package/projects/documentation/src/index.html +0 -13
- package/projects/documentation/src/main.server.ts +0 -7
- package/projects/documentation/src/main.ts +0 -5
- package/projects/documentation/src/server.ts +0 -47
- package/projects/documentation/src/styles.scss +0 -19
- package/projects/documentation/tsconfig.app.json +0 -11
- package/projects/documentation/tsconfig.spec.json +0 -10
- package/tsconfig.json +0 -40
|
@@ -1,189 +0,0 @@
|
|
|
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>
|
|
@@ -1,387 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
});
|