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,347 +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 { TabsBasicExample } from './examples/basic/tabs-basic.example';
|
|
7
|
-
import { TabsAppearanceExample } from './examples/appearance/tabs-appearance.example';
|
|
8
|
-
import { TabsSizeExample } from './examples/size/tabs-size.example';
|
|
9
|
-
import { TabsSpacingExample } from './examples/spacing/tabs-spacing.example';
|
|
10
|
-
import { TabsRadiusExample } from './examples/radius/tabs-radius.example';
|
|
11
|
-
import { TabsFluidExample } from './examples/fluid/tabs-fluid.example';
|
|
12
|
-
import { TabsNoBodyExample } from './examples/no-body/tabs-no-body.example';
|
|
13
|
-
import { TabsSlotsExample } from './examples/slots/tabs-slots.example';
|
|
14
|
-
import { TabsCustomStyleExample } from './examples/custom-style/tabs-custom-style.example';
|
|
15
|
-
import { TabsEventsExample } from './examples/events/tabs-events.example';
|
|
16
|
-
import { TabsAdvancedDynamicExample } from './examples/advanced-dynamic/tabs-advanced-dynamic.example';
|
|
17
|
-
import { TabsAdvancedFormExample } from './examples/advanced-form/tabs-advanced-form.example';
|
|
18
|
-
import { TabsAdvancedThemeExample } from './examples/advanced-theme/tabs-advanced-theme.example';
|
|
19
|
-
import { TabsScrollExample } from './examples/scroll/tabs-scroll.example';
|
|
20
|
-
import { TabsScrollIconExample } from './examples/scroll-icon/tabs-scroll-icon.example';
|
|
21
|
-
import { TabsScrollSlotExample } from './examples/scroll-slot/tabs-scroll-slot.example';
|
|
22
|
-
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import basicHtml from './examples/basic/tabs-basic.example.html' with { loader: 'text' };
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import basicTs from './examples/basic/tabs-basic.example.ts' with { loader: 'text' };
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import appearanceHtml from './examples/appearance/tabs-appearance.example.html' with {
|
|
29
|
-
loader: 'text',
|
|
30
|
-
};
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import appearanceTs from './examples/appearance/tabs-appearance.example.ts' with {
|
|
33
|
-
loader: 'text',
|
|
34
|
-
};
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import sizeHtml from './examples/size/tabs-size.example.html' with { loader: 'text' };
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
import sizeTs from './examples/size/tabs-size.example.ts' with { loader: 'text' };
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
import spacingHtml from './examples/spacing/tabs-spacing.example.html' with { loader: 'text' };
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
import spacingTs from './examples/spacing/tabs-spacing.example.ts' with { loader: 'text' };
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
import radiusHtml from './examples/radius/tabs-radius.example.html' with { loader: 'text' };
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
import radiusTs from './examples/radius/tabs-radius.example.ts' with { loader: 'text' };
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
import fluidHtml from './examples/fluid/tabs-fluid.example.html' with { loader: 'text' };
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
import fluidTs from './examples/fluid/tabs-fluid.example.ts' with { loader: 'text' };
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
import noBodyHtml from './examples/no-body/tabs-no-body.example.html' with { loader: 'text' };
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
import noBodyTs from './examples/no-body/tabs-no-body.example.ts' with { loader: 'text' };
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
import slotsHtml from './examples/slots/tabs-slots.example.html' with { loader: 'text' };
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
import slotsTs from './examples/slots/tabs-slots.example.ts' with { loader: 'text' };
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
import customStyleHtml from './examples/custom-style/tabs-custom-style.example.html' with {
|
|
61
|
-
loader: 'text',
|
|
62
|
-
};
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
import customStyleTs from './examples/custom-style/tabs-custom-style.example.ts' with {
|
|
65
|
-
loader: 'text',
|
|
66
|
-
};
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
import eventsHtml from './examples/events/tabs-events.example.html' with { loader: 'text' };
|
|
69
|
-
// @ts-ignore
|
|
70
|
-
import eventsTs from './examples/events/tabs-events.example.ts' with { loader: 'text' };
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
import advancedDynamicHtml from './examples/advanced-dynamic/tabs-advanced-dynamic.example.html' with {
|
|
73
|
-
loader: 'text',
|
|
74
|
-
};
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
import advancedDynamicTs from './examples/advanced-dynamic/tabs-advanced-dynamic.example.ts' with {
|
|
77
|
-
loader: 'text',
|
|
78
|
-
};
|
|
79
|
-
// @ts-ignore
|
|
80
|
-
import advancedFormHtml from './examples/advanced-form/tabs-advanced-form.example.html' with {
|
|
81
|
-
loader: 'text',
|
|
82
|
-
};
|
|
83
|
-
// @ts-ignore
|
|
84
|
-
import advancedFormTs from './examples/advanced-form/tabs-advanced-form.example.ts' with {
|
|
85
|
-
loader: 'text',
|
|
86
|
-
};
|
|
87
|
-
// @ts-ignore
|
|
88
|
-
import advancedThemeHtml from './examples/advanced-theme/tabs-advanced-theme.example.html' with {
|
|
89
|
-
loader: 'text',
|
|
90
|
-
};
|
|
91
|
-
// @ts-ignore
|
|
92
|
-
import advancedThemeTs from './examples/advanced-theme/tabs-advanced-theme.example.ts' with {
|
|
93
|
-
loader: 'text',
|
|
94
|
-
};
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
import scrollHtml from './examples/scroll/tabs-scroll.example.html' with { loader: 'text' };
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
import scrollTs from './examples/scroll/tabs-scroll.example.ts' with { loader: 'text' };
|
|
99
|
-
// @ts-ignore
|
|
100
|
-
import scrollIconHtml from './examples/scroll-icon/tabs-scroll-icon.example.html' with {
|
|
101
|
-
loader: 'text',
|
|
102
|
-
};
|
|
103
|
-
// @ts-ignore
|
|
104
|
-
import scrollIconTs from './examples/scroll-icon/tabs-scroll-icon.example.ts' with {
|
|
105
|
-
loader: 'text',
|
|
106
|
-
};
|
|
107
|
-
// @ts-ignore
|
|
108
|
-
import scrollSlotHtml from './examples/scroll-slot/tabs-scroll-slot.example.html' with {
|
|
109
|
-
loader: 'text',
|
|
110
|
-
};
|
|
111
|
-
// @ts-ignore
|
|
112
|
-
import scrollSlotTs from './examples/scroll-slot/tabs-scroll-slot.example.ts' with {
|
|
113
|
-
loader: 'text',
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
@Component({
|
|
117
|
-
imports: [
|
|
118
|
-
CommonModule,
|
|
119
|
-
DocsLayoutComponent,
|
|
120
|
-
DocExampleComponent,
|
|
121
|
-
TabsBasicExample,
|
|
122
|
-
TabsAppearanceExample,
|
|
123
|
-
TabsSizeExample,
|
|
124
|
-
TabsSpacingExample,
|
|
125
|
-
TabsRadiusExample,
|
|
126
|
-
TabsFluidExample,
|
|
127
|
-
TabsNoBodyExample,
|
|
128
|
-
TabsSlotsExample,
|
|
129
|
-
TabsCustomStyleExample,
|
|
130
|
-
TabsEventsExample,
|
|
131
|
-
TabsAdvancedDynamicExample,
|
|
132
|
-
TabsAdvancedFormExample,
|
|
133
|
-
TabsAdvancedThemeExample,
|
|
134
|
-
TabsScrollExample,
|
|
135
|
-
TabsScrollIconExample,
|
|
136
|
-
TabsScrollSlotExample,
|
|
137
|
-
],
|
|
138
|
-
templateUrl: './tabs.page.html',
|
|
139
|
-
selector: 'app-tabs-page',
|
|
140
|
-
standalone: true,
|
|
141
|
-
})
|
|
142
|
-
export class TabsDocPage {
|
|
143
|
-
protected basicHtml = basicHtml;
|
|
144
|
-
protected basicTs = basicTs;
|
|
145
|
-
|
|
146
|
-
protected appearanceHtml = appearanceHtml;
|
|
147
|
-
protected appearanceTs = appearanceTs;
|
|
148
|
-
|
|
149
|
-
protected sizeHtml = sizeHtml;
|
|
150
|
-
protected sizeTs = sizeTs;
|
|
151
|
-
|
|
152
|
-
protected spacingHtml = spacingHtml;
|
|
153
|
-
protected spacingTs = spacingTs;
|
|
154
|
-
|
|
155
|
-
protected radiusHtml = radiusHtml;
|
|
156
|
-
protected radiusTs = radiusTs;
|
|
157
|
-
|
|
158
|
-
protected fluidHtml = fluidHtml;
|
|
159
|
-
protected fluidTs = fluidTs;
|
|
160
|
-
|
|
161
|
-
protected noBodyHtml = noBodyHtml;
|
|
162
|
-
protected noBodyTs = noBodyTs;
|
|
163
|
-
|
|
164
|
-
protected slotsHtml = slotsHtml;
|
|
165
|
-
protected slotsTs = slotsTs;
|
|
166
|
-
|
|
167
|
-
protected customStyleHtml = customStyleHtml;
|
|
168
|
-
protected customStyleTs = customStyleTs;
|
|
169
|
-
|
|
170
|
-
protected eventsHtml = eventsHtml;
|
|
171
|
-
protected eventsTs = eventsTs;
|
|
172
|
-
|
|
173
|
-
protected advancedDynamicHtml = advancedDynamicHtml;
|
|
174
|
-
protected advancedDynamicTs = advancedDynamicTs;
|
|
175
|
-
|
|
176
|
-
protected advancedFormHtml = advancedFormHtml;
|
|
177
|
-
protected advancedFormTs = advancedFormTs;
|
|
178
|
-
|
|
179
|
-
protected advancedThemeHtml = advancedThemeHtml;
|
|
180
|
-
protected advancedThemeTs = advancedThemeTs;
|
|
181
|
-
|
|
182
|
-
protected scrollHtml = scrollHtml;
|
|
183
|
-
protected scrollTs = scrollTs;
|
|
184
|
-
|
|
185
|
-
protected scrollIconHtml = scrollIconHtml;
|
|
186
|
-
protected scrollIconTs = scrollIconTs;
|
|
187
|
-
|
|
188
|
-
protected scrollSlotHtml = scrollSlotHtml;
|
|
189
|
-
protected scrollSlotTs = scrollSlotTs;
|
|
190
|
-
|
|
191
|
-
protected readonly apiProps: DocApiProperty[] = [
|
|
192
|
-
{
|
|
193
|
-
name: 'items',
|
|
194
|
-
type: 'string[]',
|
|
195
|
-
defaultValue: '[]',
|
|
196
|
-
description:
|
|
197
|
-
'Renders one tab trigger per entry. When it is empty, the component falls back to the [tab-item-slot] templates.',
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
name: 'active-index',
|
|
201
|
-
type: 'number',
|
|
202
|
-
defaultValue: '0',
|
|
203
|
-
description: 'The index of the open tab. The component sets it in onTabsChange.',
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: 'appearance',
|
|
207
|
-
type: "'solid' | 'subtle' | 'outline'",
|
|
208
|
-
defaultValue: "'subtle'",
|
|
209
|
-
description:
|
|
210
|
-
'Visual style of the tab strip. Outline removes the container and draws an underline instead.',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
name: 'size',
|
|
214
|
-
type: 'ScaleAttributeType',
|
|
215
|
-
defaultValue: "'md'",
|
|
216
|
-
description:
|
|
217
|
-
'Sizing of the tab strip and of the trigger buttons. none maps to xs and full maps to xl on the button scale.',
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
name: 'spacing',
|
|
221
|
-
type: "'normal' | 'compact'",
|
|
222
|
-
defaultValue: "'normal'",
|
|
223
|
-
description: 'Padding and gap of the tab strip, and the gap above the body content.',
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
name: 'radius',
|
|
227
|
-
type: 'ScaleAttributeType',
|
|
228
|
-
defaultValue: "'md'",
|
|
229
|
-
description: 'Border radius of the tab strip. Outline appearance always stays square.',
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
name: 'fluid',
|
|
233
|
-
type: 'boolean',
|
|
234
|
-
defaultValue: 'false',
|
|
235
|
-
description: 'Stretches the triggers to fill the strip, so the tabs share the width evenly.',
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
name: 'container-class',
|
|
239
|
-
type: 'string | object',
|
|
240
|
-
defaultValue: "''",
|
|
241
|
-
description: 'Class applied to the outer container.',
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
name: 'list-class',
|
|
245
|
-
type: 'string | object',
|
|
246
|
-
defaultValue: "''",
|
|
247
|
-
description: 'Class applied to the tab strip.',
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
name: 'content-class',
|
|
251
|
-
type: 'string | object',
|
|
252
|
-
defaultValue: "''",
|
|
253
|
-
description: 'Class applied to the body container.',
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
name: 'container-style',
|
|
257
|
-
type: 'object',
|
|
258
|
-
defaultValue: 'null',
|
|
259
|
-
description:
|
|
260
|
-
'Inline style for the outer container. A good place to set the --tabs-* CSS variables.',
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
name: 'list-style',
|
|
264
|
-
type: 'object',
|
|
265
|
-
defaultValue: 'null',
|
|
266
|
-
description: 'Inline style for the tab strip.',
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
name: 'content-style',
|
|
270
|
-
type: 'object',
|
|
271
|
-
defaultValue: 'null',
|
|
272
|
-
description: 'Inline style for the body container.',
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
name: '(onTabsChange)',
|
|
276
|
-
type: 'EventEmitter<number>',
|
|
277
|
-
defaultValue: '-',
|
|
278
|
-
description:
|
|
279
|
-
'Fires when the active tab changes. It is not emitted when the active tab is clicked again.',
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
name: '(onTabsClick)',
|
|
283
|
-
type: 'EventEmitter<number>',
|
|
284
|
-
defaultValue: '-',
|
|
285
|
-
description: 'Fires on every tab click, including the already active tab.',
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
name: 'scroll-left-icon-name',
|
|
289
|
-
type: 'string',
|
|
290
|
-
defaultValue: "'chevron-left'",
|
|
291
|
-
description:
|
|
292
|
-
'Icon name for the left arrow. The arrow only renders while the strip overflows the container.',
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
name: 'scroll-right-icon-name',
|
|
296
|
-
type: 'string',
|
|
297
|
-
defaultValue: "'chevron-right'",
|
|
298
|
-
description: 'Icon name for the right arrow.',
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
name: 'scroll-button-class',
|
|
302
|
-
type: 'string | object',
|
|
303
|
-
defaultValue: "''",
|
|
304
|
-
description: 'Class applied to both arrow buttons.',
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
name: 'scroll-button-style',
|
|
308
|
-
type: 'object',
|
|
309
|
-
defaultValue: 'null',
|
|
310
|
-
description: 'Inline style applied to both arrow buttons.',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: '[tabs-scroll-left-slot]',
|
|
314
|
-
type: 'Content Slot',
|
|
315
|
-
defaultValue: '-',
|
|
316
|
-
description:
|
|
317
|
-
'Replaces the content of the left arrow button. The button itself, its disabled edge state and its visibility stay automatic.',
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
name: '[tabs-scroll-right-slot]',
|
|
321
|
-
type: 'Content Slot',
|
|
322
|
-
defaultValue: '-',
|
|
323
|
-
description: 'Replaces the content of the right arrow button.',
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
name: 'theme tokens',
|
|
327
|
-
type: 'DasarThemeTabs',
|
|
328
|
-
defaultValue: '-',
|
|
329
|
-
description:
|
|
330
|
-
'Set through tokens.light.tabs (or tokens.dark.tabs) in DasarThemeService.setGlobalTheme, or [tokenConfig] on dasar-theme-provider. Each key writes one CSS variable, for example gapNormal -> --tabs-gap-normal and scrollFade -> --tabs-scroll-fade.',
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
name: '[tab-item-slot]',
|
|
334
|
-
type: 'Content Slot',
|
|
335
|
-
defaultValue: '-',
|
|
336
|
-
description:
|
|
337
|
-
'Custom template for one tab trigger. The order of the templates defines the tab order. Used when items is empty.',
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
name: 'default slot',
|
|
341
|
-
type: 'Content Slot',
|
|
342
|
-
defaultValue: '-',
|
|
343
|
-
description:
|
|
344
|
-
'The tab body. When nothing is projected, the component renders no body padding at all.',
|
|
345
|
-
},
|
|
346
|
-
];
|
|
347
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<dasar-theme-provider [componentConfig]="componentConfig">
|
|
2
|
-
<dasar-card label="From component config">
|
|
3
|
-
<div style="display: flex; gap: 12px; align-items: center; flex-wrap: wrap">
|
|
4
|
-
<dasar-button variant="primary">Outline sm</dasar-button>
|
|
5
|
-
<dasar-button variant="secondary">Outline sm</dasar-button>
|
|
6
|
-
</div>
|
|
7
|
-
</dasar-card>
|
|
8
|
-
</dasar-theme-provider>
|
|
9
|
-
|
|
10
|
-
<p style="font-size: 12px; margin-top: 8px; color: gray">
|
|
11
|
-
components.button sets appearance and size. components.card sets the elevated look and compact
|
|
12
|
-
spacing. Explicit inputs on a component always win over these defaults.
|
|
13
|
-
</p>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
DasarButtonComponent,
|
|
4
|
-
DasarCardComponent,
|
|
5
|
-
DasarComponentConfig,
|
|
6
|
-
DasarThemeProviderComponent,
|
|
7
|
-
} from 'dasar-ui';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
templateUrl: './theming-component-config.example.html',
|
|
11
|
-
selector: 'app-theming-component-config-example',
|
|
12
|
-
imports: [DasarThemeProviderComponent, DasarButtonComponent, DasarCardComponent],
|
|
13
|
-
standalone: true,
|
|
14
|
-
})
|
|
15
|
-
export class ThemingComponentConfigExample {
|
|
16
|
-
protected componentConfig: DasarComponentConfig = {
|
|
17
|
-
button: { appearance: 'outline', size: 'sm' },
|
|
18
|
-
card: { appearance: 'elevated', spacing: 'compact' },
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<div class="theming-override-scope">
|
|
2
|
-
<dasar-button variant="primary">Square button</dasar-button>
|
|
3
|
-
</div>
|
|
4
|
-
|
|
5
|
-
<p style="font-size: 12px; margin-top: 8px; color: gray">
|
|
6
|
-
The CSS tab sets --btn-radius-md to 0 inside .theming-override-scope. Only buttons in that scope
|
|
7
|
-
are affected.
|
|
8
|
-
</p>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { DasarButtonComponent } from 'dasar-ui';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
templateUrl: './theming-css-override.example.html',
|
|
6
|
-
styleUrl: './theming-css-override.example.scss',
|
|
7
|
-
selector: 'app-theming-css-override-example',
|
|
8
|
-
imports: [DasarButtonComponent],
|
|
9
|
-
standalone: true,
|
|
10
|
-
})
|
|
11
|
-
export class ThemingCssOverrideExample {}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<dasar-theme-provider [componentConfig]="componentConfig" [tokenConfig]="tokenConfig">
|
|
2
|
-
<dasar-card label="Scoped theme">
|
|
3
|
-
<div style="display: flex; gap: 12px; align-items: center; flex-wrap: wrap">
|
|
4
|
-
<dasar-button variant="primary">Themed button</dasar-button>
|
|
5
|
-
<dasar-chip variant="primary">Themed chip</dasar-chip>
|
|
6
|
-
</div>
|
|
7
|
-
</dasar-card>
|
|
8
|
-
</dasar-theme-provider>
|
|
9
|
-
|
|
10
|
-
<p style="font-size: 12px; margin-top: 8px; color: gray">
|
|
11
|
-
tokens.light.common sets the primary color, tokens.light.button sets the md radius and the font
|
|
12
|
-
weight. Only content inside this provider is affected.
|
|
13
|
-
</p>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
DasarButtonComponent,
|
|
4
|
-
DasarCardComponent,
|
|
5
|
-
DasarChipComponent,
|
|
6
|
-
DasarComponentConfig,
|
|
7
|
-
DasarThemeConfig,
|
|
8
|
-
DasarThemeProviderComponent,
|
|
9
|
-
} from 'dasar-ui';
|
|
10
|
-
|
|
11
|
-
@Component({
|
|
12
|
-
templateUrl: './theming-custom-tokens.example.html',
|
|
13
|
-
selector: 'app-theming-custom-tokens-example',
|
|
14
|
-
imports: [
|
|
15
|
-
DasarThemeProviderComponent,
|
|
16
|
-
DasarButtonComponent,
|
|
17
|
-
DasarCardComponent,
|
|
18
|
-
DasarChipComponent,
|
|
19
|
-
],
|
|
20
|
-
standalone: true,
|
|
21
|
-
})
|
|
22
|
-
export class ThemingCustomTokensExample {
|
|
23
|
-
protected componentConfig: DasarComponentConfig = {
|
|
24
|
-
button: { appearance: 'solid', size: 'sm' },
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
protected tokenConfig: DasarThemeConfig['tokens'] = {
|
|
28
|
-
light: {
|
|
29
|
-
common: { primaryColor: '#7c3aed' },
|
|
30
|
-
button: { radiusMd: '999px', fontWeight: '700' },
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<dasar-button variant="primary">Unthemed by this example</dasar-button>
|
|
2
|
-
|
|
3
|
-
<p style="font-size: 12px; margin-top: 8px; color: gray">
|
|
4
|
-
The TypeScript tab shows setGlobalTheme. This preview is intentionally not themed, because calling
|
|
5
|
-
it here would restyle the whole docs site.
|
|
6
|
-
</p>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Component, inject } from '@angular/core';
|
|
2
|
-
import { DasarButtonComponent, DasarThemeService } from 'dasar-ui';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
templateUrl: './theming-global-theme.example.html',
|
|
6
|
-
selector: 'app-theming-global-theme-example',
|
|
7
|
-
imports: [DasarButtonComponent],
|
|
8
|
-
standalone: true,
|
|
9
|
-
})
|
|
10
|
-
export class ThemingGlobalThemeExample {
|
|
11
|
-
private themes = inject(DasarThemeService);
|
|
12
|
-
|
|
13
|
-
protected applyTheme() {
|
|
14
|
-
this.themes.setGlobalTheme({
|
|
15
|
-
mode: 'light',
|
|
16
|
-
components: { button: { appearance: 'solid', size: 'md' } },
|
|
17
|
-
tokens: { light: { common: { primaryColor: '#2563eb' } } },
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<dasar-theme-provider [mode]="mode()" [tokenConfig]="tokenConfig">
|
|
2
|
-
<dasar-card label="Light and dark">
|
|
3
|
-
<div style="display: flex; gap: 12px; align-items: center; flex-wrap: wrap">
|
|
4
|
-
<dasar-button variant="primary" (click)="toggle()">
|
|
5
|
-
<span style="text-transform: capitalize">Theme: {{ mode() }}</span>
|
|
6
|
-
</dasar-button>
|
|
7
|
-
<dasar-button variant="secondary" appearance="outline">Secondary</dasar-button>
|
|
8
|
-
</div>
|
|
9
|
-
</dasar-card>
|
|
10
|
-
</dasar-theme-provider>
|
|
11
|
-
|
|
12
|
-
<p style="font-size: 12px; margin-top: 8px; color: gray">
|
|
13
|
-
The provider sets data-theme on its host and picks tokens.light or tokens.dark. Click the button
|
|
14
|
-
to switch modes.
|
|
15
|
-
</p>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, signal } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
DasarButtonComponent,
|
|
4
|
-
DasarCardComponent,
|
|
5
|
-
DasarThemeConfig,
|
|
6
|
-
DasarThemeMode,
|
|
7
|
-
DasarThemeProviderComponent,
|
|
8
|
-
} from 'dasar-ui';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
templateUrl: './theming-light-dark.example.html',
|
|
12
|
-
selector: 'app-theming-light-dark-example',
|
|
13
|
-
imports: [DasarThemeProviderComponent, DasarButtonComponent, DasarCardComponent],
|
|
14
|
-
standalone: true,
|
|
15
|
-
})
|
|
16
|
-
export class ThemingLightDarkExample {
|
|
17
|
-
protected mode = signal<DasarThemeMode>('light');
|
|
18
|
-
|
|
19
|
-
protected tokenConfig: DasarThemeConfig['tokens'] = {
|
|
20
|
-
light: {
|
|
21
|
-
common: { primaryColor: '#2563eb' },
|
|
22
|
-
},
|
|
23
|
-
dark: {
|
|
24
|
-
common: { primaryColor: '#60a5fa' },
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
protected toggle() {
|
|
29
|
-
this.mode.update((current) => (current === 'light' ? 'dark' : 'light'));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { DasarTableComponent, DasarTableColumn } from 'dasar-ui';
|
|
4
|
-
import { DocsLayoutComponent } from '../../layouts/doc.layout';
|
|
5
|
-
import { COMPONENT_CONFIG_DOCS } from './theming.data';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
imports: [CommonModule, DocsLayoutComponent, DasarTableComponent],
|
|
9
|
-
template: `<docs-layout
|
|
10
|
-
title="Component Config"
|
|
11
|
-
description="Every components.* key of DasarComponentConfig. Set them in setGlobalTheme or [componentConfig] on dasar-theme-provider. Explicit inputs on a component always win over these defaults."
|
|
12
|
-
>
|
|
13
|
-
@for (group of groups; track group.component) {
|
|
14
|
-
<h2 class="theming-group-title">components.{{ group.component }}</h2>
|
|
15
|
-
<dasar-table
|
|
16
|
-
[columns]="columns"
|
|
17
|
-
[hoverable]="true"
|
|
18
|
-
[striped]="true"
|
|
19
|
-
[data]="group.rows"
|
|
20
|
-
appearance="outline"
|
|
21
|
-
spacing="normal"
|
|
22
|
-
/>
|
|
23
|
-
}
|
|
24
|
-
</docs-layout>`,
|
|
25
|
-
styles: [
|
|
26
|
-
`
|
|
27
|
-
.theming-group-title {
|
|
28
|
-
margin: var(--space-6) 0 var(--space-3);
|
|
29
|
-
font-size: var(--font-size-lg);
|
|
30
|
-
}
|
|
31
|
-
dasar-table {
|
|
32
|
-
display: block;
|
|
33
|
-
margin-bottom: var(--space-6);
|
|
34
|
-
}
|
|
35
|
-
`,
|
|
36
|
-
],
|
|
37
|
-
selector: 'app-theming-component-config-page',
|
|
38
|
-
standalone: true,
|
|
39
|
-
})
|
|
40
|
-
export class ThemingComponentConfigDocPage {
|
|
41
|
-
protected columns: DasarTableColumn[] = [
|
|
42
|
-
{ key: 'name', label: 'Property' },
|
|
43
|
-
{ key: 'type', label: 'Type' },
|
|
44
|
-
{ key: 'defaultValue', label: 'Default' },
|
|
45
|
-
{ key: 'description', label: 'Description' },
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
protected groups = Object.entries(COMPONENT_CONFIG_DOCS).map(([component, rows]) => ({
|
|
49
|
-
component,
|
|
50
|
-
rows,
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { Component, computed, signal } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { DasarInputComponent, DasarTableComponent, DasarTableColumn } from 'dasar-ui';
|
|
5
|
-
import { DocsLayoutComponent } from '../../layouts/doc.layout';
|
|
6
|
-
import { TOKEN_ROWS } from './theming.data';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
imports: [
|
|
10
|
-
CommonModule,
|
|
11
|
-
FormsModule,
|
|
12
|
-
DocsLayoutComponent,
|
|
13
|
-
DasarTableComponent,
|
|
14
|
-
DasarInputComponent,
|
|
15
|
-
],
|
|
16
|
-
template: `<docs-layout
|
|
17
|
-
title="CSS Variables"
|
|
18
|
-
description="Flat list of every CSS variable the library reads, with the component and token behind it. Override any of them in plain CSS."
|
|
19
|
-
>
|
|
20
|
-
<dasar-input
|
|
21
|
-
label="Search variables"
|
|
22
|
-
placeholder="For example --btn- or --list-"
|
|
23
|
-
[ngModel]="query()"
|
|
24
|
-
(ngModelChange)="query.set($event)"
|
|
25
|
-
/>
|
|
26
|
-
<p class="theming-count">{{ rows().length }} variables</p>
|
|
27
|
-
<dasar-table
|
|
28
|
-
[columns]="columns"
|
|
29
|
-
[hoverable]="true"
|
|
30
|
-
[striped]="true"
|
|
31
|
-
[data]="rows()"
|
|
32
|
-
appearance="outline"
|
|
33
|
-
spacing="normal"
|
|
34
|
-
/>
|
|
35
|
-
</docs-layout>`,
|
|
36
|
-
styles: [
|
|
37
|
-
`
|
|
38
|
-
.theming-count {
|
|
39
|
-
font-size: var(--font-size-sm);
|
|
40
|
-
color: var(--theme-text-secondary-color);
|
|
41
|
-
}
|
|
42
|
-
dasar-table {
|
|
43
|
-
display: block;
|
|
44
|
-
margin-top: var(--space-4);
|
|
45
|
-
}
|
|
46
|
-
`,
|
|
47
|
-
],
|
|
48
|
-
selector: 'app-theming-css-variables-page',
|
|
49
|
-
standalone: true,
|
|
50
|
-
})
|
|
51
|
-
export class ThemingCssVariablesDocPage {
|
|
52
|
-
protected query = signal('');
|
|
53
|
-
|
|
54
|
-
protected columns: DasarTableColumn[] = [
|
|
55
|
-
{ key: 'cssVar', label: 'CSS variable' },
|
|
56
|
-
{ key: 'component', label: 'Component' },
|
|
57
|
-
{ key: 'token', label: 'Token key' },
|
|
58
|
-
{ key: 'path', label: 'Config path' },
|
|
59
|
-
];
|
|
60
|
-
|
|
61
|
-
protected rows = computed(() => {
|
|
62
|
-
const q = this.query().trim().toLowerCase();
|
|
63
|
-
if (!q) return TOKEN_ROWS;
|
|
64
|
-
return TOKEN_ROWS.filter(
|
|
65
|
-
(row) =>
|
|
66
|
-
row.cssVar.toLowerCase().includes(q) ||
|
|
67
|
-
row.token.toLowerCase().includes(q) ||
|
|
68
|
-
row.component.toLowerCase().includes(q),
|
|
69
|
-
);
|
|
70
|
-
});
|
|
71
|
-
}
|