@ojiepermana/angular 22.1.11 → 22.1.13
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 +32 -26
- package/chart/README.md +272 -0
- package/component/README.md +89 -0
- package/component/accordion/README.md +195 -0
- package/component/alert/README.md +184 -0
- package/component/alert-dialog/README.md +255 -0
- package/component/aspect-ratio/README.md +116 -0
- package/component/avatar/README.md +182 -0
- package/component/badge/README.md +143 -0
- package/component/breadcrumb/README.md +223 -0
- package/component/button/README.md +141 -0
- package/component/button-group/README.md +214 -0
- package/component/calendar/README.md +137 -0
- package/component/card/README.md +232 -0
- package/component/carousel/README.md +276 -0
- package/component/checkbox/README.md +153 -0
- package/component/collapsible/README.md +216 -0
- package/component/combobox/README.md +202 -0
- package/component/command/README.md +287 -0
- package/component/composer/README.md +241 -0
- package/component/context-menu/README.md +268 -0
- package/component/date-picker/README.md +202 -0
- package/component/dialog/README.md +276 -0
- package/component/drawer/README.md +147 -0
- package/component/dropdown-menu/README.md +336 -0
- package/component/editor/README.md +152 -0
- package/component/empty/README.md +193 -0
- package/component/form/README.md +216 -0
- package/component/hover-card/README.md +150 -0
- package/component/icon/README.md +25 -0
- package/component/input/README.md +160 -0
- package/component/input-group/README.md +245 -0
- package/component/input-otp/README.md +331 -0
- package/component/item/README.md +254 -0
- package/component/kanban/README.md +81 -0
- package/component/kbd/README.md +141 -0
- package/component/label/README.md +137 -0
- package/component/menubar/README.md +270 -0
- package/component/native-select/README.md +176 -0
- package/component/navigation-menu/README.md +165 -0
- package/component/pagination/README.md +151 -0
- package/component/pillbox/README.md +68 -0
- package/component/popover/README.md +54 -0
- package/component/progress/README.md +160 -0
- package/component/radio/README.md +212 -0
- package/component/resizable/README.md +178 -0
- package/component/scroll-area/README.md +150 -0
- package/component/select/README.md +228 -0
- package/component/separator/README.md +175 -0
- package/component/sheet/README.md +190 -0
- package/component/skeleton/README.md +158 -0
- package/component/slider/README.md +207 -0
- package/component/spinner/README.md +160 -0
- package/component/switch/README.md +170 -0
- package/component/table/README.md +292 -0
- package/component/tabs/README.md +220 -0
- package/component/textarea/README.md +169 -0
- package/component/timeline/README.md +94 -0
- package/component/toast/README.md +173 -0
- package/component/toggle/README.md +133 -0
- package/component/toggle-group/README.md +234 -0
- package/component/tooltip/README.md +230 -0
- package/fesm2022/ojiepermana-angular-chart-area.mjs +289 -3
- package/fesm2022/ojiepermana-angular-chart-bar.mjs +722 -3
- package/fesm2022/ojiepermana-angular-chart-core.mjs +1482 -3
- package/fesm2022/ojiepermana-angular-chart-line.mjs +294 -3
- package/fesm2022/ojiepermana-angular-chart-pie.mjs +291 -3
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1301 -3
- package/fesm2022/ojiepermana-angular-chart-radar.mjs +421 -3
- package/fesm2022/ojiepermana-angular-chart-radial.mjs +295 -3
- package/fesm2022/ojiepermana-angular-chart-scatter.mjs +306 -3
- package/fesm2022/ojiepermana-angular-chart.mjs +12 -3
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +267 -3
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +359 -3
- package/fesm2022/ojiepermana-angular-component-alert.mjs +101 -3
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +31 -3
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -3
- package/fesm2022/ojiepermana-angular-component-badge.mjs +57 -3
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +192 -3
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +95 -3
- package/fesm2022/ojiepermana-angular-component-button.mjs +73 -3
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +718 -3
- package/fesm2022/ojiepermana-angular-component-card.mjs +167 -3
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +326 -3
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +190 -3
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +117 -3
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +327 -3
- package/fesm2022/ojiepermana-angular-component-command.mjs +351 -3
- package/fesm2022/ojiepermana-angular-component-composer.mjs +359 -3
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +158 -3
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +482 -3
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +400 -3
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +1 -3
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +689 -3
- package/fesm2022/ojiepermana-angular-component-editor.mjs +511 -3
- package/fesm2022/ojiepermana-angular-component-empty.mjs +134 -3
- package/fesm2022/ojiepermana-angular-component-form.mjs +438 -3
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +273 -3
- package/fesm2022/ojiepermana-angular-component-icon.mjs +139 -3
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +176 -3
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +550 -3
- package/fesm2022/ojiepermana-angular-component-input.mjs +52 -3
- package/fesm2022/ojiepermana-angular-component-item.mjs +264 -3
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +310 -3
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +48 -3
- package/fesm2022/ojiepermana-angular-component-label.mjs +27 -3
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +327 -3
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +62 -3
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +378 -3
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +238 -3
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +999 -3
- package/fesm2022/ojiepermana-angular-component-popover.mjs +201 -3
- package/fesm2022/ojiepermana-angular-component-progress.mjs +57 -3
- package/fesm2022/ojiepermana-angular-component-radio.mjs +180 -3
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +493 -3
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +51 -3
- package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +227 -3
- package/fesm2022/ojiepermana-angular-component-select.mjs +609 -3
- package/fesm2022/ojiepermana-angular-component-separator.mjs +31 -3
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +407 -3
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +25 -3
- package/fesm2022/ojiepermana-angular-component-slider.mjs +456 -3
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +56 -3
- package/fesm2022/ojiepermana-angular-component-switch.mjs +145 -3
- package/fesm2022/ojiepermana-angular-component-table.mjs +155 -3
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +315 -3
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +46 -3
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -3
- package/fesm2022/ojiepermana-angular-component-toast.mjs +241 -3
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +290 -3
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +76 -3
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +519 -3
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +310 -3
- package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +62 -3
- package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +34 -3
- package/fesm2022/ojiepermana-angular-component-utils.mjs +3 -2
- package/fesm2022/ojiepermana-angular-component.mjs +4 -4
- package/fesm2022/ojiepermana-angular-navigation-core.mjs +21 -3
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +20 -3
- package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-CDBxQ8rk.mjs +91 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DBQHdvGa.mjs +512 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-entry-grid.component-Cd-jh6tg.mjs +623 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BCGvhoYj.mjs +404 -0
- package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-Dk_03e-6.mjs +466 -0
- package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-DNKU6viC.mjs +2642 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +725 -3
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +65 -4
- package/fesm2022/ojiepermana-angular-navigation.mjs +4 -10
- package/fesm2022/ojiepermana-angular-sdk.mjs +204 -4
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1387 -3
- package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +331 -3
- package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +45 -4
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1044 -3
- package/fesm2022/ojiepermana-angular-theme-layout.mjs +729 -3
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +381 -3
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +267 -3
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +361 -3
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +198 -3
- package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +110 -3
- package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -2
- package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +338 -3
- package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +160 -4
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +811 -3
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +783 -3
- package/fesm2022/ojiepermana-angular-theme.mjs +4 -4
- package/fesm2022/ojiepermana-angular.mjs +6 -11
- package/navigation/README.md +374 -0
- package/package.json +81 -20
- package/sdk/README.md +212 -0
- package/sdk/schematics/collection.json +20 -0
- package/sdk/schematics/init/index.js +83 -0
- package/sdk/schematics/init/schema.json +19 -0
- package/sdk/schematics/ng-add/index.js +147 -0
- package/sdk/schematics/ng-add/schema.json +14 -0
- package/sdk/schematics/package.json +3 -0
- package/sdk/schematics/sdk/index.js +175 -0
- package/sdk/schematics/sdk/schema.json +19 -0
- package/sdk/sdk.config.example.json +24 -0
- package/sdk/src/config/loader.js +43 -0
- package/sdk/src/config/schema.js +59 -0
- package/sdk/src/emit/client.js +251 -0
- package/sdk/src/emit/metadata.js +310 -0
- package/sdk/src/emit/models.js +104 -0
- package/sdk/src/emit/navigation.js +56 -0
- package/sdk/src/emit/operations.js +118 -0
- package/sdk/src/emit/public-api.js +54 -0
- package/sdk/src/emit/services.js +110 -0
- package/sdk/src/engine.js +67 -0
- package/sdk/src/layout/per-domain.js +360 -0
- package/sdk/src/package.json +3 -0
- package/sdk/src/parser/bundle.js +25 -0
- package/sdk/src/parser/ir.js +429 -0
- package/sdk/src/parser/types.js +7 -0
- package/sdk/src/render/template.js +152 -0
- package/sdk/src/writer/index.js +286 -0
- package/theme/README.md +126 -0
- package/theme/component/settings/README.md +135 -0
- package/theme/layout/README.md +539 -0
- package/theme/page/README.md +453 -0
- package/theme/shell/README.md +340 -0
- package/theme/styles/README.md +178 -0
- package/theme/styles/css/base/components.css +553 -0
- package/theme/styles/css/base/index.css +14 -0
- package/theme/styles/css/base/package.css +9 -0
- package/theme/styles/css/base/prefers-dark.css +86 -0
- package/theme/styles/css/base/print.css +62 -0
- package/theme/styles/css/base/status.css +38 -0
- package/theme/styles/css/base/tailwind.css +165 -0
- package/theme/styles/css/base/theme.css +374 -0
- package/theme/styles/css/base/tokens.css +361 -0
- package/theme/styles/css/color/amber.css +72 -0
- package/theme/styles/css/color/blue.css +72 -0
- package/theme/styles/css/color/brand.css +38 -0
- package/theme/styles/css/color/cyan.css +72 -0
- package/theme/styles/css/color/emerald.css +72 -0
- package/theme/styles/css/color/fuchsia.css +72 -0
- package/theme/styles/css/color/green.css +72 -0
- package/theme/styles/css/color/index.css +19 -0
- package/theme/styles/css/color/indigo.css +72 -0
- package/theme/styles/css/color/lime.css +72 -0
- package/theme/styles/css/color/orange.css +72 -0
- package/theme/styles/css/color/pink.css +72 -0
- package/theme/styles/css/color/purple.css +72 -0
- package/theme/styles/css/color/red.css +72 -0
- package/theme/styles/css/color/rose.css +72 -0
- package/theme/styles/css/color/sky.css +72 -0
- package/theme/styles/css/color/teal.css +72 -0
- package/theme/styles/css/color/violet.css +72 -0
- package/theme/styles/css/color/yellow.css +72 -0
- package/theme/styles/css/index.css +18 -0
- package/theme/styles/css/neutral/gray.css +63 -0
- package/theme/styles/css/neutral/index.css +11 -0
- package/theme/styles/css/neutral/mauve.css +63 -0
- package/theme/styles/css/neutral/mist.css +63 -0
- package/theme/styles/css/neutral/neutral.css +63 -0
- package/theme/styles/css/neutral/olive.css +63 -0
- package/theme/styles/css/neutral/slate.css +63 -0
- package/theme/styles/css/neutral/stone.css +63 -0
- package/theme/styles/css/neutral/taupe.css +63 -0
- package/theme/styles/css/neutral/zinc.css +63 -0
- package/theme/styles/css/radius/index.css +30 -0
- package/theme/styles/css/space/index.css +20 -0
- package/types/ojiepermana-angular-chart-area.d.ts +76 -1
- package/types/ojiepermana-angular-chart-bar.d.ts +201 -1
- package/types/ojiepermana-angular-chart-core.d.ts +811 -1
- package/types/ojiepermana-angular-chart-line.d.ts +75 -1
- package/types/ojiepermana-angular-chart-pie.d.ts +131 -1
- package/types/ojiepermana-angular-chart-primitives.d.ts +291 -1
- package/types/ojiepermana-angular-chart-radar.d.ts +116 -1
- package/types/ojiepermana-angular-chart-radial.d.ts +116 -1
- package/types/ojiepermana-angular-chart-scatter.d.ts +125 -1
- package/types/ojiepermana-angular-chart.d.ts +2 -1
- package/types/ojiepermana-angular-component-accordion.d.ts +85 -1
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +140 -1
- package/types/ojiepermana-angular-component-alert.d.ts +42 -1
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -1
- package/types/ojiepermana-angular-component-avatar.d.ts +56 -1
- package/types/ojiepermana-angular-component-badge.d.ts +24 -1
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -1
- package/types/ojiepermana-angular-component-button-group.d.ts +26 -1
- package/types/ojiepermana-angular-component-button.d.ts +27 -1
- package/types/ojiepermana-angular-component-calendar.d.ts +111 -1
- package/types/ojiepermana-angular-component-card.d.ts +69 -1
- package/types/ojiepermana-angular-component-carousel.d.ts +86 -1
- package/types/ojiepermana-angular-component-checkbox.d.ts +42 -1
- package/types/ojiepermana-angular-component-collapsible.d.ts +42 -1
- package/types/ojiepermana-angular-component-combobox.d.ts +60 -1
- package/types/ojiepermana-angular-component-command.d.ts +130 -1
- package/types/ojiepermana-angular-component-composer.d.ts +90 -1
- package/types/ojiepermana-angular-component-context-menu.d.ts +54 -1
- package/types/ojiepermana-angular-component-date-picker.d.ts +109 -1
- package/types/ojiepermana-angular-component-dialog.d.ts +136 -1
- package/types/ojiepermana-angular-component-drawer.d.ts +1 -1
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +248 -1
- package/types/ojiepermana-angular-component-editor.d.ts +135 -1
- package/types/ojiepermana-angular-component-empty.d.ts +50 -1
- package/types/ojiepermana-angular-component-form.d.ts +159 -1
- package/types/ojiepermana-angular-component-hover-card.d.ts +75 -1
- package/types/ojiepermana-angular-component-icon.d.ts +89 -1
- package/types/ojiepermana-angular-component-input-group.d.ts +51 -1
- package/types/ojiepermana-angular-component-input-otp.d.ts +155 -1
- package/types/ojiepermana-angular-component-input.d.ts +21 -1
- package/types/ojiepermana-angular-component-item.d.ts +93 -1
- package/types/ojiepermana-angular-component-kanban.d.ts +70 -1
- package/types/ojiepermana-angular-component-kbd.d.ts +16 -1
- package/types/ojiepermana-angular-component-label.d.ts +11 -1
- package/types/ojiepermana-angular-component-menubar.d.ts +93 -1
- package/types/ojiepermana-angular-component-native-select.d.ts +26 -1
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +104 -1
- package/types/ojiepermana-angular-component-pagination.d.ts +33 -1
- package/types/ojiepermana-angular-component-pillbox.d.ts +222 -1
- package/types/ojiepermana-angular-component-popover.d.ts +66 -1
- package/types/ojiepermana-angular-component-progress.d.ts +17 -1
- package/types/ojiepermana-angular-component-radio.d.ts +60 -1
- package/types/ojiepermana-angular-component-resizable.d.ts +117 -1
- package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -1
- package/types/ojiepermana-angular-component-segmented-control.d.ts +58 -1
- package/types/ojiepermana-angular-component-select.d.ts +122 -1
- package/types/ojiepermana-angular-component-separator.d.ts +14 -1
- package/types/ojiepermana-angular-component-sheet.d.ts +130 -1
- package/types/ojiepermana-angular-component-skeleton.d.ts +10 -1
- package/types/ojiepermana-angular-component-slider.d.ts +83 -1
- package/types/ojiepermana-angular-component-spinner.d.ts +13 -1
- package/types/ojiepermana-angular-component-switch.d.ts +44 -1
- package/types/ojiepermana-angular-component-table.d.ts +57 -1
- package/types/ojiepermana-angular-component-tabs.d.ts +124 -1
- package/types/ojiepermana-angular-component-textarea.d.ts +17 -1
- package/types/ojiepermana-angular-component-timeline.d.ts +64 -1
- package/types/ojiepermana-angular-component-toast.d.ts +64 -1
- package/types/ojiepermana-angular-component-toggle-group.d.ts +90 -1
- package/types/ojiepermana-angular-component-toggle.d.ts +25 -1
- package/types/ojiepermana-angular-component-tooltip.d.ts +143 -1
- package/types/ojiepermana-angular-component-utils-core.d.ts +184 -1
- package/types/ojiepermana-angular-component-utils-overlay.d.ts +21 -1
- package/types/ojiepermana-angular-component-utils-scale.d.ts +19 -1
- package/types/ojiepermana-angular-component-utils.d.ts +2 -1
- package/types/ojiepermana-angular-component.d.ts +2 -1
- package/types/ojiepermana-angular-navigation-core.d.ts +59 -1
- package/types/ojiepermana-angular-navigation-icon.d.ts +12 -1
- package/types/ojiepermana-angular-navigation-service.d.ts +116 -1
- package/types/ojiepermana-angular-navigation-types.d.ts +144 -1
- package/types/ojiepermana-angular-navigation.d.ts +507 -1
- package/types/ojiepermana-angular-sdk.d.ts +89 -1
- package/types/ojiepermana-angular-theme-component-settings.d.ts +154 -1
- package/types/ojiepermana-angular-theme-layout-services.d.ts +147 -1
- package/types/ojiepermana-angular-theme-layout-types.d.ts +40 -1
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +299 -1
- package/types/ojiepermana-angular-theme-layout.d.ts +129 -1
- package/types/ojiepermana-angular-theme-page-core.d.ts +157 -1
- package/types/ojiepermana-angular-theme-page-filter.d.ts +77 -1
- package/types/ojiepermana-angular-theme-page-root.d.ts +88 -1
- package/types/ojiepermana-angular-theme-page-side.d.ts +50 -1
- package/types/ojiepermana-angular-theme-page-slots.d.ts +40 -1
- package/types/ojiepermana-angular-theme-page.d.ts +5 -1
- package/types/ojiepermana-angular-theme-shell-services.d.ts +193 -1
- package/types/ojiepermana-angular-theme-shell-types.d.ts +105 -1
- package/types/ojiepermana-angular-theme-shell.d.ts +100 -1
- package/types/ojiepermana-angular-theme-styles.d.ts +319 -1
- package/types/ojiepermana-angular-theme.d.ts +2 -1
- package/types/ojiepermana-angular.d.ts +5 -5
|
@@ -1 +1,130 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { model } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
/** Base class exposed to children for context lookup. */
|
|
5
|
+
declare abstract class CommandContextBase {
|
|
6
|
+
/** Shared id linking the combobox input (aria-controls) to the listbox. */
|
|
7
|
+
readonly listboxId: string;
|
|
8
|
+
abstract query: ReturnType<typeof model<string>>;
|
|
9
|
+
abstract matches(text: string): boolean;
|
|
10
|
+
abstract registerItem(item: CommandItemComponent): void;
|
|
11
|
+
abstract unregisterItem(item: CommandItemComponent): void;
|
|
12
|
+
abstract focusNext(delta: number): void;
|
|
13
|
+
abstract focusFirst(): void;
|
|
14
|
+
abstract hasVisibleItems(): boolean;
|
|
15
|
+
abstract activateOnly(item: CommandItemComponent): void;
|
|
16
|
+
abstract activeDescendantId(): string | null;
|
|
17
|
+
abstract requestDismiss(): void;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandContextBase, never>;
|
|
19
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CommandContextBase, never, never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
declare class CommandComponent extends CommandContextBase {
|
|
22
|
+
readonly query: _angular_core.ModelSignal<string>;
|
|
23
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Escape was pressed with nothing left to clear.
|
|
26
|
+
*
|
|
27
|
+
* A `Command` rendered inside a dialog or a popover does not need this: the
|
|
28
|
+
* overlay closes itself on Escape. A standalone one is not inside anything
|
|
29
|
+
* that would, so this is how it asks its container to dismiss it.
|
|
30
|
+
*/
|
|
31
|
+
readonly dismissed: _angular_core.OutputEmitterRef<void>;
|
|
32
|
+
private readonly items;
|
|
33
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
34
|
+
matches(text: string): boolean;
|
|
35
|
+
registerItem(item: CommandItemComponent): void;
|
|
36
|
+
unregisterItem(item: CommandItemComponent): void;
|
|
37
|
+
/** Items currently visible (not filtered out), disabled ones included. */
|
|
38
|
+
private visibleItems;
|
|
39
|
+
private navigableItems;
|
|
40
|
+
focusNext(delta: number): void;
|
|
41
|
+
focusFirst(): void;
|
|
42
|
+
requestDismiss(): void;
|
|
43
|
+
hasVisibleItems(): boolean;
|
|
44
|
+
activateOnly(item: CommandItemComponent): void;
|
|
45
|
+
activeDescendantId(): string | null;
|
|
46
|
+
/** The row Enter would choose: the active one, else the first one it may land on. */
|
|
47
|
+
getActive(): CommandItemComponent | null;
|
|
48
|
+
private setActiveItem;
|
|
49
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandComponent, never>;
|
|
50
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandComponent, "Command", never, { "query": { "alias": "query"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "query": "queryChange"; "dismissed": "dismissed"; }, never, ["*"], true, never>;
|
|
51
|
+
}
|
|
52
|
+
declare class CommandInputComponent {
|
|
53
|
+
protected readonly ctx: CommandComponent;
|
|
54
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
55
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
56
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
57
|
+
protected onInput(e: Event): void;
|
|
58
|
+
protected onArrow(e: KeyboardEvent, delta: number): void;
|
|
59
|
+
protected onEnter(e: KeyboardEvent): void;
|
|
60
|
+
protected onEscape(e: KeyboardEvent): void;
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandInputComponent, never>;
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandInputComponent, "input[CommandInput]", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
63
|
+
}
|
|
64
|
+
declare class CommandListComponent {
|
|
65
|
+
protected readonly ctx: CommandContextBase;
|
|
66
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
67
|
+
/** Accessible name for the listbox (required on role="listbox"). */
|
|
68
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
69
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
70
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandListComponent, never>;
|
|
71
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandListComponent, "CommandList", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
72
|
+
}
|
|
73
|
+
declare class CommandEmptyComponent {
|
|
74
|
+
protected readonly ctx: CommandComponent;
|
|
75
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
76
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
77
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandEmptyComponent, never>;
|
|
78
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandEmptyComponent, "CommandEmpty", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
79
|
+
}
|
|
80
|
+
declare class CommandGroupComponent {
|
|
81
|
+
readonly heading: _angular_core.InputSignal<string | null>;
|
|
82
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
83
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
84
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandGroupComponent, never>;
|
|
85
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandGroupComponent, "CommandGroup", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
86
|
+
}
|
|
87
|
+
declare class CommandSeparatorComponent {
|
|
88
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
89
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
90
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandSeparatorComponent, never>;
|
|
91
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandSeparatorComponent, "CommandSeparator", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
92
|
+
}
|
|
93
|
+
declare class CommandItemComponent {
|
|
94
|
+
protected readonly ctx: CommandComponent;
|
|
95
|
+
private readonly el;
|
|
96
|
+
readonly itemId: string;
|
|
97
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
98
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
99
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Whether this option is the CHOSEN one, which is what `aria-selected`
|
|
102
|
+
* reports.
|
|
103
|
+
*
|
|
104
|
+
* It used to be bound to {@link active}, the highlighted row, which told a
|
|
105
|
+
* screen reader the wrong thing: moving the highlight looked like changing the
|
|
106
|
+
* selection. The highlighted row is announced through `aria-activedescendant`
|
|
107
|
+
* on the input instead, which is the listbox pattern.
|
|
108
|
+
*/
|
|
109
|
+
readonly selectedState: _angular_core.InputSignal<boolean>;
|
|
110
|
+
readonly selected: _angular_core.OutputEmitterRef<KeyboardEvent | MouseEvent>;
|
|
111
|
+
/** The highlighted row. Drives styling and `aria-activedescendant`, not `aria-selected`. */
|
|
112
|
+
readonly active: _angular_core.WritableSignal<boolean>;
|
|
113
|
+
readonly visible: _angular_core.Signal<boolean>;
|
|
114
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
115
|
+
constructor();
|
|
116
|
+
focus(): void;
|
|
117
|
+
_setActive(active: boolean): void;
|
|
118
|
+
_select(e: MouseEvent | KeyboardEvent): void;
|
|
119
|
+
protected onHover(): void;
|
|
120
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandItemComponent, never>;
|
|
121
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandItemComponent, "CommandItem, button[CommandItem]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "selectedState": { "alias": "selectedState"; "required": false; "isSignal": true; }; }, { "selected": "selected"; }, never, ["*"], true, never>;
|
|
122
|
+
}
|
|
123
|
+
declare class CommandShortcutComponent {
|
|
124
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
125
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
126
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandShortcutComponent, never>;
|
|
127
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandShortcutComponent, "span[CommandShortcut]", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export { CommandComponent, CommandContextBase, CommandEmptyComponent, CommandGroupComponent, CommandInputComponent, CommandItemComponent, CommandListComponent, CommandSeparatorComponent, CommandShortcutComponent };
|
|
@@ -1 +1,90 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
type ComposerVariant = 'default' | 'input';
|
|
6
|
+
type ComposerSubmitBehavior = 'cmd-enter' | 'enter';
|
|
7
|
+
declare class ComposerComponent {
|
|
8
|
+
readonly variant: _angular_core.InputSignal<ComposerVariant>;
|
|
9
|
+
readonly inline: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
readonly submit: _angular_core.InputSignal<ComposerSubmitBehavior>;
|
|
13
|
+
readonly submitForm: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
15
|
+
readonly submitRequested: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
16
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
17
|
+
protected readonly shellClasses: _angular_core.Signal<string>;
|
|
18
|
+
protected readonly bodyClasses: _angular_core.Signal<string>;
|
|
19
|
+
handleInputKeydown(event: KeyboardEvent): void;
|
|
20
|
+
private requestNearestFormSubmit;
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerComponent, never>;
|
|
22
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerComponent, "Composer", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "submit": { "alias": "submit"; "required": false; "isSignal": true; }; "submitForm": { "alias": "submitForm"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "submitRequested": "submitRequested"; }, never, ["ComposerHeader", "ComposerActionsLeading", "textarea[ComposerInput], ComposerInput", "ComposerActionsTrailing", "ComposerFooter"], true, never>;
|
|
23
|
+
}
|
|
24
|
+
declare class ComposerHeaderComponent {
|
|
25
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
26
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerHeaderComponent, never>;
|
|
28
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerHeaderComponent, "ComposerHeader", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
29
|
+
}
|
|
30
|
+
declare class ComposerFooterComponent {
|
|
31
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
32
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerFooterComponent, never>;
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerFooterComponent, "ComposerFooter", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
35
|
+
}
|
|
36
|
+
declare class ComposerActionsLeadingComponent {
|
|
37
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
38
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerActionsLeadingComponent, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerActionsLeadingComponent, "ComposerActionsLeading", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
41
|
+
}
|
|
42
|
+
declare class ComposerActionsTrailingComponent {
|
|
43
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
44
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
45
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerActionsTrailingComponent, never>;
|
|
46
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerActionsTrailingComponent, "ComposerActionsTrailing", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
47
|
+
}
|
|
48
|
+
declare class ComposerInputComponent {
|
|
49
|
+
private readonly composer;
|
|
50
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
readonly invalidInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
53
|
+
protected readonly disabled: _angular_core.Signal<boolean>;
|
|
54
|
+
protected readonly invalid: _angular_core.Signal<boolean>;
|
|
55
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
56
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
57
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerInputComponent, never>;
|
|
58
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerInputComponent, "ComposerInput", never, { "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "aria-invalid"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
59
|
+
}
|
|
60
|
+
declare class ComposerTextareaComponent implements AfterViewInit, ControlValueAccessor {
|
|
61
|
+
private readonly el;
|
|
62
|
+
private readonly composer;
|
|
63
|
+
readonly rows: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
64
|
+
readonly maxRows: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
65
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
readonly invalidInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
67
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
68
|
+
private readonly disabledState;
|
|
69
|
+
protected readonly disabled: _angular_core.Signal<boolean>;
|
|
70
|
+
protected readonly invalid: _angular_core.Signal<boolean>;
|
|
71
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
72
|
+
private onChange;
|
|
73
|
+
private onTouched;
|
|
74
|
+
ngAfterViewInit(): void;
|
|
75
|
+
writeValue(value: string | null): void;
|
|
76
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
77
|
+
registerOnTouched(fn: () => void): void;
|
|
78
|
+
setDisabledState(isDisabled: boolean): void;
|
|
79
|
+
resizeToContent(): void;
|
|
80
|
+
focus(): void;
|
|
81
|
+
protected handleInput(): void;
|
|
82
|
+
protected handleBlur(): void;
|
|
83
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
84
|
+
private getLineHeight;
|
|
85
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComposerTextareaComponent, never>;
|
|
86
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ComposerTextareaComponent, "textarea[ComposerInput]", never, { "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "aria-invalid"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { ComposerActionsLeadingComponent, ComposerActionsTrailingComponent, ComposerComponent, ComposerFooterComponent, ComposerHeaderComponent, ComposerInputComponent, ComposerTextareaComponent };
|
|
90
|
+
export type { ComposerSubmitBehavior, ComposerVariant };
|
|
@@ -1 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { MenuContentDirective } from '@ojiepermana/angular/component/dropdown-menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Opens a menu anchored to the cursor when the host fires `contextmenu`.
|
|
6
|
+
* Reuses `<ng-template MenuContent>` from the dropdown-menu entry.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <div [ContextMenuTrigger]="menu" class="p-12 border">Right-click me</div>
|
|
10
|
+
* <ng-template MenuContent #menu>
|
|
11
|
+
* <MenuSurface>
|
|
12
|
+
* <button MenuItem>Copy</button>
|
|
13
|
+
* <button MenuItem>Paste</button>
|
|
14
|
+
* </MenuSurface>
|
|
15
|
+
* </ng-template>
|
|
16
|
+
*/
|
|
17
|
+
declare class ContextMenuTriggerDirective {
|
|
18
|
+
private readonly overlay;
|
|
19
|
+
private readonly vcr;
|
|
20
|
+
private readonly el;
|
|
21
|
+
private readonly destroyRef;
|
|
22
|
+
private readonly injector;
|
|
23
|
+
readonly ContextMenuTrigger: _angular_core.InputSignal<MenuContentDirective>;
|
|
24
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
25
|
+
/** Ties `aria-controls` here to `aria-labelledby` on the surface. */
|
|
26
|
+
readonly triggerId: string;
|
|
27
|
+
readonly surfaceId: string;
|
|
28
|
+
readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
29
|
+
private overlayRef;
|
|
30
|
+
/** Set while the right click that opened the menu is still waiting on its `auxclick`. */
|
|
31
|
+
private pendingGestureRelease;
|
|
32
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
33
|
+
constructor();
|
|
34
|
+
protected onContextMenu(event: MouseEvent): void;
|
|
35
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
36
|
+
openAt(x: number, y: number): void;
|
|
37
|
+
close(emitOpenedChange?: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* A right click delivers `contextmenu` at mouse down and a trailing `auxclick`
|
|
40
|
+
* at mouse up. The overlay is created on the first, so the CDK outside-pointer
|
|
41
|
+
* dispatcher hands the second to the menu that very press just opened and it
|
|
42
|
+
* dismisses itself before the user releases the button.
|
|
43
|
+
*
|
|
44
|
+
* Swallow that one release, and only that one: the guard is armed by
|
|
45
|
+
* `onContextMenu` alone (never by the Shift+F10 path) and is spent on the next
|
|
46
|
+
* dismissal whatever it is, so a left click, a middle click, or a later right
|
|
47
|
+
* click on the trigger still closes the menu.
|
|
48
|
+
*/
|
|
49
|
+
private isOpeningGestureRelease;
|
|
50
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContextMenuTriggerDirective, never>;
|
|
51
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ContextMenuTriggerDirective, "[ContextMenuTrigger]", ["ContextMenuTrigger"], { "ContextMenuTrigger": { "alias": "ContextMenuTrigger"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "openedChange": "openedChange"; }, never, never, true, never>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { ContextMenuTriggerDirective };
|
|
@@ -1 +1,109 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, Validator, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { CalendarStartView } from '@ojiepermana/angular/component/calendar';
|
|
4
|
+
|
|
5
|
+
declare class DatePickerComponent implements ControlValueAccessor, Validator {
|
|
6
|
+
private readonly overlay;
|
|
7
|
+
private readonly documentRef;
|
|
8
|
+
private readonly destroyRef;
|
|
9
|
+
private readonly injector;
|
|
10
|
+
private readonly viewContainerRef;
|
|
11
|
+
private readonly instanceId;
|
|
12
|
+
readonly value: _angular_core.ModelSignal<Date | null>;
|
|
13
|
+
readonly id: _angular_core.InputSignal<string | null>;
|
|
14
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
15
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
readonly min: _angular_core.InputSignal<Date | null>;
|
|
17
|
+
readonly max: _angular_core.InputSignal<Date | null>;
|
|
18
|
+
readonly startAt: _angular_core.InputSignal<Date | null>;
|
|
19
|
+
readonly startView: _angular_core.InputSignal<CalendarStartView>;
|
|
20
|
+
readonly touchUi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly dateFilter: _angular_core.InputSignal<((date: Date | null) => boolean) | null>;
|
|
22
|
+
readonly panelClass: _angular_core.InputSignal<string | string[]>;
|
|
23
|
+
readonly panelAriaLabel: _angular_core.InputSignal<string>;
|
|
24
|
+
readonly invalidFormatMessage: _angular_core.InputSignal<string>;
|
|
25
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
26
|
+
readonly ariaLabelledby: _angular_core.InputSignal<string | null>;
|
|
27
|
+
readonly ariaDescribedby: _angular_core.InputSignal<string | null>;
|
|
28
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
30
|
+
readonly isEditing: _angular_core.WritableSignal<boolean>;
|
|
31
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* The text the field shows. Re-seeds from `value`, but a draft the user is
|
|
34
|
+
* still editing -- or one already refused -- outlives an incoming binding
|
|
35
|
+
* change, so their typing is never swapped out from under them.
|
|
36
|
+
*/
|
|
37
|
+
readonly inputValue: _angular_core.WritableSignal<string>;
|
|
38
|
+
protected readonly panelId: string;
|
|
39
|
+
protected readonly errorId: string;
|
|
40
|
+
private readonly draftError;
|
|
41
|
+
private readonly cvaDisabled;
|
|
42
|
+
private overlayRef;
|
|
43
|
+
private restoreFocusElement;
|
|
44
|
+
private validatorNotified;
|
|
45
|
+
private onChangeFn;
|
|
46
|
+
private onTouchedFn;
|
|
47
|
+
private onValidatorChangeFn;
|
|
48
|
+
private readonly origin;
|
|
49
|
+
private readonly input;
|
|
50
|
+
private readonly panel;
|
|
51
|
+
private readonly calendar;
|
|
52
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
53
|
+
protected readonly inputClasses: _angular_core.Signal<string>;
|
|
54
|
+
protected readonly resolvedId: _angular_core.Signal<string>;
|
|
55
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* What a bound control is told. A refused draft is reported here as well as
|
|
58
|
+
* painted on the field, so the form cannot call itself valid while the input
|
|
59
|
+
* is showing an error the user has to fix.
|
|
60
|
+
*/
|
|
61
|
+
private readonly validationErrors;
|
|
62
|
+
readonly validationError: _angular_core.Signal<string | null>;
|
|
63
|
+
protected readonly resolvedAriaDescribedby: _angular_core.Signal<string | null>;
|
|
64
|
+
constructor();
|
|
65
|
+
open(restoreFocusElement?: HTMLElement | null): void;
|
|
66
|
+
close(): void;
|
|
67
|
+
toggle(event?: MouseEvent): void;
|
|
68
|
+
onInput(event: Event): void;
|
|
69
|
+
onBlur(): void;
|
|
70
|
+
onEnter(event: KeyboardEvent): void;
|
|
71
|
+
onCalendarSelect(date: Date | null): void;
|
|
72
|
+
writeValue(value: Date | null): void;
|
|
73
|
+
registerOnChange(fn: (value: Date | null) => void): void;
|
|
74
|
+
registerOnTouched(fn: () => void): void;
|
|
75
|
+
setDisabledState(state: boolean): void;
|
|
76
|
+
validate(): ValidationErrors | null;
|
|
77
|
+
registerOnValidatorChange(fn: () => void): void;
|
|
78
|
+
private commitInput;
|
|
79
|
+
private setValue;
|
|
80
|
+
/**
|
|
81
|
+
* A refused draft never reaches the control, so nothing else would tell the
|
|
82
|
+
* forms API to ask again. The first flush is the initial computation, which
|
|
83
|
+
* the control's own set-up validation already covers.
|
|
84
|
+
*/
|
|
85
|
+
private notifyValidatorChange;
|
|
86
|
+
private isSelectable;
|
|
87
|
+
/**
|
|
88
|
+
* The same question the calendar answers, answered the same way, and named.
|
|
89
|
+
*
|
|
90
|
+
* This used to compare raw `Date` values while the calendar normalised to the
|
|
91
|
+
* start of the day, so a `min` or `max` carrying a time component split the
|
|
92
|
+
* two apart: a boundary date typed into the field was rejected, while the very
|
|
93
|
+
* same date clicked in the popup was accepted. One rule, one helper, one
|
|
94
|
+
* answer -- and the answer now says which constraint refused the date, so a
|
|
95
|
+
* bound control can report it.
|
|
96
|
+
*/
|
|
97
|
+
private rangeError;
|
|
98
|
+
/**
|
|
99
|
+
* CDK disposes its overlay during the current event turn. Restoring focus in
|
|
100
|
+
* that same turn works in Chromium but WebKit may move it back to the body
|
|
101
|
+
* while it removes the pane. Defer until the post-disposal frame so every
|
|
102
|
+
* browser receives a stable focus restoration.
|
|
103
|
+
*/
|
|
104
|
+
private restoreFocusAfterOverlayTeardown;
|
|
105
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatePickerComponent, "DatePicker", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "startView": { "alias": "startView"; "required": false; "isSignal": true; }; "touchUi": { "alias": "touchUi"; "required": false; "isSignal": true; }; "dateFilter": { "alias": "dateFilter"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "panelAriaLabel": { "alias": "panelAriaLabel"; "required": false; "isSignal": true; }; "invalidFormatMessage": { "alias": "invalidFormatMessage"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "ariaDescribedby": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { DatePickerComponent };
|
|
@@ -1 +1,136 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as i1 from '@ojiepermana/angular/component/utils/scale';
|
|
3
|
+
import { ComponentScaleDirective } from '@ojiepermana/angular/component/utils/scale';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Backdrop appearance for the area outside the dialog surface.
|
|
7
|
+
*
|
|
8
|
+
* - `'dim'`: dark, semi-transparent overlay (default) driven by the
|
|
9
|
+
* `--overlay-backdrop` theme token, so it recolors with theme/mode.
|
|
10
|
+
* - `'blur'`: the dim overlay plus a frosted `backdrop-filter` blur.
|
|
11
|
+
* - `'transparent'`: no dimming; the page behind stays fully visible.
|
|
12
|
+
*/
|
|
13
|
+
type DialogBackdrop = 'dim' | 'blur' | 'transparent';
|
|
14
|
+
/**
|
|
15
|
+
* Declarative modal dialog. Renders into the body via CDK overlay when
|
|
16
|
+
* `open` becomes `true`. Focus is trapped inside; restored to trigger on close.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <button Button (click)="open.set(true)">Open</button>
|
|
20
|
+
* <Dialog [(open)]="open">
|
|
21
|
+
* <DialogHeader>
|
|
22
|
+
* <DialogTitle>Are you sure?</DialogTitle>
|
|
23
|
+
* <DialogDescription>This action cannot be undone.</DialogDescription>
|
|
24
|
+
* </DialogHeader>
|
|
25
|
+
* <DialogFooter>
|
|
26
|
+
* <button Button variant="outline" (click)="open.set(false)">Cancel</button>
|
|
27
|
+
* <button Button variant="destructive" (click)="confirm()">Delete</button>
|
|
28
|
+
* </DialogFooter>
|
|
29
|
+
* </Dialog>
|
|
30
|
+
*/
|
|
31
|
+
declare class DialogComponent {
|
|
32
|
+
protected readonly componentScale: ComponentScaleDirective;
|
|
33
|
+
readonly radius: _angular_core.InputSignal<"inherit" | "none" | "xs" | "sm" | "md" | "xl" | "full">;
|
|
34
|
+
readonly density: _angular_core.InputSignal<"inherit" | "compact" | "normal" | "relaxed" | "spacious">;
|
|
35
|
+
private readonly overlay;
|
|
36
|
+
private readonly vcr;
|
|
37
|
+
private readonly trapFactory;
|
|
38
|
+
private readonly doc;
|
|
39
|
+
private readonly destroyRef;
|
|
40
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
41
|
+
readonly closeOnEscape: _angular_core.InputSignal<boolean>;
|
|
42
|
+
readonly closeOnBackdropClick: _angular_core.InputSignal<boolean>;
|
|
43
|
+
/** Appearance of the area outside the surface. Defaults to a dimmed overlay. */
|
|
44
|
+
readonly backdrop: _angular_core.InputSignal<DialogBackdrop>;
|
|
45
|
+
readonly showCloseButton: _angular_core.InputSignal<boolean>;
|
|
46
|
+
readonly closeButtonLabel: _angular_core.InputSignal<string>;
|
|
47
|
+
readonly labelledBy: _angular_core.InputSignal<string | null>;
|
|
48
|
+
readonly describedBy: _angular_core.InputSignal<string | null>;
|
|
49
|
+
/** ARIA role for the surface. `'dialog'` by default; `AlertDialog` sets `'alertdialog'`. */
|
|
50
|
+
readonly role: _angular_core.InputSignal<string>;
|
|
51
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
52
|
+
readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
53
|
+
private readonly registeredTitleId;
|
|
54
|
+
private readonly registeredDescriptionId;
|
|
55
|
+
/** Explicit `aria-labelledby` wins; otherwise a projected `DialogTitle` supplies the id. */
|
|
56
|
+
protected readonly resolvedLabelledBy: _angular_core.Signal<string | null>;
|
|
57
|
+
/** Explicit `aria-describedby` wins; otherwise a projected `DialogDescription` supplies the id. */
|
|
58
|
+
protected readonly resolvedDescribedBy: _angular_core.Signal<string | null>;
|
|
59
|
+
/** Called by a projected `DialogTitle` so default usage has an accessible name (AXE-safe). */
|
|
60
|
+
registerTitleId(id: string | null): void;
|
|
61
|
+
/** Cleared by a `DialogTitle` on destroy so a closed/reopened dialog never points at a stale id. */
|
|
62
|
+
unregisterTitleId(id: string): void;
|
|
63
|
+
/** Called by a projected `DialogDescription`. */
|
|
64
|
+
registerDescriptionId(id: string | null): void;
|
|
65
|
+
/** Cleared by a `DialogDescription` on destroy. */
|
|
66
|
+
unregisterDescriptionId(id: string): void;
|
|
67
|
+
private readonly tpl;
|
|
68
|
+
private overlayRef;
|
|
69
|
+
private focusTrap;
|
|
70
|
+
private previousFocus;
|
|
71
|
+
protected readonly surfaceClasses: _angular_core.Signal<string>;
|
|
72
|
+
/** CDK `backdropClass` list: shared marker plus the selected appearance modifier. */
|
|
73
|
+
private readonly backdropClass;
|
|
74
|
+
constructor();
|
|
75
|
+
private attach;
|
|
76
|
+
private detach;
|
|
77
|
+
private requestClose;
|
|
78
|
+
close(): void;
|
|
79
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
80
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogComponent, "Dialog", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "closeButtonLabel": { "alias": "closeButtonLabel"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "describedBy": { "alias": "aria-describedby"; "required": false; "isSignal": true; }; "role": { "alias": "role"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "openedChange": "openedChange"; }, never, ["*"], true, [{ directive: typeof i1.ComponentScaleDirective; inputs: { "radius": "radius"; "density": "density"; }; outputs: {}; }]>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class DialogCloseDirective {
|
|
84
|
+
private readonly dialog;
|
|
85
|
+
closeDialog(): void;
|
|
86
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogCloseDirective, never>;
|
|
87
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DialogCloseDirective, "button[DialogClose], a[DialogClose]", never, {}, {}, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class DialogHeaderComponent {
|
|
91
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
92
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
93
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
|
|
94
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogHeaderComponent, "DialogHeader", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
95
|
+
}
|
|
96
|
+
declare class DialogTitleComponent {
|
|
97
|
+
/** Explicit id override; when omitted a document-unique id is generated. */
|
|
98
|
+
readonly id: _angular_core.InputSignal<string | null>;
|
|
99
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
100
|
+
private readonly autoId;
|
|
101
|
+
private readonly dialog;
|
|
102
|
+
/** The id rendered on the element, used by the parent dialog for aria-labelledby. */
|
|
103
|
+
readonly resolvedId: _angular_core.Signal<string>;
|
|
104
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
105
|
+
constructor();
|
|
106
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogTitleComponent, never>;
|
|
107
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogTitleComponent, "DialogTitle, h2[DialogTitle]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
108
|
+
}
|
|
109
|
+
declare class DialogDescriptionComponent {
|
|
110
|
+
/** Explicit id override; when omitted a document-unique id is generated. */
|
|
111
|
+
readonly id: _angular_core.InputSignal<string | null>;
|
|
112
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
113
|
+
private readonly autoId;
|
|
114
|
+
private readonly dialog;
|
|
115
|
+
/** The id rendered on the element, used by the parent dialog for aria-describedby. */
|
|
116
|
+
readonly resolvedId: _angular_core.Signal<string>;
|
|
117
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
118
|
+
constructor();
|
|
119
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogDescriptionComponent, never>;
|
|
120
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogDescriptionComponent, "DialogDescription, p[DialogDescription]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
121
|
+
}
|
|
122
|
+
declare class DialogContentComponent {
|
|
123
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
124
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
125
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogContentComponent, never>;
|
|
126
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogContentComponent, "DialogContent", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
127
|
+
}
|
|
128
|
+
declare class DialogFooterComponent {
|
|
129
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
130
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
131
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogFooterComponent, never>;
|
|
132
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogFooterComponent, "DialogFooter", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { DialogCloseDirective, DialogComponent, DialogContentComponent, DialogDescriptionComponent, DialogFooterComponent, DialogHeaderComponent, DialogTitleComponent };
|
|
136
|
+
export type { DialogBackdrop };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SheetCloseDirective as DrawerCloseDirective, SheetComponent as DrawerComponent, SheetContentComponent as DrawerContentComponent, SheetDescriptionComponent as DrawerDescriptionComponent, SheetSide as DrawerDirection, SheetFooterComponent as DrawerFooterComponent, SheetHeaderComponent as DrawerHeaderComponent, SheetSide as DrawerSide, SheetTitleComponent as DrawerTitleComponent } from '@ojiepermana/angular/component/sheet';
|