dasar-ui 1.9.0 → 1.9.3
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 +40 -41
- package/fesm2022/dasar-ui.mjs +10444 -0
- package/fesm2022/dasar-ui.mjs.map +1 -0
- package/package.json +39 -57
- package/types/dasar-ui.d.ts +2498 -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 -92
- 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
- /package/{projects/dasar-ui/src/lib/styles → styles}/theme.scss +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; flex-direction: column; gap: 32px; width: 100%">
|
|
2
|
-
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap">
|
|
3
|
-
<div style="flex: 1; min-width: 200px">
|
|
4
|
-
<dasar-select
|
|
5
|
-
label="Outline (Default)"
|
|
6
|
-
appearance="outline"
|
|
7
|
-
[options]="options"
|
|
8
|
-
full-width
|
|
9
|
-
></dasar-select>
|
|
10
|
-
</div>
|
|
11
|
-
<div style="flex: 1; min-width: 200px">
|
|
12
|
-
<dasar-select
|
|
13
|
-
label="Filled Appearance"
|
|
14
|
-
appearance="filled"
|
|
15
|
-
[options]="options"
|
|
16
|
-
full-width
|
|
17
|
-
></dasar-select>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div style="display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap">
|
|
22
|
-
<div style="flex: 1; min-width: 200px">
|
|
23
|
-
<dasar-select label="Small Size" size="sm" [options]="options" full-width></dasar-select>
|
|
24
|
-
</div>
|
|
25
|
-
<div style="flex: 1; min-width: 200px">
|
|
26
|
-
<dasar-select label="Medium Size" size="md" [options]="options" full-width></dasar-select>
|
|
27
|
-
</div>
|
|
28
|
-
<div style="flex: 1; min-width: 200px">
|
|
29
|
-
<dasar-select label="Large Size" size="lg" [options]="options" full-width></dasar-select>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DasarSelectComponent, DasarSelectOption } from 'dasar-ui';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
templateUrl: './select-appearance.example.html',
|
|
6
|
-
selector: 'app-select-appearance-example',
|
|
7
|
-
imports: [DasarSelectComponent],
|
|
8
|
-
standalone: true,
|
|
9
|
-
})
|
|
10
|
-
export class SelectAppearanceExample {
|
|
11
|
-
protected options: DasarSelectOption[] = [
|
|
12
|
-
{ label: 'Option 1', value: '1' },
|
|
13
|
-
{ label: 'Option 2', value: '2' },
|
|
14
|
-
];
|
|
15
|
-
}
|
package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 320px">
|
|
2
|
-
<dasar-select
|
|
3
|
-
label="Country"
|
|
4
|
-
placeholder="Select your country"
|
|
5
|
-
[options]="countries"
|
|
6
|
-
[(ngModel)]="selectedCountry"
|
|
7
|
-
full-width
|
|
8
|
-
></dasar-select>
|
|
9
|
-
|
|
10
|
-
<p style="margin: 0; font-size: 14px; color: var(--theme-text-secondary-color)">
|
|
11
|
-
Bound Value: <strong>{{ selectedCountry || 'None' }}</strong>
|
|
12
|
-
</p>
|
|
13
|
-
</div>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, signal } from '@angular/core';
|
|
2
|
-
import { FormsModule } from '@angular/forms';
|
|
3
|
-
import { DasarSelectComponent, DasarSelectOption } from 'dasar-ui';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
imports: [FormsModule, DasarSelectComponent],
|
|
7
|
-
templateUrl: './select-basic.example.html',
|
|
8
|
-
selector: 'app-select-basic-example',
|
|
9
|
-
standalone: true,
|
|
10
|
-
})
|
|
11
|
-
export class SelectBasicExample {
|
|
12
|
-
protected selectedCountry = signal<string | null>(null);
|
|
13
|
-
|
|
14
|
-
protected countries: DasarSelectOption[] = [
|
|
15
|
-
{ label: 'Indonesia', value: 'id' },
|
|
16
|
-
{ label: 'United States', value: 'us' },
|
|
17
|
-
{ label: 'Japan', value: 'jp' },
|
|
18
|
-
{ label: 'Germany', value: 'de' },
|
|
19
|
-
];
|
|
20
|
-
}
|
package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.html
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; width: 100%">
|
|
2
|
-
<div style="flex: 1; min-width: 300px">
|
|
3
|
-
<dasar-select
|
|
4
|
-
label="Multiple (Text Display)"
|
|
5
|
-
multiple-type="text"
|
|
6
|
-
placeholder="Select members"
|
|
7
|
-
[searchable]="true"
|
|
8
|
-
[options]="users"
|
|
9
|
-
[(ngModel)]="selectedUsersText"
|
|
10
|
-
full-width
|
|
11
|
-
></dasar-select>
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div style="flex: 1; min-width: 300px">
|
|
15
|
-
<dasar-select
|
|
16
|
-
label="Multiple (Chip Display)"
|
|
17
|
-
multiple-type="chip"
|
|
18
|
-
placeholder="Assign roles"
|
|
19
|
-
[options]="roles"
|
|
20
|
-
[(ngModel)]="selectedRoles"
|
|
21
|
-
full-width
|
|
22
|
-
></dasar-select>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { DasarSelectComponent, DasarSelectOption } from 'dasar-ui';
|
|
2
|
-
import { FormsModule } from '@angular/forms';
|
|
3
|
-
import { Component } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
imports: [FormsModule, DasarSelectComponent],
|
|
7
|
-
templateUrl: './select-multiple.example.html',
|
|
8
|
-
selector: 'app-select-multiple-example',
|
|
9
|
-
standalone: true,
|
|
10
|
-
})
|
|
11
|
-
export class SelectMultipleExample {
|
|
12
|
-
protected selectedUsersText: string[] = ['2'];
|
|
13
|
-
protected selectedRoles: string[] = ['admin', 'editor'];
|
|
14
|
-
|
|
15
|
-
protected users: DasarSelectOption[] = [
|
|
16
|
-
{ label: 'Alice Johnson', value: '1' },
|
|
17
|
-
{ label: 'Bob Smith', value: '2' },
|
|
18
|
-
{ label: 'Charlie Davis', value: '3' },
|
|
19
|
-
{ label: 'Diana Prince', value: '4' },
|
|
20
|
-
{ label: 'Evan Wright', value: '5' },
|
|
21
|
-
{ label: 'Fiona Gallagher', value: '6' },
|
|
22
|
-
{ label: 'George Washington', value: '7' },
|
|
23
|
-
{ label: 'Hannah Abbott', value: '8' },
|
|
24
|
-
{ label: 'Ian Malcolm', value: '9' },
|
|
25
|
-
{ label: 'Julia Roberts', value: '10' },
|
|
26
|
-
{ label: 'Kevin Hart', value: '11' },
|
|
27
|
-
{ label: 'Laura Croft', value: '12' },
|
|
28
|
-
{ label: 'Michael Scott', value: '13' },
|
|
29
|
-
{ label: 'Natalie Portman', value: '14' },
|
|
30
|
-
{ label: 'Oscar Martinez', value: '15' },
|
|
31
|
-
{ label: 'Penelope Cruz', value: '16' },
|
|
32
|
-
{ label: 'Quentin Tarantino', value: '17' },
|
|
33
|
-
{ label: 'Rachel Green', value: '18' },
|
|
34
|
-
{ label: 'Steve Rogers', value: '19' },
|
|
35
|
-
{ label: 'Taylor Swift', value: '20' },
|
|
36
|
-
];
|
|
37
|
-
protected roles: DasarSelectOption[] = [
|
|
38
|
-
{ label: 'Admin', value: 'admin', chipVariant: 'danger' },
|
|
39
|
-
{ label: 'Editor', value: 'editor', chipVariant: 'warning' },
|
|
40
|
-
{ label: 'Viewer', value: 'viewer', chipVariant: 'ghost' },
|
|
41
|
-
{ label: 'Super Admin', value: 'super_admin', chipVariant: 'danger' },
|
|
42
|
-
{ label: 'Content Manager', value: 'content_manager', chipVariant: 'warning' },
|
|
43
|
-
{ label: 'Moderator', value: 'moderator', chipVariant: 'secondary' },
|
|
44
|
-
{ label: 'Contributor', value: 'contributor', chipVariant: 'primary' },
|
|
45
|
-
{ label: 'Subscriber', value: 'subscriber', chipVariant: 'ghost' },
|
|
46
|
-
{ label: 'Billing Manager', value: 'billing_manager', chipVariant: 'success' },
|
|
47
|
-
{ label: 'Support Agent', value: 'support_agent', chipVariant: 'secondary' },
|
|
48
|
-
{ label: 'Developer', value: 'developer', chipVariant: 'primary' },
|
|
49
|
-
{ label: 'QA Engineer', value: 'qa_engineer', chipVariant: 'warning' },
|
|
50
|
-
{ label: 'Product Owner', value: 'product_owner', chipVariant: 'success' },
|
|
51
|
-
{ label: 'Data Analyst', value: 'data_analyst', chipVariant: 'secondary' },
|
|
52
|
-
{ label: 'Marketing Lead', value: 'marketing_lead', chipVariant: 'primary' },
|
|
53
|
-
{ label: 'Sales Rep', value: 'sales_rep', chipVariant: 'success' },
|
|
54
|
-
{ label: 'Guest', value: 'guest', chipVariant: 'ghost' },
|
|
55
|
-
{ label: 'Auditor', value: 'auditor', chipVariant: 'warning' },
|
|
56
|
-
{ label: 'Security Officer', value: 'security_officer', chipVariant: 'danger' },
|
|
57
|
-
{ label: 'System Operator', value: 'system_operator', chipVariant: 'primary' },
|
|
58
|
-
];
|
|
59
|
-
}
|
package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.html
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
-
<dasar-select
|
|
3
|
-
label="Bottom Start (Default)"
|
|
4
|
-
placement="bottom-start"
|
|
5
|
-
[options]="options"
|
|
6
|
-
[(ngModel)]="value"
|
|
7
|
-
/>
|
|
8
|
-
|
|
9
|
-
<dasar-select label="Bottom End" placement="bottom-end" [options]="options" [(ngModel)]="value" />
|
|
10
|
-
|
|
11
|
-
<dasar-select label="Top Start" placement="top-start" [options]="options" [(ngModel)]="value" />
|
|
12
|
-
|
|
13
|
-
<dasar-select label="Top End" placement="top-end" [options]="options" [(ngModel)]="value" />
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<p style="margin: 12px 0 0; font-size: 14px; color: var(--theme-text-secondary-color)">
|
|
17
|
-
<code>placement</code> is the <em>preferred</em> side of the trigger. When the preferred side has
|
|
18
|
-
no room left in the viewport, the panel automatically flips to the side with more space, both
|
|
19
|
-
vertically and horizontally, and it re-checks while you scroll or resize.
|
|
20
|
-
</p>
|
package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { DasarSelectComponent, DasarSelectOption } from 'dasar-ui';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
templateUrl: './select-placement.example.html',
|
|
8
|
-
selector: 'app-select-placement-example',
|
|
9
|
-
imports: [CommonModule, FormsModule, DasarSelectComponent],
|
|
10
|
-
standalone: true,
|
|
11
|
-
})
|
|
12
|
-
export class SelectPlacementExample {
|
|
13
|
-
protected options: DasarSelectOption[] = [
|
|
14
|
-
{ label: 'Alpha', value: 'alpha' },
|
|
15
|
-
{ label: 'Beta', value: 'beta' },
|
|
16
|
-
{ label: 'Gamma', value: 'gamma' },
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
protected value: string | null = null;
|
|
20
|
-
}
|
package/projects/documentation/src/app/pages/select/examples/search/select-search.example.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; width: 100%">
|
|
2
|
-
<div style="flex: 1; min-width: 300px">
|
|
3
|
-
<dasar-select
|
|
4
|
-
label="Searchable Select"
|
|
5
|
-
placeholder="Type to filter..."
|
|
6
|
-
[searchable]="true"
|
|
7
|
-
[clearable]="true"
|
|
8
|
-
[options]="frameworks"
|
|
9
|
-
[(ngModel)]="selectedFramework"
|
|
10
|
-
full-width
|
|
11
|
-
></dasar-select>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
package/projects/documentation/src/app/pages/select/examples/search/select-search.example.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DasarSelectComponent, DasarSelectOption } from 'dasar-ui';
|
|
2
|
-
import { Component, signal } from '@angular/core';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
imports: [FormsModule, DasarSelectComponent],
|
|
7
|
-
templateUrl: './select-search.example.html',
|
|
8
|
-
selector: 'app-select-search-example',
|
|
9
|
-
standalone: true,
|
|
10
|
-
})
|
|
11
|
-
export class SelectSearchExample {
|
|
12
|
-
protected selectedFramework = signal<string | null>(null);
|
|
13
|
-
|
|
14
|
-
protected frameworks: DasarSelectOption[] = [
|
|
15
|
-
{ label: 'Angular', value: 'angular' },
|
|
16
|
-
{ label: 'React', value: 'react' },
|
|
17
|
-
{ label: 'Vue', value: 'vue' },
|
|
18
|
-
{ label: 'Svelte', value: 'svelte' },
|
|
19
|
-
{ label: 'Solid', value: 'solid' },
|
|
20
|
-
{ label: 'Qwik', value: 'qwik' },
|
|
21
|
-
];
|
|
22
|
-
}
|
package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.html
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; flex-direction: column; gap: 32px; width: 100%; max-width: 450px">
|
|
2
|
-
<dasar-select label="Custom Option Rendering" [options]="users" full-width>
|
|
3
|
-
<ng-container *chip-template="let opt">
|
|
4
|
-
<div style="display: flex; align-items: center; gap: 12px; width: 100%">
|
|
5
|
-
<div
|
|
6
|
-
style="
|
|
7
|
-
background: var(--theme-primary-color);
|
|
8
|
-
width: 32px;
|
|
9
|
-
height: 32px;
|
|
10
|
-
color: white;
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
border-radius: 50%;
|
|
15
|
-
"
|
|
16
|
-
>
|
|
17
|
-
{{ opt.label.charAt(0) }}
|
|
18
|
-
</div>
|
|
19
|
-
<div style="display: flex; flex-direction: column">
|
|
20
|
-
<span style="font-weight: 600; font-size: 14px; line-height: 1">{{ opt.label }}</span>
|
|
21
|
-
<span style="font-size: 12px; color: gray">{{ opt['email'] }}</span>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</ng-container>
|
|
25
|
-
</dasar-select>
|
|
26
|
-
|
|
27
|
-
<dasar-select label="Custom Slot Rendering" [options]="users" full-width multiple-type="chip">
|
|
28
|
-
<ng-template chip-template let-option let-select="selectInstance">
|
|
29
|
-
<dasar-chip size="sm">{{ option.label }}</dasar-chip>
|
|
30
|
-
</ng-template>
|
|
31
|
-
</dasar-select>
|
|
32
|
-
|
|
33
|
-
<dasar-select placeholder="Filter by status" [options]="[]" full-width>
|
|
34
|
-
<div label-slot style="display: flex; align-items: center">
|
|
35
|
-
<dasar-icon name="filter" size="sm"></dasar-icon>
|
|
36
|
-
<span style="font-weight: 600">Status Filter</span>
|
|
37
|
-
</div>
|
|
38
|
-
<div extra-label-slot style="color: var(--theme-primary-color); cursor: pointer">Clear All</div>
|
|
39
|
-
<div option-empty-slot style="padding: 24px; text-align: center; color: gray">
|
|
40
|
-
<dasar-icon name="inbox" size="lg" style="margin-bottom: 8px; opacity: 0.5"></dasar-icon>
|
|
41
|
-
<div>No statuses matched your criteria.</div>
|
|
42
|
-
</div>
|
|
43
|
-
</dasar-select>
|
|
44
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DasarSelectComponent, DasarSelectOption, DasarIconComponent, DasarChip } from 'dasar-ui';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
imports: [DasarSelectComponent, DasarIconComponent, DasarChip],
|
|
6
|
-
templateUrl: './select-slots.example.html',
|
|
7
|
-
selector: 'app-select-slots-example',
|
|
8
|
-
standalone: true,
|
|
9
|
-
})
|
|
10
|
-
export class SelectSlotsExample {
|
|
11
|
-
protected users: DasarSelectOption[] = [
|
|
12
|
-
{ label: 'Alice Williams', value: '1', email: 'alice@example.com' },
|
|
13
|
-
{ label: 'Bob Martin', value: '2', email: 'bob@example.com' },
|
|
14
|
-
];
|
|
15
|
-
}
|
package/projects/documentation/src/app/pages/select/examples/states/select-states.example.html
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<div style="display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; width: 100%">
|
|
2
|
-
<div style="flex: 1; min-width: 250px">
|
|
3
|
-
<dasar-select
|
|
4
|
-
label="Error State"
|
|
5
|
-
[error]="true"
|
|
6
|
-
hint="Please select a valid option."
|
|
7
|
-
[options]="options"
|
|
8
|
-
full-width
|
|
9
|
-
></dasar-select>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<div style="flex: 1; min-width: 250px">
|
|
13
|
-
<dasar-select
|
|
14
|
-
label="Disabled State"
|
|
15
|
-
[disabled]="true"
|
|
16
|
-
hint="Field locked."
|
|
17
|
-
[options]="options"
|
|
18
|
-
full-width
|
|
19
|
-
></dasar-select>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div style="flex: 1; min-width: 250px">
|
|
23
|
-
<dasar-select
|
|
24
|
-
label="Loading State"
|
|
25
|
-
[loading]="true"
|
|
26
|
-
hint="Fetching data..."
|
|
27
|
-
[options]="[]"
|
|
28
|
-
full-width
|
|
29
|
-
></dasar-select>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
package/projects/documentation/src/app/pages/select/examples/states/select-states.example.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DasarSelectComponent, DasarSelectOption } from 'dasar-ui';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
templateUrl: './select-states.example.html',
|
|
6
|
-
selector: 'app-select-states-example',
|
|
7
|
-
imports: [DasarSelectComponent],
|
|
8
|
-
standalone: true,
|
|
9
|
-
})
|
|
10
|
-
export class SelectStatesExample {
|
|
11
|
-
protected options: DasarSelectOption[] = [{ label: 'Valid Option', value: '1' }];
|
|
12
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<docs-layout
|
|
2
|
-
title="Select"
|
|
3
|
-
description="A customizable dropdown selection component supporting single and multiple values, inline searching, and rich custom templates."
|
|
4
|
-
[apiData]="apiProps"
|
|
5
|
-
>
|
|
6
|
-
<doc-example-component
|
|
7
|
-
[codes]="[
|
|
8
|
-
{ label: 'HTML', lang: 'html', value: basicHtml },
|
|
9
|
-
{ label: 'TypeScript', lang: 'typescript', value: basicTs },
|
|
10
|
-
]"
|
|
11
|
-
title="Basic Usage"
|
|
12
|
-
>
|
|
13
|
-
<app-select-basic-example></app-select-basic-example>
|
|
14
|
-
</doc-example-component>
|
|
15
|
-
|
|
16
|
-
<doc-example-component
|
|
17
|
-
[codes]="[
|
|
18
|
-
{ label: 'HTML', lang: 'html', value: appearanceHtml },
|
|
19
|
-
{ label: 'TypeScript', lang: 'typescript', value: appearanceTs },
|
|
20
|
-
]"
|
|
21
|
-
title="Appearance & Sizes"
|
|
22
|
-
>
|
|
23
|
-
<app-select-appearance-example></app-select-appearance-example>
|
|
24
|
-
</doc-example-component>
|
|
25
|
-
|
|
26
|
-
<doc-example-component
|
|
27
|
-
[codes]="[
|
|
28
|
-
{ label: 'HTML', lang: 'html', value: searchHtml },
|
|
29
|
-
{ label: 'TypeScript', lang: 'typescript', value: searchTs },
|
|
30
|
-
]"
|
|
31
|
-
title="Searchable List"
|
|
32
|
-
>
|
|
33
|
-
<app-select-search-example></app-select-search-example>
|
|
34
|
-
</doc-example-component>
|
|
35
|
-
|
|
36
|
-
<doc-example-component
|
|
37
|
-
[codes]="[
|
|
38
|
-
{ label: 'HTML', lang: 'html', value: multipleHtml },
|
|
39
|
-
{ label: 'TypeScript', lang: 'typescript', value: multipleTs },
|
|
40
|
-
]"
|
|
41
|
-
title="Multiple Selection Modes"
|
|
42
|
-
>
|
|
43
|
-
<app-select-multiple-example></app-select-multiple-example>
|
|
44
|
-
</doc-example-component>
|
|
45
|
-
|
|
46
|
-
<doc-example-component
|
|
47
|
-
[codes]="[
|
|
48
|
-
{ label: 'HTML', lang: 'html', value: statesHtml },
|
|
49
|
-
{ label: 'TypeScript', lang: 'typescript', value: statesTs },
|
|
50
|
-
]"
|
|
51
|
-
title="Validation & States"
|
|
52
|
-
>
|
|
53
|
-
<app-select-states-example></app-select-states-example>
|
|
54
|
-
</doc-example-component>
|
|
55
|
-
|
|
56
|
-
<doc-example-component
|
|
57
|
-
[codes]="[
|
|
58
|
-
{ label: 'HTML', lang: 'html', value: slotsHtml },
|
|
59
|
-
{ label: 'TypeScript', lang: 'typescript', value: slotsTs },
|
|
60
|
-
]"
|
|
61
|
-
title="Custom Templates & Slots"
|
|
62
|
-
>
|
|
63
|
-
<app-select-slots-example></app-select-slots-example>
|
|
64
|
-
</doc-example-component>
|
|
65
|
-
|
|
66
|
-
<doc-example-component
|
|
67
|
-
[codes]="[
|
|
68
|
-
{ label: 'HTML', lang: 'html', value: placementHtml },
|
|
69
|
-
{ label: 'TypeScript', lang: 'typescript', value: placementTs },
|
|
70
|
-
]"
|
|
71
|
-
title="Placement"
|
|
72
|
-
>
|
|
73
|
-
<app-select-placement-example></app-select-placement-example>
|
|
74
|
-
</doc-example-component>
|
|
75
|
-
</docs-layout>
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { DocsLayoutComponent, DocApiProperty } from '../../layouts/doc.layout';
|
|
4
|
-
import { DocExampleComponent } from '../../components/doc-example.component';
|
|
5
|
-
|
|
6
|
-
import { SelectBasicExample } from './examples/basic/select-basic.example';
|
|
7
|
-
import { SelectAppearanceExample } from './examples/appearance/select-appearance.example';
|
|
8
|
-
import { SelectSearchExample } from './examples/search/select-search.example';
|
|
9
|
-
import { SelectMultipleExample } from './examples/multiple/select-multiple.example';
|
|
10
|
-
import { SelectStatesExample } from './examples/states/select-states.example';
|
|
11
|
-
import { SelectSlotsExample } from './examples/slots/select-slots.example';
|
|
12
|
-
import { SelectPlacementExample } from './examples/placement/select-placement.example';
|
|
13
|
-
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
import basicHtml from './examples/basic/select-basic.example.html' with { loader: 'text' };
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import basicTs from './examples/basic/select-basic.example.ts' with { loader: 'text' };
|
|
18
|
-
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import appearanceHtml from './examples/appearance/select-appearance.example.html' with {
|
|
21
|
-
loader: 'text',
|
|
22
|
-
};
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import appearanceTs from './examples/appearance/select-appearance.example.ts' with {
|
|
25
|
-
loader: 'text',
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import searchHtml from './examples/search/select-search.example.html' with { loader: 'text' };
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
import searchTs from './examples/search/select-search.example.ts' with { loader: 'text' };
|
|
32
|
-
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import multipleHtml from './examples/multiple/select-multiple.example.html' with { loader: 'text' };
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import multipleTs from './examples/multiple/select-multiple.example.ts' with { loader: 'text' };
|
|
37
|
-
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
import statesHtml from './examples/states/select-states.example.html' with { loader: 'text' };
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
import statesTs from './examples/states/select-states.example.ts' with { loader: 'text' };
|
|
42
|
-
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
import slotsHtml from './examples/slots/select-slots.example.html' with { loader: 'text' };
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
import slotsTs from './examples/slots/select-slots.example.ts' with { loader: 'text' };
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
import placementHtml from './examples/placement/select-placement.example.html' with {
|
|
49
|
-
loader: 'text',
|
|
50
|
-
};
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
import placementTs from './examples/placement/select-placement.example.ts' with {
|
|
53
|
-
loader: 'text',
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
@Component({
|
|
57
|
-
imports: [
|
|
58
|
-
CommonModule,
|
|
59
|
-
DocsLayoutComponent,
|
|
60
|
-
DocExampleComponent,
|
|
61
|
-
SelectBasicExample,
|
|
62
|
-
SelectAppearanceExample,
|
|
63
|
-
SelectSearchExample,
|
|
64
|
-
SelectMultipleExample,
|
|
65
|
-
SelectStatesExample,
|
|
66
|
-
SelectSlotsExample,
|
|
67
|
-
SelectPlacementExample,
|
|
68
|
-
],
|
|
69
|
-
templateUrl: './select.page.html',
|
|
70
|
-
selector: 'app-select-page',
|
|
71
|
-
standalone: true,
|
|
72
|
-
})
|
|
73
|
-
export class SelectDocPage {
|
|
74
|
-
protected basicHtml = basicHtml;
|
|
75
|
-
protected basicTs = basicTs;
|
|
76
|
-
protected appearanceHtml = appearanceHtml;
|
|
77
|
-
protected appearanceTs = appearanceTs;
|
|
78
|
-
protected searchHtml = searchHtml;
|
|
79
|
-
protected searchTs = searchTs;
|
|
80
|
-
protected multipleHtml = multipleHtml;
|
|
81
|
-
protected multipleTs = multipleTs;
|
|
82
|
-
protected statesHtml = statesHtml;
|
|
83
|
-
protected statesTs = statesTs;
|
|
84
|
-
protected slotsHtml = slotsHtml;
|
|
85
|
-
protected slotsTs = slotsTs;
|
|
86
|
-
protected placementHtml = placementHtml;
|
|
87
|
-
protected placementTs = placementTs;
|
|
88
|
-
|
|
89
|
-
protected readonly apiProps: DocApiProperty[] = [
|
|
90
|
-
{
|
|
91
|
-
name: 'value',
|
|
92
|
-
type: 'any | any[]',
|
|
93
|
-
defaultValue: "'' | []",
|
|
94
|
-
description: 'The selected value(s). Supports [(ngModel)] and Reactive Forms.',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'options',
|
|
98
|
-
type: 'DasarSelectOption[]',
|
|
99
|
-
defaultValue: '[]',
|
|
100
|
-
description: 'Array of objects: { label, value, disabled?, iconName?, chipVariant? }.',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'multiple-type',
|
|
104
|
-
type: "'text' | 'chip' | null",
|
|
105
|
-
defaultValue: 'null',
|
|
106
|
-
description:
|
|
107
|
-
'Enables multi-select. Displays chosen items as comma-separated text or interactive chips.',
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'searchable',
|
|
111
|
-
type: 'boolean',
|
|
112
|
-
defaultValue: 'false',
|
|
113
|
-
description: 'Shows an inline text input to filter the options array.',
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'clearable',
|
|
117
|
-
type: 'boolean',
|
|
118
|
-
defaultValue: 'false',
|
|
119
|
-
description: 'Shows an "x" icon to clear the selection.',
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'appearance',
|
|
123
|
-
type: "'outline' | 'filled'",
|
|
124
|
-
defaultValue: "'outline'",
|
|
125
|
-
description: 'Visual style of the main trigger container.',
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: 'placement',
|
|
129
|
-
type: "'bottom-start' | 'bottom-end' | 'top-start' | 'top-end'",
|
|
130
|
-
defaultValue: "'bottom-start'",
|
|
131
|
-
description:
|
|
132
|
-
'Preferred side of the trigger for the dropdown. The panel flips to the other side automatically when the viewport has no room.',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'size',
|
|
136
|
-
type: "'sm' | 'md' | 'lg'",
|
|
137
|
-
defaultValue: "'md'",
|
|
138
|
-
description: 'Sizing scale for the trigger, the panel and the options inside it.',
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: 'radius',
|
|
142
|
-
type: 'ScaleAttributeType',
|
|
143
|
-
defaultValue: "'md'",
|
|
144
|
-
description: 'Border radius of the trigger and of the dropdown panel.',
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: 'label / placeholder / hint',
|
|
148
|
-
type: 'string',
|
|
149
|
-
defaultValue: 'undefined',
|
|
150
|
-
description: 'Text elements for context.',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: 'loading',
|
|
154
|
-
type: 'boolean',
|
|
155
|
-
defaultValue: 'false',
|
|
156
|
-
description: 'Shows a spinner inside the trigger and dropdown.',
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
name: 'error',
|
|
160
|
-
type: 'boolean',
|
|
161
|
-
defaultValue: 'false',
|
|
162
|
-
description: 'Applies red validation styling.',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: 'disabled',
|
|
166
|
-
type: 'boolean',
|
|
167
|
-
defaultValue: 'false',
|
|
168
|
-
description: 'Prevents interaction.',
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
name: 'full-width',
|
|
172
|
-
type: 'boolean',
|
|
173
|
-
defaultValue: 'false',
|
|
174
|
-
description: 'Expands component to 100% width.',
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: '(valueChange) / (onSearchChange)',
|
|
178
|
-
type: 'EventEmitter',
|
|
179
|
-
defaultValue: '-',
|
|
180
|
-
description: 'Emitted when selection or search query updates.',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
name: '[...-slot]',
|
|
184
|
-
type: 'Content Slot',
|
|
185
|
-
defaultValue: '-',
|
|
186
|
-
description: 'Directives like [prefix-slot], [option-empty-slot], [option-loading-slot].',
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
name: '*option-template / *chip-template',
|
|
190
|
-
type: 'TemplateRef<any>',
|
|
191
|
-
defaultValue: '-',
|
|
192
|
-
description: 'Structural directives to override rendering of options and chips.',
|
|
193
|
-
},
|
|
194
|
-
];
|
|
195
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<div style="width: 100%; max-width: 800px">
|
|
2
|
-
<dasar-table [data]="users" [columns]="columns">
|
|
3
|
-
<ng-template cell-slot="actions" let-row="row">
|
|
4
|
-
<div style="display: flex; gap: 8px; justify-content: flex-end">
|
|
5
|
-
<dasar-button variant="ghost" size="sm" icon-only>
|
|
6
|
-
<dasar-icon name="edit-2" size="sm"></dasar-icon>
|
|
7
|
-
</dasar-button>
|
|
8
|
-
<dasar-button variant="ghost" size="sm" icon-only>
|
|
9
|
-
<dasar-icon name="trash" size="sm" style="color: var(--theme-danger-color)"></dasar-icon>
|
|
10
|
-
</dasar-button>
|
|
11
|
-
</div>
|
|
12
|
-
</ng-template>
|
|
13
|
-
</dasar-table>
|
|
14
|
-
</div>
|