@wirabyte/ui 0.0.0-stage → 1.0.0-beta.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/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +74 -2
- package/accordion/accordion.component.d.ts +126 -0
- package/accordion/accordion.module.d.ts +9 -0
- package/accordion/accordion.types.d.ts +10 -0
- package/accordion/index.d.ts +5 -0
- package/accordion/public-api.d.ts +3 -0
- package/alert/alert-dialog.base.d.ts +79 -0
- package/alert/alert-dialog.component.d.ts +8 -0
- package/alert/alert.module.d.ts +8 -0
- package/alert/alert.service.d.ts +76 -0
- package/alert/alert.types.d.ts +87 -0
- package/alert/index.d.ts +5 -0
- package/alert/public-api.d.ts +5 -0
- package/animate/animate.directive.d.ts +34 -0
- package/animate/animate.module.d.ts +11 -0
- package/animate/animate.service.d.ts +36 -0
- package/animate/animate.styles.d.ts +2 -0
- package/animate/animate.types.d.ts +20 -0
- package/animate/index.d.ts +5 -0
- package/animate/public-api.d.ts +4 -0
- package/api/index.d.ts +5 -0
- package/api/public-api.d.ts +15 -0
- package/api/shared.module.d.ts +8 -0
- package/asidemenu/asidemenu.component.d.ts +221 -0
- package/asidemenu/asidemenu.module.d.ts +9 -0
- package/asidemenu/index.d.ts +5 -0
- package/asidemenu/public-api.d.ts +2 -0
- package/autocomplete/autocomplete.base.d.ts +181 -0
- package/autocomplete/autocomplete.component.d.ts +10 -0
- package/autocomplete/autocomplete.module.d.ts +9 -0
- package/autocomplete/autocomplete.types.d.ts +10 -0
- package/autocomplete/index.d.ts +5 -0
- package/autocomplete/public-api.d.ts +4 -0
- package/avatar/avatar.component.d.ts +38 -0
- package/avatar/avatar.module.d.ts +8 -0
- package/avatar/avatar.types.d.ts +2 -0
- package/avatar/index.d.ts +5 -0
- package/avatar/public-api.d.ts +3 -0
- package/badge/badge.component.d.ts +20 -0
- package/badge/badge.directive.d.ts +32 -0
- package/badge/badge.module.d.ts +9 -0
- package/badge/badge.styles.d.ts +2 -0
- package/badge/badge.types.d.ts +3 -0
- package/badge/index.d.ts +5 -0
- package/badge/public-api.d.ts +4 -0
- package/blockui/blockui.component.d.ts +41 -0
- package/blockui/blockui.module.d.ts +8 -0
- package/blockui/index.d.ts +5 -0
- package/blockui/public-api.d.ts +2 -0
- package/bottombar/bottombar.component.d.ts +79 -0
- package/bottombar/bottombar.module.d.ts +9 -0
- package/bottombar/index.d.ts +5 -0
- package/bottombar/public-api.d.ts +2 -0
- package/breadcrumb/breadcrumb.component.d.ts +41 -0
- package/breadcrumb/breadcrumb.module.d.ts +8 -0
- package/breadcrumb/index.d.ts +5 -0
- package/breadcrumb/public-api.d.ts +2 -0
- package/button/button-class.d.ts +8 -0
- package/button/button.component.d.ts +69 -0
- package/button/button.directive.d.ts +53 -0
- package/button/button.module.d.ts +9 -0
- package/button/button.styles.d.ts +2 -0
- package/button/button.types.d.ts +8 -0
- package/button/index.d.ts +5 -0
- package/button/public-api.d.ts +7 -0
- package/card/card-slots.d.ts +11 -0
- package/card/card.component.d.ts +41 -0
- package/card/card.module.d.ts +10 -0
- package/card/card.types.d.ts +5 -0
- package/card/index.d.ts +5 -0
- package/card/public-api.d.ts +4 -0
- package/carousel/carousel.component.d.ts +169 -0
- package/carousel/carousel.module.d.ts +10 -0
- package/carousel/carousel.types.d.ts +21 -0
- package/carousel/index.d.ts +5 -0
- package/carousel/public-api.d.ts +3 -0
- package/chart/chart.component.d.ts +11 -0
- package/chart/chart.module.d.ts +8 -0
- package/chart/index.d.ts +5 -0
- package/chart/public-api.d.ts +3 -0
- package/chartjs/chartjs.base.d.ts +70 -0
- package/chartjs/chartjs.component.d.ts +10 -0
- package/chartjs/chartjs.module.d.ts +8 -0
- package/chartjs/chartjs.types.d.ts +8 -0
- package/chartjs/index.d.ts +5 -0
- package/chartjs/public-api.d.ts +4 -0
- package/checkbox/checkbox.component.d.ts +59 -0
- package/checkbox/checkbox.module.d.ts +8 -0
- package/checkbox/checkbox.styles.d.ts +2 -0
- package/checkbox/checkbox.types.d.ts +4 -0
- package/checkbox/index.d.ts +5 -0
- package/checkbox/public-api.d.ts +5 -0
- package/chip/chip.component.d.ts +36 -0
- package/chip/chip.module.d.ts +8 -0
- package/chip/index.d.ts +5 -0
- package/chip/public-api.d.ts +2 -0
- package/colorpicker/colorpicker.component.d.ts +87 -0
- package/colorpicker/colorpicker.module.d.ts +8 -0
- package/colorpicker/index.d.ts +5 -0
- package/colorpicker/public-api.d.ts +2 -0
- package/config/forms.d.ts +17 -0
- package/config/index.d.ts +5 -0
- package/config/initializer.d.ts +3 -0
- package/config/menu-item.d.ts +52 -0
- package/config/options.d.ts +48 -0
- package/config/popup.d.ts +48 -0
- package/config/provide.d.ts +23 -0
- package/config/public-api.d.ts +17 -0
- package/config/ripple.d.ts +2 -0
- package/config/scroll-lock.d.ts +5 -0
- package/config/severity.d.ts +5 -0
- package/config/style-loader.d.ts +12 -0
- package/config/template.d.ts +19 -0
- package/config/theme.service.d.ts +46 -0
- package/config/version-guard.d.ts +14 -0
- package/config/version.d.ts +6 -0
- package/config/wu-config.service.d.ts +24 -0
- package/confirmdialog/confirmation.service.d.ts +25 -0
- package/confirmdialog/confirmdialog.base.d.ts +110 -0
- package/confirmdialog/confirmdialog.component.d.ts +11 -0
- package/confirmdialog/confirmdialog.module.d.ts +9 -0
- package/confirmdialog/confirmdialog.types.d.ts +37 -0
- package/confirmdialog/index.d.ts +5 -0
- package/confirmdialog/public-api.d.ts +5 -0
- package/contextmenu/contextmenu.component.d.ts +47 -0
- package/contextmenu/contextmenu.module.d.ts +8 -0
- package/contextmenu/index.d.ts +5 -0
- package/contextmenu/public-api.d.ts +2 -0
- package/core/carousel.d.ts +27 -0
- package/core/catalog.d.ts +446 -0
- package/core/chart/format.d.ts +19 -0
- package/core/chart/index.d.ts +6 -0
- package/core/chart/kinds.d.ts +78 -0
- package/core/chart/model.d.ts +500 -0
- package/core/chart/more.d.ts +33 -0
- package/core/chart/paths.d.ts +41 -0
- package/core/chart/scale.d.ts +22 -0
- package/core/color.d.ts +31 -0
- package/core/colorpicker.d.ts +23 -0
- package/core/compat.d.ts +11 -0
- package/core/config.d.ts +64 -0
- package/core/date.d.ts +130 -0
- package/core/datepicker.d.ts +184 -0
- package/core/dock.d.ts +6 -0
- package/core/editor.d.ts +117 -0
- package/core/errorpage.d.ts +15 -0
- package/core/excel.d.ts +239 -0
- package/core/exporters.d.ts +18 -0
- package/core/families.d.ts +13 -0
- package/core/fileupload.d.ts +24 -0
- package/core/flow/changes.d.ts +63 -0
- package/core/flow/edges.d.ts +52 -0
- package/core/flow/export.d.ts +56 -0
- package/core/flow/geometry.d.ts +117 -0
- package/core/flow/graph.d.ts +104 -0
- package/core/flow/history.d.ts +54 -0
- package/core/flow/index.d.ts +13 -0
- package/core/flow/interaction.d.ts +140 -0
- package/core/flow/layout.d.ts +57 -0
- package/core/flow/paths.d.ts +76 -0
- package/core/flow/text.d.ts +18 -0
- package/core/flow/types.d.ts +217 -0
- package/core/flow/viewport.d.ts +48 -0
- package/core/i18n.d.ts +24 -0
- package/core/imagecompare.d.ts +12 -0
- package/core/imagecropper.d.ts +183 -0
- package/core/index.d.ts +39 -0
- package/core/inputotp.d.ts +20 -0
- package/core/knob.d.ts +28 -0
- package/core/mask.d.ts +43 -0
- package/core/menu.d.ts +29 -0
- package/core/number.d.ts +66 -0
- package/core/organizationchart.d.ts +39 -0
- package/core/overrides.d.ts +109 -0
- package/core/picklist.d.ts +81 -0
- package/core/select.d.ts +44 -0
- package/core/splitter.d.ts +17 -0
- package/core/table.d.ts +48 -0
- package/core/terminal.d.ts +12 -0
- package/core/thai/buddhist.d.ts +22 -0
- package/core/thai/locale.d.ts +358 -0
- package/core/thai/text.d.ts +32 -0
- package/core/thai/thai-id.d.ts +6 -0
- package/core/tokens.d.ts +69 -0
- package/core/tree.d.ts +50 -0
- package/core/validation.d.ts +18 -0
- package/datepicker/datepicker.component.d.ts +275 -0
- package/datepicker/datepicker.module.d.ts +8 -0
- package/datepicker/datepicker.types.d.ts +10 -0
- package/datepicker/index.d.ts +5 -0
- package/datepicker/public-api.d.ts +3 -0
- package/dialog/dialog.base.d.ts +147 -0
- package/dialog/dialog.component.d.ts +11 -0
- package/dialog/dialog.module.d.ts +10 -0
- package/dialog/dialog.service.d.ts +104 -0
- package/dialog/dialog.types.d.ts +3 -0
- package/dialog/index.d.ts +5 -0
- package/dialog/public-api.d.ts +5 -0
- package/divider/divider.component.d.ts +20 -0
- package/divider/divider.module.d.ts +8 -0
- package/divider/divider.types.d.ts +4 -0
- package/divider/index.d.ts +5 -0
- package/divider/public-api.d.ts +3 -0
- package/dock/dock.component.d.ts +88 -0
- package/dock/dock.module.d.ts +9 -0
- package/dock/index.d.ts +5 -0
- package/dock/public-api.d.ts +2 -0
- package/dragdrop/dragdrop.directive.d.ts +65 -0
- package/dragdrop/dragdrop.module.d.ts +8 -0
- package/dragdrop/dragdrop.styles.d.ts +2 -0
- package/dragdrop/index.d.ts +5 -0
- package/dragdrop/public-api.d.ts +2 -0
- package/drawer/drawer.component.d.ts +102 -0
- package/drawer/drawer.module.d.ts +8 -0
- package/drawer/index.d.ts +5 -0
- package/drawer/public-api.d.ts +5 -0
- package/editor/editor-content.directive.d.ts +10 -0
- package/editor/editor-icon.directive.d.ts +8 -0
- package/editor/editor.base.d.ts +367 -0
- package/editor/editor.component.d.ts +11 -0
- package/editor/editor.dom.d.ts +91 -0
- package/editor/editor.icons.d.ts +13 -0
- package/editor/editor.module.d.ts +10 -0
- package/editor/editor.styles.d.ts +2 -0
- package/editor/editor.types.d.ts +92 -0
- package/editor/index.d.ts +5 -0
- package/editor/public-api.d.ts +6 -0
- package/emptystate/emptystate.component.d.ts +44 -0
- package/emptystate/emptystate.module.d.ts +8 -0
- package/emptystate/index.d.ts +5 -0
- package/emptystate/public-api.d.ts +2 -0
- package/errorpage/errorpage.component.d.ts +73 -0
- package/errorpage/errorpage.module.d.ts +8 -0
- package/errorpage/index.d.ts +5 -0
- package/errorpage/public-api.d.ts +2 -0
- package/esm2020/accordion/accordion.component.mjs +376 -0
- package/esm2020/accordion/accordion.module.mjs +19 -0
- package/esm2020/accordion/accordion.types.mjs +17 -0
- package/esm2020/accordion/public-api.mjs +4 -0
- package/esm2020/accordion/wirabyte-ui-accordion.mjs +5 -0
- package/esm2020/alert/alert-dialog.base.mjs +355 -0
- package/esm2020/alert/alert-dialog.component.mjs +21 -0
- package/esm2020/alert/alert.module.mjs +17 -0
- package/esm2020/alert/alert.service.mjs +142 -0
- package/esm2020/alert/alert.types.mjs +2 -0
- package/esm2020/alert/public-api.mjs +6 -0
- package/esm2020/alert/wirabyte-ui-alert.mjs +5 -0
- package/esm2020/animate/animate.directive.mjs +71 -0
- package/esm2020/animate/animate.module.mjs +21 -0
- package/esm2020/animate/animate.service.mjs +183 -0
- package/esm2020/animate/animate.styles.mjs +3 -0
- package/esm2020/animate/animate.types.mjs +2 -0
- package/esm2020/animate/public-api.mjs +5 -0
- package/esm2020/animate/wirabyte-ui-animate.mjs +5 -0
- package/esm2020/api/public-api.mjs +11 -0
- package/esm2020/api/shared.module.mjs +17 -0
- package/esm2020/api/wirabyte-ui-api.mjs +5 -0
- package/esm2020/asidemenu/asidemenu.component.mjs +811 -0
- package/esm2020/asidemenu/asidemenu.module.mjs +18 -0
- package/esm2020/asidemenu/public-api.mjs +3 -0
- package/esm2020/asidemenu/wirabyte-ui-asidemenu.mjs +5 -0
- package/esm2020/autocomplete/autocomplete.base.mjs +567 -0
- package/esm2020/autocomplete/autocomplete.component.mjs +24 -0
- package/esm2020/autocomplete/autocomplete.module.mjs +18 -0
- package/esm2020/autocomplete/autocomplete.types.mjs +2 -0
- package/esm2020/autocomplete/public-api.mjs +5 -0
- package/esm2020/autocomplete/wirabyte-ui-autocomplete.mjs +5 -0
- package/esm2020/avatar/avatar.component.mjs +81 -0
- package/esm2020/avatar/avatar.module.mjs +17 -0
- package/esm2020/avatar/avatar.types.mjs +2 -0
- package/esm2020/avatar/public-api.mjs +4 -0
- package/esm2020/avatar/wirabyte-ui-avatar.mjs +5 -0
- package/esm2020/badge/badge.component.mjs +52 -0
- package/esm2020/badge/badge.directive.mjs +111 -0
- package/esm2020/badge/badge.module.mjs +18 -0
- package/esm2020/badge/badge.styles.mjs +3 -0
- package/esm2020/badge/badge.types.mjs +2 -0
- package/esm2020/badge/public-api.mjs +5 -0
- package/esm2020/badge/wirabyte-ui-badge.mjs +5 -0
- package/esm2020/blockui/blockui.component.mjs +152 -0
- package/esm2020/blockui/blockui.module.mjs +17 -0
- package/esm2020/blockui/public-api.mjs +3 -0
- package/esm2020/blockui/wirabyte-ui-blockui.mjs +5 -0
- package/esm2020/bottombar/bottombar.component.mjs +209 -0
- package/esm2020/bottombar/bottombar.module.mjs +18 -0
- package/esm2020/bottombar/public-api.mjs +3 -0
- package/esm2020/bottombar/wirabyte-ui-bottombar.mjs +5 -0
- package/esm2020/breadcrumb/breadcrumb.component.mjs +86 -0
- package/esm2020/breadcrumb/breadcrumb.module.mjs +17 -0
- package/esm2020/breadcrumb/public-api.mjs +3 -0
- package/esm2020/breadcrumb/wirabyte-ui-breadcrumb.mjs +5 -0
- package/esm2020/button/button-class.mjs +26 -0
- package/esm2020/button/button.component.mjs +175 -0
- package/esm2020/button/button.directive.mjs +193 -0
- package/esm2020/button/button.module.mjs +18 -0
- package/esm2020/button/button.styles.mjs +3 -0
- package/esm2020/button/button.types.mjs +2 -0
- package/esm2020/button/public-api.mjs +8 -0
- package/esm2020/button/wirabyte-ui-button.mjs +5 -0
- package/esm2020/card/card-slots.mjs +27 -0
- package/esm2020/card/card.component.mjs +88 -0
- package/esm2020/card/card.module.mjs +19 -0
- package/esm2020/card/card.types.mjs +2 -0
- package/esm2020/card/public-api.mjs +5 -0
- package/esm2020/card/wirabyte-ui-card.mjs +5 -0
- package/esm2020/carousel/carousel.component.mjs +617 -0
- package/esm2020/carousel/carousel.module.mjs +19 -0
- package/esm2020/carousel/carousel.types.mjs +2 -0
- package/esm2020/carousel/public-api.mjs +4 -0
- package/esm2020/carousel/wirabyte-ui-carousel.mjs +5 -0
- package/esm2020/chart/chart.component.mjs +42 -0
- package/esm2020/chart/chart.module.mjs +17 -0
- package/esm2020/chart/public-api.mjs +3 -0
- package/esm2020/chart/wirabyte-ui-chart.mjs +5 -0
- package/esm2020/chartjs/chartjs.base.mjs +204 -0
- package/esm2020/chartjs/chartjs.component.mjs +41 -0
- package/esm2020/chartjs/chartjs.module.mjs +17 -0
- package/esm2020/chartjs/chartjs.types.mjs +2 -0
- package/esm2020/chartjs/public-api.mjs +5 -0
- package/esm2020/chartjs/wirabyte-ui-chartjs.mjs +5 -0
- package/esm2020/checkbox/checkbox.component.mjs +140 -0
- package/esm2020/checkbox/checkbox.module.mjs +17 -0
- package/esm2020/checkbox/checkbox.styles.mjs +3 -0
- package/esm2020/checkbox/checkbox.types.mjs +2 -0
- package/esm2020/checkbox/public-api.mjs +6 -0
- package/esm2020/checkbox/wirabyte-ui-checkbox.mjs +5 -0
- package/esm2020/chip/chip.component.mjs +76 -0
- package/esm2020/chip/chip.module.mjs +17 -0
- package/esm2020/chip/public-api.mjs +3 -0
- package/esm2020/chip/wirabyte-ui-chip.mjs +5 -0
- package/esm2020/colorpicker/colorpicker.component.mjs +308 -0
- package/esm2020/colorpicker/colorpicker.module.mjs +17 -0
- package/esm2020/colorpicker/public-api.mjs +3 -0
- package/esm2020/colorpicker/wirabyte-ui-colorpicker.mjs +5 -0
- package/esm2020/config/forms.mjs +38 -0
- package/esm2020/config/initializer.mjs +6 -0
- package/esm2020/config/menu-item.mjs +2 -0
- package/esm2020/config/options.mjs +3 -0
- package/esm2020/config/popup.mjs +153 -0
- package/esm2020/config/provide.mjs +45 -0
- package/esm2020/config/public-api.mjs +17 -0
- package/esm2020/config/ripple.mjs +13 -0
- package/esm2020/config/scroll-lock.mjs +31 -0
- package/esm2020/config/severity.mjs +9 -0
- package/esm2020/config/style-loader.mjs +32 -0
- package/esm2020/config/template.mjs +46 -0
- package/esm2020/config/theme.service.mjs +161 -0
- package/esm2020/config/version-guard.mjs +43 -0
- package/esm2020/config/version.mjs +3 -0
- package/esm2020/config/wirabyte-ui-config.mjs +5 -0
- package/esm2020/config/wu-config.service.mjs +50 -0
- package/esm2020/confirmdialog/confirmation.service.mjs +78 -0
- package/esm2020/confirmdialog/confirmdialog.base.mjs +274 -0
- package/esm2020/confirmdialog/confirmdialog.component.mjs +22 -0
- package/esm2020/confirmdialog/confirmdialog.module.mjs +18 -0
- package/esm2020/confirmdialog/confirmdialog.types.mjs +8 -0
- package/esm2020/confirmdialog/public-api.mjs +6 -0
- package/esm2020/confirmdialog/wirabyte-ui-confirmdialog.mjs +5 -0
- package/esm2020/contextmenu/contextmenu.component.mjs +159 -0
- package/esm2020/contextmenu/contextmenu.module.mjs +17 -0
- package/esm2020/contextmenu/public-api.mjs +3 -0
- package/esm2020/contextmenu/wirabyte-ui-contextmenu.mjs +5 -0
- package/esm2020/core/carousel.mjs +62 -0
- package/esm2020/core/catalog.mjs +203 -0
- package/esm2020/core/chart/format.mjs +66 -0
- package/esm2020/core/chart/index.mjs +7 -0
- package/esm2020/core/chart/kinds.mjs +1336 -0
- package/esm2020/core/chart/model.mjs +713 -0
- package/esm2020/core/chart/more.mjs +311 -0
- package/esm2020/core/chart/paths.mjs +160 -0
- package/esm2020/core/chart/scale.mjs +58 -0
- package/esm2020/core/color.mjs +94 -0
- package/esm2020/core/colorpicker.mjs +73 -0
- package/esm2020/core/compat.mjs +149 -0
- package/esm2020/core/config.mjs +163 -0
- package/esm2020/core/date.mjs +317 -0
- package/esm2020/core/datepicker.mjs +526 -0
- package/esm2020/core/dock.mjs +14 -0
- package/esm2020/core/editor.mjs +271 -0
- package/esm2020/core/errorpage.mjs +47 -0
- package/esm2020/core/excel.mjs +809 -0
- package/esm2020/core/exporters.mjs +241 -0
- package/esm2020/core/families.mjs +1756 -0
- package/esm2020/core/fileupload.mjs +48 -0
- package/esm2020/core/flow/changes.mjs +205 -0
- package/esm2020/core/flow/edges.mjs +87 -0
- package/esm2020/core/flow/export.mjs +231 -0
- package/esm2020/core/flow/geometry.mjs +309 -0
- package/esm2020/core/flow/graph.mjs +314 -0
- package/esm2020/core/flow/history.mjs +105 -0
- package/esm2020/core/flow/index.mjs +14 -0
- package/esm2020/core/flow/interaction.mjs +246 -0
- package/esm2020/core/flow/layout.mjs +586 -0
- package/esm2020/core/flow/paths.mjs +252 -0
- package/esm2020/core/flow/text.mjs +68 -0
- package/esm2020/core/flow/types.mjs +7 -0
- package/esm2020/core/flow/viewport.mjs +133 -0
- package/esm2020/core/i18n.mjs +78 -0
- package/esm2020/core/imagecompare.mjs +28 -0
- package/esm2020/core/imagecropper.mjs +483 -0
- package/esm2020/core/index.mjs +40 -0
- package/esm2020/core/inputotp.mjs +50 -0
- package/esm2020/core/knob.mjs +106 -0
- package/esm2020/core/mask.mjs +112 -0
- package/esm2020/core/menu.mjs +77 -0
- package/esm2020/core/number.mjs +131 -0
- package/esm2020/core/organizationchart.mjs +84 -0
- package/esm2020/core/overrides.mjs +169 -0
- package/esm2020/core/picklist.mjs +248 -0
- package/esm2020/core/select.mjs +161 -0
- package/esm2020/core/splitter.mjs +63 -0
- package/esm2020/core/table.mjs +174 -0
- package/esm2020/core/terminal.mjs +29 -0
- package/esm2020/core/thai/buddhist.mjs +129 -0
- package/esm2020/core/thai/locale.mjs +652 -0
- package/esm2020/core/thai/text.mjs +164 -0
- package/esm2020/core/thai/thai-id.mjs +22 -0
- package/esm2020/core/tokens.mjs +314 -0
- package/esm2020/core/tree.mjs +137 -0
- package/esm2020/core/validation.mjs +43 -0
- package/esm2020/core/wirabyte-ui-core.mjs +5 -0
- package/esm2020/datepicker/datepicker.component.mjs +921 -0
- package/esm2020/datepicker/datepicker.module.mjs +17 -0
- package/esm2020/datepicker/datepicker.types.mjs +2 -0
- package/esm2020/datepicker/public-api.mjs +4 -0
- package/esm2020/datepicker/wirabyte-ui-datepicker.mjs +5 -0
- package/esm2020/dialog/dialog.base.mjs +433 -0
- package/esm2020/dialog/dialog.component.mjs +18 -0
- package/esm2020/dialog/dialog.module.mjs +19 -0
- package/esm2020/dialog/dialog.service.mjs +237 -0
- package/esm2020/dialog/dialog.types.mjs +2 -0
- package/esm2020/dialog/public-api.mjs +6 -0
- package/esm2020/dialog/wirabyte-ui-dialog.mjs +5 -0
- package/esm2020/divider/divider.component.mjs +56 -0
- package/esm2020/divider/divider.module.mjs +17 -0
- package/esm2020/divider/divider.types.mjs +2 -0
- package/esm2020/divider/public-api.mjs +4 -0
- package/esm2020/divider/wirabyte-ui-divider.mjs +5 -0
- package/esm2020/dock/dock.component.mjs +287 -0
- package/esm2020/dock/dock.module.mjs +18 -0
- package/esm2020/dock/public-api.mjs +3 -0
- package/esm2020/dock/wirabyte-ui-dock.mjs +5 -0
- package/esm2020/dragdrop/dragdrop.directive.mjs +206 -0
- package/esm2020/dragdrop/dragdrop.module.mjs +17 -0
- package/esm2020/dragdrop/dragdrop.styles.mjs +3 -0
- package/esm2020/dragdrop/public-api.mjs +3 -0
- package/esm2020/dragdrop/wirabyte-ui-dragdrop.mjs +5 -0
- package/esm2020/drawer/drawer.component.mjs +300 -0
- package/esm2020/drawer/drawer.module.mjs +17 -0
- package/esm2020/drawer/public-api.mjs +6 -0
- package/esm2020/drawer/wirabyte-ui-drawer.mjs +5 -0
- package/esm2020/editor/editor-content.directive.mjs +24 -0
- package/esm2020/editor/editor-icon.directive.mjs +24 -0
- package/esm2020/editor/editor.base.mjs +2082 -0
- package/esm2020/editor/editor.component.mjs +20 -0
- package/esm2020/editor/editor.dom.mjs +787 -0
- package/esm2020/editor/editor.icons.mjs +106 -0
- package/esm2020/editor/editor.module.mjs +19 -0
- package/esm2020/editor/editor.styles.mjs +3 -0
- package/esm2020/editor/editor.types.mjs +6 -0
- package/esm2020/editor/public-api.mjs +7 -0
- package/esm2020/editor/wirabyte-ui-editor.mjs +5 -0
- package/esm2020/emptystate/emptystate.component.mjs +78 -0
- package/esm2020/emptystate/emptystate.module.mjs +17 -0
- package/esm2020/emptystate/public-api.mjs +3 -0
- package/esm2020/emptystate/wirabyte-ui-emptystate.mjs +5 -0
- package/esm2020/errorpage/errorpage.component.mjs +163 -0
- package/esm2020/errorpage/errorpage.module.mjs +17 -0
- package/esm2020/errorpage/public-api.mjs +3 -0
- package/esm2020/errorpage/wirabyte-ui-errorpage.mjs +5 -0
- package/esm2020/excel/excel.mjs +35 -0
- package/esm2020/excel/public-api.mjs +3 -0
- package/esm2020/excel/wirabyte-ui-excel.mjs +5 -0
- package/esm2020/fieldset/fieldset.component.mjs +74 -0
- package/esm2020/fieldset/fieldset.module.mjs +18 -0
- package/esm2020/fieldset/public-api.mjs +3 -0
- package/esm2020/fieldset/wirabyte-ui-fieldset.mjs +5 -0
- package/esm2020/fileupload/fileupload.base.mjs +563 -0
- package/esm2020/fileupload/fileupload.component.mjs +19 -0
- package/esm2020/fileupload/fileupload.module.mjs +18 -0
- package/esm2020/fileupload/fileupload.types.mjs +2 -0
- package/esm2020/fileupload/public-api.mjs +5 -0
- package/esm2020/fileupload/wirabyte-ui-fileupload.mjs +5 -0
- package/esm2020/floatlabel/floatlabel.component.mjs +53 -0
- package/esm2020/floatlabel/floatlabel.module.mjs +17 -0
- package/esm2020/floatlabel/floatlabel.types.mjs +2 -0
- package/esm2020/floatlabel/public-api.mjs +4 -0
- package/esm2020/floatlabel/wirabyte-ui-floatlabel.mjs +5 -0
- package/esm2020/flow/flow-background.component.mjs +183 -0
- package/esm2020/flow/flow-controls.component.mjs +267 -0
- package/esm2020/flow/flow-handle.component.mjs +130 -0
- package/esm2020/flow/flow-history.directive.mjs +129 -0
- package/esm2020/flow/flow-host.mjs +7 -0
- package/esm2020/flow/flow-minimap.component.mjs +322 -0
- package/esm2020/flow/flow-node-outlet.mjs +148 -0
- package/esm2020/flow/flow-node-resizer.component.mjs +208 -0
- package/esm2020/flow/flow-node-toolbar.component.mjs +119 -0
- package/esm2020/flow/flow-panel.component.mjs +37 -0
- package/esm2020/flow/flow-templates.mjs +100 -0
- package/esm2020/flow/flow.component.mjs +3245 -0
- package/esm2020/flow/flow.module.mjs +76 -0
- package/esm2020/flow/flow.types.mjs +7 -0
- package/esm2020/flow/public-api.mjs +17 -0
- package/esm2020/flow/wirabyte-ui-flow.mjs +5 -0
- package/esm2020/galleria/galleria.component.mjs +480 -0
- package/esm2020/galleria/galleria.module.mjs +17 -0
- package/esm2020/galleria/public-api.mjs +3 -0
- package/esm2020/galleria/wirabyte-ui-galleria.mjs +5 -0
- package/esm2020/i18n/i18n.module.mjs +37 -0
- package/esm2020/i18n/i18n.service.mjs +148 -0
- package/esm2020/i18n/i18n.types.mjs +3 -0
- package/esm2020/i18n/language-switch.component.mjs +91 -0
- package/esm2020/i18n/public-api.mjs +7 -0
- package/esm2020/i18n/translate.pipe.mjs +52 -0
- package/esm2020/i18n/wirabyte-ui-i18n.mjs +5 -0
- package/esm2020/iconfield/iconfield.component.mjs +73 -0
- package/esm2020/iconfield/iconfield.module.mjs +17 -0
- package/esm2020/iconfield/public-api.mjs +3 -0
- package/esm2020/iconfield/wirabyte-ui-iconfield.mjs +5 -0
- package/esm2020/image/image.base.mjs +183 -0
- package/esm2020/image/image.component.mjs +14 -0
- package/esm2020/image/image.module.mjs +18 -0
- package/esm2020/image/public-api.mjs +4 -0
- package/esm2020/image/wirabyte-ui-image.mjs +5 -0
- package/esm2020/imagecompare/imagecompare.component.mjs +200 -0
- package/esm2020/imagecompare/imagecompare.module.mjs +18 -0
- package/esm2020/imagecompare/public-api.mjs +3 -0
- package/esm2020/imagecompare/wirabyte-ui-imagecompare.mjs +5 -0
- package/esm2020/imagecropper/imagecropper.component.mjs +1253 -0
- package/esm2020/imagecropper/imagecropper.module.mjs +17 -0
- package/esm2020/imagecropper/imagecropper.types.mjs +6 -0
- package/esm2020/imagecropper/public-api.mjs +5 -0
- package/esm2020/imagecropper/wirabyte-ui-imagecropper.mjs +5 -0
- package/esm2020/inplace/inplace.component.mjs +145 -0
- package/esm2020/inplace/inplace.module.mjs +17 -0
- package/esm2020/inplace/public-api.mjs +3 -0
- package/esm2020/inplace/wirabyte-ui-inplace.mjs +5 -0
- package/esm2020/inputgroup/inputgroup.component.mjs +61 -0
- package/esm2020/inputgroup/inputgroup.module.mjs +17 -0
- package/esm2020/inputgroup/public-api.mjs +3 -0
- package/esm2020/inputgroup/wirabyte-ui-inputgroup.mjs +5 -0
- package/esm2020/inputmask/inputmask.base.mjs +319 -0
- package/esm2020/inputmask/inputmask.component.mjs +23 -0
- package/esm2020/inputmask/inputmask.module.mjs +17 -0
- package/esm2020/inputmask/public-api.mjs +4 -0
- package/esm2020/inputmask/wirabyte-ui-inputmask.mjs +5 -0
- package/esm2020/inputnumber/inputnumber.component.mjs +364 -0
- package/esm2020/inputnumber/inputnumber.module.mjs +17 -0
- package/esm2020/inputnumber/inputnumber.types.mjs +2 -0
- package/esm2020/inputnumber/public-api.mjs +4 -0
- package/esm2020/inputnumber/wirabyte-ui-inputnumber.mjs +5 -0
- package/esm2020/inputotp/inputotp.component.mjs +344 -0
- package/esm2020/inputotp/inputotp.module.mjs +18 -0
- package/esm2020/inputotp/inputotp.types.mjs +2 -0
- package/esm2020/inputotp/public-api.mjs +4 -0
- package/esm2020/inputotp/wirabyte-ui-inputotp.mjs +5 -0
- package/esm2020/inputtext/inputtext.directive.mjs +62 -0
- package/esm2020/inputtext/inputtext.module.mjs +17 -0
- package/esm2020/inputtext/inputtext.styles.mjs +3 -0
- package/esm2020/inputtext/inputtext.types.mjs +2 -0
- package/esm2020/inputtext/public-api.mjs +6 -0
- package/esm2020/inputtext/wirabyte-ui-inputtext.mjs +5 -0
- package/esm2020/keyfilter/keyfilter.directive.mjs +131 -0
- package/esm2020/keyfilter/keyfilter.module.mjs +17 -0
- package/esm2020/keyfilter/public-api.mjs +3 -0
- package/esm2020/keyfilter/wirabyte-ui-keyfilter.mjs +5 -0
- package/esm2020/knob/knob.component.mjs +207 -0
- package/esm2020/knob/knob.module.mjs +17 -0
- package/esm2020/knob/public-api.mjs +3 -0
- package/esm2020/knob/wirabyte-ui-knob.mjs +5 -0
- package/esm2020/listbox/listbox.component.mjs +520 -0
- package/esm2020/listbox/listbox.module.mjs +17 -0
- package/esm2020/listbox/public-api.mjs +3 -0
- package/esm2020/listbox/wirabyte-ui-listbox.mjs +5 -0
- package/esm2020/menu/menu.base.mjs +320 -0
- package/esm2020/menu/menu.component.mjs +19 -0
- package/esm2020/menu/menu.module.mjs +18 -0
- package/esm2020/menu/public-api.mjs +4 -0
- package/esm2020/menu/wirabyte-ui-menu.mjs +5 -0
- package/esm2020/menubar/menubar.base.mjs +568 -0
- package/esm2020/menubar/menubar.component.mjs +19 -0
- package/esm2020/menubar/menubar.module.mjs +18 -0
- package/esm2020/menubar/public-api.mjs +4 -0
- package/esm2020/menubar/wirabyte-ui-menubar.mjs +5 -0
- package/esm2020/message/message.component.mjs +107 -0
- package/esm2020/message/message.module.mjs +20 -0
- package/esm2020/message/message.types.mjs +2 -0
- package/esm2020/message/messages.base.mjs +109 -0
- package/esm2020/message/messages.component.mjs +62 -0
- package/esm2020/message/public-api.mjs +6 -0
- package/esm2020/message/wirabyte-ui-message.mjs +5 -0
- package/esm2020/metergroup/metergroup.component.mjs +146 -0
- package/esm2020/metergroup/metergroup.module.mjs +17 -0
- package/esm2020/metergroup/metergroup.types.mjs +26 -0
- package/esm2020/metergroup/public-api.mjs +4 -0
- package/esm2020/metergroup/wirabyte-ui-metergroup.mjs +5 -0
- package/esm2020/multiselect/multiselect.base.mjs +732 -0
- package/esm2020/multiselect/multiselect.component.mjs +26 -0
- package/esm2020/multiselect/multiselect.module.mjs +18 -0
- package/esm2020/multiselect/multiselect.styles.mjs +3 -0
- package/esm2020/multiselect/multiselect.types.mjs +2 -0
- package/esm2020/multiselect/public-api.mjs +6 -0
- package/esm2020/multiselect/wirabyte-ui-multiselect.mjs +5 -0
- package/esm2020/navbar/navbar.component.mjs +460 -0
- package/esm2020/navbar/navbar.module.mjs +18 -0
- package/esm2020/navbar/public-api.mjs +3 -0
- package/esm2020/navbar/wirabyte-ui-navbar.mjs +5 -0
- package/esm2020/orderlist/orderlist.base.mjs +411 -0
- package/esm2020/orderlist/orderlist.component.mjs +17 -0
- package/esm2020/orderlist/orderlist.module.mjs +18 -0
- package/esm2020/orderlist/orderlist.types.mjs +2 -0
- package/esm2020/orderlist/public-api.mjs +5 -0
- package/esm2020/orderlist/wirabyte-ui-orderlist.mjs +5 -0
- package/esm2020/organizationchart/organizationchart.component.mjs +200 -0
- package/esm2020/organizationchart/organizationchart.module.mjs +18 -0
- package/esm2020/organizationchart/organizationchart.types.mjs +2 -0
- package/esm2020/organizationchart/public-api.mjs +4 -0
- package/esm2020/organizationchart/wirabyte-ui-organizationchart.mjs +5 -0
- package/esm2020/paginator/paginator.base.mjs +188 -0
- package/esm2020/paginator/paginator.component.mjs +20 -0
- package/esm2020/paginator/paginator.module.mjs +17 -0
- package/esm2020/paginator/paginator.types.mjs +2 -0
- package/esm2020/paginator/public-api.mjs +5 -0
- package/esm2020/paginator/wirabyte-ui-paginator.mjs +5 -0
- package/esm2020/panel/panel.component.mjs +108 -0
- package/esm2020/panel/panel.module.mjs +19 -0
- package/esm2020/panel/panel.types.mjs +2 -0
- package/esm2020/panel/public-api.mjs +4 -0
- package/esm2020/panel/wirabyte-ui-panel.mjs +5 -0
- package/esm2020/panelmenu/panelmenu.base.mjs +181 -0
- package/esm2020/panelmenu/panelmenu.component.mjs +15 -0
- package/esm2020/panelmenu/panelmenu.module.mjs +18 -0
- package/esm2020/panelmenu/public-api.mjs +4 -0
- package/esm2020/panelmenu/wirabyte-ui-panelmenu.mjs +5 -0
- package/esm2020/password/password.component.mjs +233 -0
- package/esm2020/password/password.module.mjs +17 -0
- package/esm2020/password/password.types.mjs +14 -0
- package/esm2020/password/public-api.mjs +4 -0
- package/esm2020/password/wirabyte-ui-password.mjs +5 -0
- package/esm2020/picklist/list-drag.mjs +259 -0
- package/esm2020/picklist/picklist.base.mjs +649 -0
- package/esm2020/picklist/picklist.component.mjs +17 -0
- package/esm2020/picklist/picklist.module.mjs +18 -0
- package/esm2020/picklist/picklist.styles.mjs +3 -0
- package/esm2020/picklist/picklist.types.mjs +2 -0
- package/esm2020/picklist/public-api.mjs +8 -0
- package/esm2020/picklist/wirabyte-ui-picklist.mjs +5 -0
- package/esm2020/popover/popover.base.mjs +171 -0
- package/esm2020/popover/popover.component.mjs +17 -0
- package/esm2020/popover/popover.module.mjs +18 -0
- package/esm2020/popover/public-api.mjs +4 -0
- package/esm2020/popover/wirabyte-ui-popover.mjs +5 -0
- package/esm2020/presets/public-api.mjs +5 -0
- package/esm2020/presets/wirabyte-ui-presets.mjs +5 -0
- package/esm2020/progressbar/progressbar.component.mjs +117 -0
- package/esm2020/progressbar/progressbar.module.mjs +17 -0
- package/esm2020/progressbar/progressbar.types.mjs +19 -0
- package/esm2020/progressbar/public-api.mjs +4 -0
- package/esm2020/progressbar/wirabyte-ui-progressbar.mjs +5 -0
- package/esm2020/progressspinner/progressspinner.component.mjs +109 -0
- package/esm2020/progressspinner/progressspinner.module.mjs +17 -0
- package/esm2020/progressspinner/progressspinner.types.mjs +27 -0
- package/esm2020/progressspinner/public-api.mjs +4 -0
- package/esm2020/progressspinner/wirabyte-ui-progressspinner.mjs +5 -0
- package/esm2020/public-api.mjs +3 -0
- package/esm2020/radiobutton/public-api.mjs +7 -0
- package/esm2020/radiobutton/radio-registry.mjs +40 -0
- package/esm2020/radiobutton/radiobutton.component.mjs +125 -0
- package/esm2020/radiobutton/radiobutton.module.mjs +17 -0
- package/esm2020/radiobutton/radiobutton.styles.mjs +3 -0
- package/esm2020/radiobutton/radiobutton.types.mjs +2 -0
- package/esm2020/radiobutton/wirabyte-ui-radiobutton.mjs +5 -0
- package/esm2020/rating/public-api.mjs +4 -0
- package/esm2020/rating/rating.component.mjs +107 -0
- package/esm2020/rating/rating.module.mjs +17 -0
- package/esm2020/rating/rating.types.mjs +2 -0
- package/esm2020/rating/wirabyte-ui-rating.mjs +5 -0
- package/esm2020/result/public-api.mjs +3 -0
- package/esm2020/result/result.component.mjs +72 -0
- package/esm2020/result/result.module.mjs +17 -0
- package/esm2020/result/wirabyte-ui-result.mjs +5 -0
- package/esm2020/ripple/public-api.mjs +3 -0
- package/esm2020/ripple/ripple.directive.mjs +43 -0
- package/esm2020/ripple/ripple.module.mjs +17 -0
- package/esm2020/ripple/ripple.styles.mjs +3 -0
- package/esm2020/ripple/wirabyte-ui-ripple.mjs +5 -0
- package/esm2020/scroller/public-api.mjs +6 -0
- package/esm2020/scroller/scroller.component.mjs +305 -0
- package/esm2020/scroller/scroller.module.mjs +17 -0
- package/esm2020/scroller/wirabyte-ui-scroller.mjs +5 -0
- package/esm2020/scrollpanel/public-api.mjs +3 -0
- package/esm2020/scrollpanel/scrollpanel.component.mjs +67 -0
- package/esm2020/scrollpanel/scrollpanel.module.mjs +17 -0
- package/esm2020/scrollpanel/wirabyte-ui-scrollpanel.mjs +5 -0
- package/esm2020/select/public-api.mjs +7 -0
- package/esm2020/select/select.base.mjs +667 -0
- package/esm2020/select/select.component.mjs +26 -0
- package/esm2020/select/select.module.mjs +17 -0
- package/esm2020/select/select.styles.mjs +3 -0
- package/esm2020/select/select.types.mjs +2 -0
- package/esm2020/select/wirabyte-ui-select.mjs +5 -0
- package/esm2020/selectbutton/public-api.mjs +4 -0
- package/esm2020/selectbutton/selectbutton.component.mjs +174 -0
- package/esm2020/selectbutton/selectbutton.module.mjs +18 -0
- package/esm2020/selectbutton/selectbutton.types.mjs +2 -0
- package/esm2020/selectbutton/wirabyte-ui-selectbutton.mjs +5 -0
- package/esm2020/sitefooter/public-api.mjs +3 -0
- package/esm2020/sitefooter/sitefooter.component.mjs +139 -0
- package/esm2020/sitefooter/sitefooter.module.mjs +18 -0
- package/esm2020/sitefooter/wirabyte-ui-sitefooter.mjs +5 -0
- package/esm2020/skeleton/public-api.mjs +4 -0
- package/esm2020/skeleton/skeleton.component.mjs +51 -0
- package/esm2020/skeleton/skeleton.module.mjs +17 -0
- package/esm2020/skeleton/skeleton.types.mjs +2 -0
- package/esm2020/skeleton/wirabyte-ui-skeleton.mjs +5 -0
- package/esm2020/slider/public-api.mjs +3 -0
- package/esm2020/slider/slider.component.mjs +247 -0
- package/esm2020/slider/slider.module.mjs +17 -0
- package/esm2020/slider/wirabyte-ui-slider.mjs +5 -0
- package/esm2020/splitbutton/public-api.mjs +3 -0
- package/esm2020/splitbutton/splitbutton.component.mjs +180 -0
- package/esm2020/splitbutton/splitbutton.module.mjs +17 -0
- package/esm2020/splitbutton/wirabyte-ui-splitbutton.mjs +5 -0
- package/esm2020/splitter/public-api.mjs +5 -0
- package/esm2020/splitter/splitter-panel.component.mjs +32 -0
- package/esm2020/splitter/splitter.component.mjs +372 -0
- package/esm2020/splitter/splitter.module.mjs +19 -0
- package/esm2020/splitter/splitter.types.mjs +2 -0
- package/esm2020/splitter/wirabyte-ui-splitter.mjs +5 -0
- package/esm2020/stepper/public-api.mjs +4 -0
- package/esm2020/stepper/stepper.base.mjs +392 -0
- package/esm2020/stepper/stepper.component.mjs +191 -0
- package/esm2020/stepper/stepper.module.mjs +19 -0
- package/esm2020/stepper/wirabyte-ui-stepper.mjs +5 -0
- package/esm2020/steps/public-api.mjs +4 -0
- package/esm2020/steps/steps.base.mjs +148 -0
- package/esm2020/steps/steps.component.mjs +15 -0
- package/esm2020/steps/steps.module.mjs +17 -0
- package/esm2020/steps/wirabyte-ui-steps.mjs +5 -0
- package/esm2020/table/public-api.mjs +10 -0
- package/esm2020/table/table-celleditor.component.mjs +34 -0
- package/esm2020/table/table-filter.component.mjs +123 -0
- package/esm2020/table/table.base.mjs +1443 -0
- package/esm2020/table/table.celleditor.mjs +42 -0
- package/esm2020/table/table.component.mjs +21 -0
- package/esm2020/table/table.directives.mjs +1117 -0
- package/esm2020/table/table.filter.mjs +346 -0
- package/esm2020/table/table.module.mjs +99 -0
- package/esm2020/table/table.types.mjs +3 -0
- package/esm2020/table/wirabyte-ui-table.mjs +5 -0
- package/esm2020/tabmenu/public-api.mjs +3 -0
- package/esm2020/tabmenu/wirabyte-ui-tabmenu.mjs +5 -0
- package/esm2020/tabs/public-api.mjs +9 -0
- package/esm2020/tabs/tabmenu.base.mjs +196 -0
- package/esm2020/tabs/tabmenu.component.mjs +18 -0
- package/esm2020/tabs/tabmenu.module.mjs +18 -0
- package/esm2020/tabs/tabs.component.mjs +477 -0
- package/esm2020/tabs/tabs.module.mjs +20 -0
- package/esm2020/tabs/tabs.styles.mjs +3 -0
- package/esm2020/tabs/tabs.types.mjs +50 -0
- package/esm2020/tabs/wirabyte-ui-tabs.mjs +5 -0
- package/esm2020/tag/public-api.mjs +4 -0
- package/esm2020/tag/tag.component.mjs +52 -0
- package/esm2020/tag/tag.module.mjs +17 -0
- package/esm2020/tag/tag.types.mjs +2 -0
- package/esm2020/tag/wirabyte-ui-tag.mjs +5 -0
- package/esm2020/terminal/public-api.mjs +6 -0
- package/esm2020/terminal/terminal.component.mjs +150 -0
- package/esm2020/terminal/terminal.module.mjs +17 -0
- package/esm2020/terminal/terminal.service.mjs +35 -0
- package/esm2020/terminal/wirabyte-ui-terminal.mjs +5 -0
- package/esm2020/textarea/public-api.mjs +3 -0
- package/esm2020/textarea/textarea.directive.mjs +87 -0
- package/esm2020/textarea/textarea.module.mjs +17 -0
- package/esm2020/textarea/wirabyte-ui-textarea.mjs +5 -0
- package/esm2020/thai/public-api.mjs +4 -0
- package/esm2020/thai/thai.module.mjs +18 -0
- package/esm2020/thai/thai.pipes.mjs +115 -0
- package/esm2020/thai/wirabyte-ui-thai.mjs +5 -0
- package/esm2020/tieredmenu/public-api.mjs +3 -0
- package/esm2020/tieredmenu/tieredmenu.component.mjs +385 -0
- package/esm2020/tieredmenu/tieredmenu.module.mjs +17 -0
- package/esm2020/tieredmenu/wirabyte-ui-tieredmenu.mjs +5 -0
- package/esm2020/timeline/public-api.mjs +4 -0
- package/esm2020/timeline/timeline.base.mjs +66 -0
- package/esm2020/timeline/timeline.component.mjs +46 -0
- package/esm2020/timeline/timeline.module.mjs +18 -0
- package/esm2020/timeline/wirabyte-ui-timeline.mjs +5 -0
- package/esm2020/toast/message.service.mjs +34 -0
- package/esm2020/toast/public-api.mjs +6 -0
- package/esm2020/toast/toast.base.mjs +227 -0
- package/esm2020/toast/toast.component.mjs +17 -0
- package/esm2020/toast/toast.module.mjs +18 -0
- package/esm2020/toast/toast.types.mjs +2 -0
- package/esm2020/toast/wirabyte-ui-toast.mjs +5 -0
- package/esm2020/togglebutton/public-api.mjs +4 -0
- package/esm2020/togglebutton/togglebutton.component.mjs +129 -0
- package/esm2020/togglebutton/togglebutton.module.mjs +17 -0
- package/esm2020/togglebutton/togglebutton.types.mjs +2 -0
- package/esm2020/togglebutton/wirabyte-ui-togglebutton.mjs +5 -0
- package/esm2020/toggleswitch/public-api.mjs +4 -0
- package/esm2020/toggleswitch/toggleswitch.component.mjs +123 -0
- package/esm2020/toggleswitch/toggleswitch.module.mjs +17 -0
- package/esm2020/toggleswitch/toggleswitch.types.mjs +2 -0
- package/esm2020/toggleswitch/wirabyte-ui-toggleswitch.mjs +5 -0
- package/esm2020/toolbar/public-api.mjs +3 -0
- package/esm2020/toolbar/toolbar.component.mjs +67 -0
- package/esm2020/toolbar/toolbar.module.mjs +18 -0
- package/esm2020/toolbar/wirabyte-ui-toolbar.mjs +5 -0
- package/esm2020/tooltip/public-api.mjs +4 -0
- package/esm2020/tooltip/tooltip.directive.mjs +370 -0
- package/esm2020/tooltip/tooltip.module.mjs +17 -0
- package/esm2020/tooltip/tooltip.styles.mjs +3 -0
- package/esm2020/tooltip/tooltip.types.mjs +2 -0
- package/esm2020/tooltip/wirabyte-ui-tooltip.mjs +5 -0
- package/esm2020/tree/public-api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +453 -0
- package/esm2020/tree/tree.module.mjs +17 -0
- package/esm2020/tree/wirabyte-ui-tree.mjs +5 -0
- package/esm2020/treeselect/public-api.mjs +3 -0
- package/esm2020/treeselect/treeselect.component.mjs +410 -0
- package/esm2020/treeselect/treeselect.module.mjs +17 -0
- package/esm2020/treeselect/wirabyte-ui-treeselect.mjs +5 -0
- package/esm2020/validation/field-error.component.mjs +84 -0
- package/esm2020/validation/public-api.mjs +4 -0
- package/esm2020/validation/validation.module.mjs +19 -0
- package/esm2020/validation/validators.mjs +84 -0
- package/esm2020/validation/wirabyte-ui-validation.mjs +5 -0
- package/esm2020/wirabyte-ui.mjs +5 -0
- package/excel/excel.d.ts +24 -0
- package/excel/index.d.ts +5 -0
- package/excel/public-api.d.ts +3 -0
- package/fesm2015/wirabyte-ui-accordion.mjs +416 -0
- package/fesm2015/wirabyte-ui-accordion.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-alert.mjs +555 -0
- package/fesm2015/wirabyte-ui-alert.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-animate.mjs +280 -0
- package/fesm2015/wirabyte-ui-animate.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-api.mjs +34 -0
- package/fesm2015/wirabyte-ui-api.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-asidemenu.mjs +848 -0
- package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-autocomplete.mjs +619 -0
- package/fesm2015/wirabyte-ui-autocomplete.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-avatar.mjs +103 -0
- package/fesm2015/wirabyte-ui-avatar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-badge.mjs +185 -0
- package/fesm2015/wirabyte-ui-badge.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-blockui.mjs +176 -0
- package/fesm2015/wirabyte-ui-blockui.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-bottombar.mjs +237 -0
- package/fesm2015/wirabyte-ui-bottombar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-breadcrumb.mjs +109 -0
- package/fesm2015/wirabyte-ui-breadcrumb.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-button.mjs +415 -0
- package/fesm2015/wirabyte-ui-button.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-card.mjs +134 -0
- package/fesm2015/wirabyte-ui-card.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-carousel.mjs +647 -0
- package/fesm2015/wirabyte-ui-carousel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-chart.mjs +63 -0
- package/fesm2015/wirabyte-ui-chart.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-chartjs.mjs +268 -0
- package/fesm2015/wirabyte-ui-chartjs.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-checkbox.mjs +164 -0
- package/fesm2015/wirabyte-ui-checkbox.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-chip.mjs +97 -0
- package/fesm2015/wirabyte-ui-chip.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-colorpicker.mjs +333 -0
- package/fesm2015/wirabyte-ui-colorpicker.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-config.mjs +624 -0
- package/fesm2015/wirabyte-ui-config.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-confirmdialog.mjs +421 -0
- package/fesm2015/wirabyte-ui-confirmdialog.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-contextmenu.mjs +185 -0
- package/fesm2015/wirabyte-ui-contextmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-core.mjs +13312 -0
- package/fesm2015/wirabyte-ui-core.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-datepicker.mjs +951 -0
- package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dialog.mjs +707 -0
- package/fesm2015/wirabyte-ui-dialog.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-divider.mjs +77 -0
- package/fesm2015/wirabyte-ui-divider.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dock.mjs +317 -0
- package/fesm2015/wirabyte-ui-dock.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dragdrop.mjs +232 -0
- package/fesm2015/wirabyte-ui-dragdrop.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-drawer.mjs +326 -0
- package/fesm2015/wirabyte-ui-drawer.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-editor.mjs +3099 -0
- package/fesm2015/wirabyte-ui-editor.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-emptystate.mjs +101 -0
- package/fesm2015/wirabyte-ui-emptystate.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-errorpage.mjs +187 -0
- package/fesm2015/wirabyte-ui-errorpage.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-excel.mjs +49 -0
- package/fesm2015/wirabyte-ui-excel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-fieldset.mjs +95 -0
- package/fesm2015/wirabyte-ui-fieldset.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-fileupload.mjs +607 -0
- package/fesm2015/wirabyte-ui-fileupload.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-floatlabel.mjs +74 -0
- package/fesm2015/wirabyte-ui-floatlabel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-flow.mjs +4967 -0
- package/fesm2015/wirabyte-ui-flow.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-galleria.mjs +506 -0
- package/fesm2015/wirabyte-ui-galleria.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-i18n.mjs +330 -0
- package/fesm2015/wirabyte-ui-i18n.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-iconfield.mjs +94 -0
- package/fesm2015/wirabyte-ui-iconfield.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-image.mjs +218 -0
- package/fesm2015/wirabyte-ui-image.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-imagecompare.mjs +224 -0
- package/fesm2015/wirabyte-ui-imagecompare.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-imagecropper.mjs +1301 -0
- package/fesm2015/wirabyte-ui-imagecropper.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inplace.mjs +167 -0
- package/fesm2015/wirabyte-ui-inplace.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputgroup.mjs +82 -0
- package/fesm2015/wirabyte-ui-inputgroup.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputmask.mjs +367 -0
- package/fesm2015/wirabyte-ui-inputmask.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputnumber.mjs +388 -0
- package/fesm2015/wirabyte-ui-inputnumber.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputotp.mjs +370 -0
- package/fesm2015/wirabyte-ui-inputotp.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-inputtext.mjs +85 -0
- package/fesm2015/wirabyte-ui-inputtext.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-keyfilter.mjs +155 -0
- package/fesm2015/wirabyte-ui-keyfilter.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-knob.mjs +229 -0
- package/fesm2015/wirabyte-ui-knob.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-listbox.mjs +543 -0
- package/fesm2015/wirabyte-ui-listbox.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-menu.mjs +365 -0
- package/fesm2015/wirabyte-ui-menu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-menubar.mjs +614 -0
- package/fesm2015/wirabyte-ui-menubar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-message.mjs +291 -0
- package/fesm2015/wirabyte-ui-message.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-metergroup.mjs +192 -0
- package/fesm2015/wirabyte-ui-metergroup.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-multiselect.mjs +795 -0
- package/fesm2015/wirabyte-ui-multiselect.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-navbar.mjs +491 -0
- package/fesm2015/wirabyte-ui-navbar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-orderlist.mjs +450 -0
- package/fesm2015/wirabyte-ui-orderlist.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-organizationchart.mjs +225 -0
- package/fesm2015/wirabyte-ui-organizationchart.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-paginator.mjs +226 -0
- package/fesm2015/wirabyte-ui-paginator.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-panel.mjs +130 -0
- package/fesm2015/wirabyte-ui-panel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-panelmenu.mjs +216 -0
- package/fesm2015/wirabyte-ui-panelmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-password.mjs +271 -0
- package/fesm2015/wirabyte-ui-password.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-picklist.mjs +954 -0
- package/fesm2015/wirabyte-ui-picklist.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-popover.mjs +210 -0
- package/fesm2015/wirabyte-ui-popover.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-presets.mjs +10 -0
- package/fesm2015/wirabyte-ui-presets.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-progressbar.mjs +156 -0
- package/fesm2015/wirabyte-ui-progressbar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-progressspinner.mjs +158 -0
- package/fesm2015/wirabyte-ui-progressspinner.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-radiobutton.mjs +186 -0
- package/fesm2015/wirabyte-ui-radiobutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-rating.mjs +129 -0
- package/fesm2015/wirabyte-ui-rating.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-result.mjs +95 -0
- package/fesm2015/wirabyte-ui-result.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-ripple.mjs +67 -0
- package/fesm2015/wirabyte-ui-ripple.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-scroller.mjs +330 -0
- package/fesm2015/wirabyte-ui-scroller.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-scrollpanel.mjs +90 -0
- package/fesm2015/wirabyte-ui-scrollpanel.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-select.mjs +730 -0
- package/fesm2015/wirabyte-ui-select.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-selectbutton.mjs +195 -0
- package/fesm2015/wirabyte-ui-selectbutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-sitefooter.mjs +166 -0
- package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-skeleton.mjs +72 -0
- package/fesm2015/wirabyte-ui-skeleton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-slider.mjs +271 -0
- package/fesm2015/wirabyte-ui-slider.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-splitbutton.mjs +202 -0
- package/fesm2015/wirabyte-ui-splitbutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-splitter.mjs +431 -0
- package/fesm2015/wirabyte-ui-splitter.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-stepper.mjs +607 -0
- package/fesm2015/wirabyte-ui-stepper.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-steps.mjs +182 -0
- package/fesm2015/wirabyte-ui-steps.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-table.mjs +3223 -0
- package/fesm2015/wirabyte-ui-table.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tabmenu.mjs +8 -0
- package/fesm2015/wirabyte-ui-tabmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tabs.mjs +790 -0
- package/fesm2015/wirabyte-ui-tabs.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tag.mjs +73 -0
- package/fesm2015/wirabyte-ui-tag.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-terminal.mjs +207 -0
- package/fesm2015/wirabyte-ui-terminal.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-textarea.mjs +108 -0
- package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-thai.mjs +138 -0
- package/fesm2015/wirabyte-ui-thai.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tieredmenu.mjs +417 -0
- package/fesm2015/wirabyte-ui-tieredmenu.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-timeline.mjs +130 -0
- package/fesm2015/wirabyte-ui-timeline.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-toast.mjs +294 -0
- package/fesm2015/wirabyte-ui-toast.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-togglebutton.mjs +151 -0
- package/fesm2015/wirabyte-ui-togglebutton.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-toggleswitch.mjs +144 -0
- package/fesm2015/wirabyte-ui-toggleswitch.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-toolbar.mjs +88 -0
- package/fesm2015/wirabyte-ui-toolbar.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tooltip.mjs +398 -0
- package/fesm2015/wirabyte-ui-tooltip.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-tree.mjs +480 -0
- package/fesm2015/wirabyte-ui-tree.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-treeselect.mjs +438 -0
- package/fesm2015/wirabyte-ui-treeselect.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-validation.mjs +189 -0
- package/fesm2015/wirabyte-ui-validation.mjs.map +1 -0
- package/fesm2015/wirabyte-ui.mjs +9 -0
- package/fesm2015/wirabyte-ui.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-accordion.mjs +414 -0
- package/fesm2020/wirabyte-ui-accordion.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-alert.mjs +529 -0
- package/fesm2020/wirabyte-ui-alert.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-animate.mjs +276 -0
- package/fesm2020/wirabyte-ui-animate.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-api.mjs +34 -0
- package/fesm2020/wirabyte-ui-api.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-asidemenu.mjs +832 -0
- package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-autocomplete.mjs +608 -0
- package/fesm2020/wirabyte-ui-autocomplete.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-avatar.mjs +102 -0
- package/fesm2020/wirabyte-ui-avatar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-badge.mjs +183 -0
- package/fesm2020/wirabyte-ui-badge.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-blockui.mjs +173 -0
- package/fesm2020/wirabyte-ui-blockui.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-bottombar.mjs +230 -0
- package/fesm2020/wirabyte-ui-bottombar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-breadcrumb.mjs +107 -0
- package/fesm2020/wirabyte-ui-breadcrumb.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-button.mjs +412 -0
- package/fesm2020/wirabyte-ui-button.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-card.mjs +134 -0
- package/fesm2020/wirabyte-ui-card.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-carousel.mjs +638 -0
- package/fesm2020/wirabyte-ui-carousel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-chart.mjs +63 -0
- package/fesm2020/wirabyte-ui-chart.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-chartjs.mjs +262 -0
- package/fesm2020/wirabyte-ui-chartjs.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-checkbox.mjs +164 -0
- package/fesm2020/wirabyte-ui-checkbox.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-chip.mjs +97 -0
- package/fesm2020/wirabyte-ui-chip.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-colorpicker.mjs +329 -0
- package/fesm2020/wirabyte-ui-colorpicker.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-config.mjs +621 -0
- package/fesm2020/wirabyte-ui-config.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-confirmdialog.mjs +395 -0
- package/fesm2020/wirabyte-ui-confirmdialog.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-contextmenu.mjs +180 -0
- package/fesm2020/wirabyte-ui-contextmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-core.mjs +13367 -0
- package/fesm2020/wirabyte-ui-core.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-datepicker.mjs +942 -0
- package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dialog.mjs +698 -0
- package/fesm2020/wirabyte-ui-dialog.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-divider.mjs +77 -0
- package/fesm2020/wirabyte-ui-divider.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dock.mjs +308 -0
- package/fesm2020/wirabyte-ui-dock.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dragdrop.mjs +229 -0
- package/fesm2020/wirabyte-ui-dragdrop.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-drawer.mjs +321 -0
- package/fesm2020/wirabyte-ui-drawer.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-editor.mjs +3056 -0
- package/fesm2020/wirabyte-ui-editor.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-emptystate.mjs +99 -0
- package/fesm2020/wirabyte-ui-emptystate.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-errorpage.mjs +184 -0
- package/fesm2020/wirabyte-ui-errorpage.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-excel.mjs +43 -0
- package/fesm2020/wirabyte-ui-excel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-fieldset.mjs +95 -0
- package/fesm2020/wirabyte-ui-fieldset.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-fileupload.mjs +599 -0
- package/fesm2020/wirabyte-ui-fileupload.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-floatlabel.mjs +74 -0
- package/fesm2020/wirabyte-ui-floatlabel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-flow.mjs +4920 -0
- package/fesm2020/wirabyte-ui-flow.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-galleria.mjs +501 -0
- package/fesm2020/wirabyte-ui-galleria.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-i18n.mjs +321 -0
- package/fesm2020/wirabyte-ui-i18n.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-iconfield.mjs +94 -0
- package/fesm2020/wirabyte-ui-iconfield.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-image.mjs +214 -0
- package/fesm2020/wirabyte-ui-image.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-imagecompare.mjs +221 -0
- package/fesm2020/wirabyte-ui-imagecompare.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-imagecropper.mjs +1279 -0
- package/fesm2020/wirabyte-ui-imagecropper.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inplace.mjs +166 -0
- package/fesm2020/wirabyte-ui-inplace.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputgroup.mjs +82 -0
- package/fesm2020/wirabyte-ui-inputgroup.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputmask.mjs +360 -0
- package/fesm2020/wirabyte-ui-inputmask.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputnumber.mjs +385 -0
- package/fesm2020/wirabyte-ui-inputnumber.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputotp.mjs +365 -0
- package/fesm2020/wirabyte-ui-inputotp.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-inputtext.mjs +85 -0
- package/fesm2020/wirabyte-ui-inputtext.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-keyfilter.mjs +152 -0
- package/fesm2020/wirabyte-ui-keyfilter.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-knob.mjs +228 -0
- package/fesm2020/wirabyte-ui-knob.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-listbox.mjs +541 -0
- package/fesm2020/wirabyte-ui-listbox.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-menu.mjs +356 -0
- package/fesm2020/wirabyte-ui-menu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-menubar.mjs +604 -0
- package/fesm2020/wirabyte-ui-menubar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-message.mjs +291 -0
- package/fesm2020/wirabyte-ui-message.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-metergroup.mjs +192 -0
- package/fesm2020/wirabyte-ui-metergroup.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-multiselect.mjs +778 -0
- package/fesm2020/wirabyte-ui-multiselect.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-navbar.mjs +481 -0
- package/fesm2020/wirabyte-ui-navbar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-orderlist.mjs +445 -0
- package/fesm2020/wirabyte-ui-orderlist.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-organizationchart.mjs +221 -0
- package/fesm2020/wirabyte-ui-organizationchart.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-paginator.mjs +226 -0
- package/fesm2020/wirabyte-ui-paginator.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-panel.mjs +130 -0
- package/fesm2020/wirabyte-ui-panel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-panelmenu.mjs +213 -0
- package/fesm2020/wirabyte-ui-panelmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-password.mjs +267 -0
- package/fesm2020/wirabyte-ui-password.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-picklist.mjs +944 -0
- package/fesm2020/wirabyte-ui-picklist.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-popover.mjs +205 -0
- package/fesm2020/wirabyte-ui-popover.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-presets.mjs +10 -0
- package/fesm2020/wirabyte-ui-presets.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-progressbar.mjs +156 -0
- package/fesm2020/wirabyte-ui-progressbar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-progressspinner.mjs +156 -0
- package/fesm2020/wirabyte-ui-progressspinner.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-radiobutton.mjs +186 -0
- package/fesm2020/wirabyte-ui-radiobutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-rating.mjs +128 -0
- package/fesm2020/wirabyte-ui-rating.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-result.mjs +93 -0
- package/fesm2020/wirabyte-ui-result.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-ripple.mjs +66 -0
- package/fesm2020/wirabyte-ui-ripple.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-scroller.mjs +326 -0
- package/fesm2020/wirabyte-ui-scroller.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-scrollpanel.mjs +88 -0
- package/fesm2020/wirabyte-ui-scrollpanel.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-select.mjs +713 -0
- package/fesm2020/wirabyte-ui-select.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-selectbutton.mjs +195 -0
- package/fesm2020/wirabyte-ui-selectbutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-sitefooter.mjs +160 -0
- package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-skeleton.mjs +72 -0
- package/fesm2020/wirabyte-ui-skeleton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-slider.mjs +268 -0
- package/fesm2020/wirabyte-ui-slider.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-splitbutton.mjs +201 -0
- package/fesm2020/wirabyte-ui-splitbutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-splitter.mjs +422 -0
- package/fesm2020/wirabyte-ui-splitter.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-stepper.mjs +602 -0
- package/fesm2020/wirabyte-ui-stepper.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-steps.mjs +180 -0
- package/fesm2020/wirabyte-ui-steps.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-table.mjs +3201 -0
- package/fesm2020/wirabyte-ui-table.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tabmenu.mjs +8 -0
- package/fesm2020/wirabyte-ui-tabmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tabs.mjs +769 -0
- package/fesm2020/wirabyte-ui-tabs.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tag.mjs +73 -0
- package/fesm2020/wirabyte-ui-tag.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-terminal.mjs +203 -0
- package/fesm2020/wirabyte-ui-terminal.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-textarea.mjs +108 -0
- package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-thai.mjs +138 -0
- package/fesm2020/wirabyte-ui-thai.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tieredmenu.mjs +406 -0
- package/fesm2020/wirabyte-ui-tieredmenu.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-timeline.mjs +130 -0
- package/fesm2020/wirabyte-ui-timeline.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-toast.mjs +291 -0
- package/fesm2020/wirabyte-ui-toast.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-togglebutton.mjs +150 -0
- package/fesm2020/wirabyte-ui-togglebutton.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-toggleswitch.mjs +144 -0
- package/fesm2020/wirabyte-ui-toggleswitch.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-toolbar.mjs +88 -0
- package/fesm2020/wirabyte-ui-toolbar.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tooltip.mjs +393 -0
- package/fesm2020/wirabyte-ui-tooltip.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-tree.mjs +474 -0
- package/fesm2020/wirabyte-ui-tree.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-treeselect.mjs +431 -0
- package/fesm2020/wirabyte-ui-treeselect.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-validation.mjs +186 -0
- package/fesm2020/wirabyte-ui-validation.mjs.map +1 -0
- package/fesm2020/wirabyte-ui.mjs +9 -0
- package/fesm2020/wirabyte-ui.mjs.map +1 -0
- package/fieldset/fieldset.component.d.ts +35 -0
- package/fieldset/fieldset.module.d.ts +9 -0
- package/fieldset/index.d.ts +5 -0
- package/fieldset/public-api.d.ts +2 -0
- package/fileupload/fileupload.base.d.ts +175 -0
- package/fileupload/fileupload.component.d.ts +11 -0
- package/fileupload/fileupload.module.d.ts +9 -0
- package/fileupload/fileupload.types.d.ts +54 -0
- package/fileupload/index.d.ts +5 -0
- package/fileupload/public-api.d.ts +4 -0
- package/floatlabel/floatlabel.component.d.ts +21 -0
- package/floatlabel/floatlabel.module.d.ts +8 -0
- package/floatlabel/floatlabel.types.d.ts +1 -0
- package/floatlabel/index.d.ts +5 -0
- package/floatlabel/public-api.d.ts +3 -0
- package/flow/flow-background.component.d.ts +49 -0
- package/flow/flow-controls.component.d.ts +47 -0
- package/flow/flow-handle.component.d.ts +48 -0
- package/flow/flow-history.directive.d.ts +42 -0
- package/flow/flow-host.d.ts +48 -0
- package/flow/flow-minimap.component.d.ts +79 -0
- package/flow/flow-node-outlet.d.ts +46 -0
- package/flow/flow-node-resizer.component.d.ts +57 -0
- package/flow/flow-node-toolbar.component.d.ts +38 -0
- package/flow/flow-panel.component.d.ts +11 -0
- package/flow/flow-templates.d.ts +47 -0
- package/flow/flow.component.d.ts +633 -0
- package/flow/flow.module.d.ts +21 -0
- package/flow/flow.types.d.ts +210 -0
- package/flow/index.d.ts +5 -0
- package/flow/public-api.d.ts +16 -0
- package/galleria/galleria.component.d.ts +163 -0
- package/galleria/galleria.module.d.ts +8 -0
- package/galleria/index.d.ts +5 -0
- package/galleria/public-api.d.ts +2 -0
- package/i18n/i18n.module.d.ts +22 -0
- package/i18n/i18n.service.d.ts +54 -0
- package/i18n/i18n.types.d.ts +33 -0
- package/i18n/index.d.ts +5 -0
- package/i18n/language-switch.component.d.ts +50 -0
- package/i18n/public-api.d.ts +6 -0
- package/i18n/translate.pipe.d.ts +25 -0
- package/iconfield/iconfield.component.d.ts +30 -0
- package/iconfield/iconfield.module.d.ts +8 -0
- package/iconfield/index.d.ts +5 -0
- package/iconfield/public-api.d.ts +2 -0
- package/image/image.base.d.ts +83 -0
- package/image/image.component.d.ts +7 -0
- package/image/image.module.d.ts +9 -0
- package/image/index.d.ts +5 -0
- package/image/public-api.d.ts +3 -0
- package/imagecompare/imagecompare.component.d.ts +67 -0
- package/imagecompare/imagecompare.module.d.ts +9 -0
- package/imagecompare/index.d.ts +5 -0
- package/imagecompare/public-api.d.ts +2 -0
- package/imagecropper/imagecropper.component.d.ts +309 -0
- package/imagecropper/imagecropper.module.d.ts +8 -0
- package/imagecropper/imagecropper.types.d.ts +79 -0
- package/imagecropper/index.d.ts +5 -0
- package/imagecropper/public-api.d.ts +4 -0
- package/index.d.ts +5 -0
- package/inplace/index.d.ts +5 -0
- package/inplace/inplace.component.d.ts +59 -0
- package/inplace/inplace.module.d.ts +8 -0
- package/inplace/public-api.d.ts +2 -0
- package/inputgroup/index.d.ts +5 -0
- package/inputgroup/inputgroup.component.d.ts +26 -0
- package/inputgroup/inputgroup.module.d.ts +8 -0
- package/inputgroup/public-api.d.ts +2 -0
- package/inputmask/index.d.ts +5 -0
- package/inputmask/inputmask.base.d.ts +115 -0
- package/inputmask/inputmask.component.d.ts +10 -0
- package/inputmask/inputmask.module.d.ts +8 -0
- package/inputmask/public-api.d.ts +3 -0
- package/inputnumber/index.d.ts +5 -0
- package/inputnumber/inputnumber.component.d.ts +132 -0
- package/inputnumber/inputnumber.module.d.ts +8 -0
- package/inputnumber/inputnumber.types.d.ts +7 -0
- package/inputnumber/public-api.d.ts +3 -0
- package/inputotp/index.d.ts +5 -0
- package/inputotp/inputotp.component.d.ts +105 -0
- package/inputotp/inputotp.module.d.ts +9 -0
- package/inputotp/inputotp.types.d.ts +22 -0
- package/inputotp/public-api.d.ts +3 -0
- package/inputtext/index.d.ts +5 -0
- package/inputtext/inputtext.directive.d.ts +25 -0
- package/inputtext/inputtext.module.d.ts +8 -0
- package/inputtext/inputtext.styles.d.ts +2 -0
- package/inputtext/inputtext.types.d.ts +3 -0
- package/inputtext/public-api.d.ts +5 -0
- package/keyfilter/index.d.ts +5 -0
- package/keyfilter/keyfilter.directive.d.ts +29 -0
- package/keyfilter/keyfilter.module.d.ts +8 -0
- package/keyfilter/public-api.d.ts +2 -0
- package/knob/index.d.ts +5 -0
- package/knob/knob.component.d.ts +94 -0
- package/knob/knob.module.d.ts +8 -0
- package/knob/public-api.d.ts +2 -0
- package/listbox/index.d.ts +5 -0
- package/listbox/listbox.component.d.ts +186 -0
- package/listbox/listbox.module.d.ts +8 -0
- package/listbox/public-api.d.ts +2 -0
- package/menu/index.d.ts +5 -0
- package/menu/menu.base.d.ts +95 -0
- package/menu/menu.component.d.ts +11 -0
- package/menu/menu.module.d.ts +9 -0
- package/menu/public-api.d.ts +4 -0
- package/menubar/index.d.ts +5 -0
- package/menubar/menubar.base.d.ts +135 -0
- package/menubar/menubar.component.d.ts +11 -0
- package/menubar/menubar.module.d.ts +9 -0
- package/menubar/public-api.d.ts +4 -0
- package/message/index.d.ts +5 -0
- package/message/message.component.d.ts +50 -0
- package/message/message.module.d.ts +11 -0
- package/message/message.types.d.ts +5 -0
- package/message/messages.base.d.ts +50 -0
- package/message/messages.component.d.ts +7 -0
- package/message/public-api.d.ts +5 -0
- package/metergroup/index.d.ts +5 -0
- package/metergroup/metergroup.component.d.ts +59 -0
- package/metergroup/metergroup.module.d.ts +8 -0
- package/metergroup/metergroup.types.d.ts +42 -0
- package/metergroup/public-api.d.ts +3 -0
- package/multiselect/index.d.ts +5 -0
- package/multiselect/multiselect.base.d.ts +222 -0
- package/multiselect/multiselect.component.d.ts +11 -0
- package/multiselect/multiselect.module.d.ts +9 -0
- package/multiselect/multiselect.styles.d.ts +2 -0
- package/multiselect/multiselect.types.d.ts +20 -0
- package/multiselect/public-api.d.ts +5 -0
- package/navbar/index.d.ts +5 -0
- package/navbar/navbar.component.d.ts +172 -0
- package/navbar/navbar.module.d.ts +9 -0
- package/navbar/public-api.d.ts +2 -0
- package/orderlist/index.d.ts +5 -0
- package/orderlist/orderlist.base.d.ts +136 -0
- package/orderlist/orderlist.component.d.ts +10 -0
- package/orderlist/orderlist.module.d.ts +9 -0
- package/orderlist/orderlist.types.d.ts +10 -0
- package/orderlist/public-api.d.ts +4 -0
- package/organizationchart/index.d.ts +5 -0
- package/organizationchart/organizationchart.component.d.ts +76 -0
- package/organizationchart/organizationchart.module.d.ts +9 -0
- package/organizationchart/organizationchart.types.d.ts +10 -0
- package/organizationchart/public-api.d.ts +4 -0
- package/package.json +891 -3
- package/paginator/index.d.ts +5 -0
- package/paginator/paginator.base.d.ts +95 -0
- package/paginator/paginator.component.d.ts +10 -0
- package/paginator/paginator.module.d.ts +8 -0
- package/paginator/paginator.types.d.ts +7 -0
- package/paginator/public-api.d.ts +4 -0
- package/panel/index.d.ts +5 -0
- package/panel/panel.component.d.ts +51 -0
- package/panel/panel.module.d.ts +10 -0
- package/panel/panel.types.d.ts +2 -0
- package/panel/public-api.d.ts +3 -0
- package/panelmenu/index.d.ts +5 -0
- package/panelmenu/panelmenu.base.d.ts +53 -0
- package/panelmenu/panelmenu.component.d.ts +7 -0
- package/panelmenu/panelmenu.module.d.ts +9 -0
- package/panelmenu/public-api.d.ts +3 -0
- package/password/index.d.ts +5 -0
- package/password/password.component.d.ts +90 -0
- package/password/password.module.d.ts +8 -0
- package/password/password.types.d.ts +6 -0
- package/password/public-api.d.ts +3 -0
- package/picklist/index.d.ts +5 -0
- package/picklist/list-drag.d.ts +49 -0
- package/picklist/picklist.base.d.ts +217 -0
- package/picklist/picklist.component.d.ts +10 -0
- package/picklist/picklist.module.d.ts +9 -0
- package/picklist/picklist.styles.d.ts +2 -0
- package/picklist/picklist.types.d.ts +21 -0
- package/picklist/public-api.d.ts +7 -0
- package/popover/index.d.ts +5 -0
- package/popover/popover.base.d.ts +61 -0
- package/popover/popover.component.d.ts +10 -0
- package/popover/popover.module.d.ts +9 -0
- package/popover/public-api.d.ts +3 -0
- package/presets/index.d.ts +5 -0
- package/presets/public-api.d.ts +2 -0
- package/progressbar/index.d.ts +5 -0
- package/progressbar/progressbar.component.d.ts +62 -0
- package/progressbar/progressbar.module.d.ts +8 -0
- package/progressbar/progressbar.types.d.ts +16 -0
- package/progressbar/public-api.d.ts +3 -0
- package/progressspinner/index.d.ts +5 -0
- package/progressspinner/progressspinner.component.d.ts +50 -0
- package/progressspinner/progressspinner.module.d.ts +8 -0
- package/progressspinner/progressspinner.types.d.ts +9 -0
- package/progressspinner/public-api.d.ts +3 -0
- package/public-api.d.ts +2 -0
- package/radiobutton/index.d.ts +5 -0
- package/radiobutton/public-api.d.ts +6 -0
- package/radiobutton/radio-registry.d.ts +23 -0
- package/radiobutton/radiobutton.component.d.ts +57 -0
- package/radiobutton/radiobutton.module.d.ts +8 -0
- package/radiobutton/radiobutton.styles.d.ts +2 -0
- package/radiobutton/radiobutton.types.d.ts +4 -0
- package/rating/index.d.ts +5 -0
- package/rating/public-api.d.ts +3 -0
- package/rating/rating.component.d.ts +47 -0
- package/rating/rating.module.d.ts +8 -0
- package/rating/rating.types.d.ts +4 -0
- package/result/index.d.ts +5 -0
- package/result/public-api.d.ts +2 -0
- package/result/result.component.d.ts +39 -0
- package/result/result.module.d.ts +8 -0
- package/ripple/index.d.ts +5 -0
- package/ripple/public-api.d.ts +2 -0
- package/ripple/ripple.directive.d.ts +15 -0
- package/ripple/ripple.module.d.ts +8 -0
- package/ripple/ripple.styles.d.ts +2 -0
- package/schematics/collection.json +21 -0
- package/schematics/core/carousel.cjs +70 -0
- package/schematics/core/catalog.cjs +206 -0
- package/schematics/core/chart/format.cjs +68 -0
- package/schematics/core/chart/index.cjs +32 -0
- package/schematics/core/chart/kinds.cjs +1355 -0
- package/schematics/core/chart/model.cjs +717 -0
- package/schematics/core/chart/more.cjs +317 -0
- package/schematics/core/chart/paths.cjs +170 -0
- package/schematics/core/chart/scale.cjs +63 -0
- package/schematics/core/color.cjs +106 -0
- package/schematics/core/colorpicker.cjs +79 -0
- package/schematics/core/compat.cjs +152 -0
- package/schematics/core/config.cjs +172 -0
- package/schematics/core/date.cjs +346 -0
- package/schematics/core/datepicker.cjs +530 -0
- package/schematics/core/dock.cjs +16 -0
- package/schematics/core/editor.cjs +281 -0
- package/schematics/core/errorpage.cjs +52 -0
- package/schematics/core/excel.cjs +826 -0
- package/schematics/core/exporters.cjs +249 -0
- package/schematics/core/families.cjs +1758 -0
- package/schematics/core/fileupload.cjs +54 -0
- package/schematics/core/flow/changes.cjs +215 -0
- package/schematics/core/flow/edges.cjs +95 -0
- package/schematics/core/flow/export.cjs +236 -0
- package/schematics/core/flow/geometry.cjs +338 -0
- package/schematics/core/flow/graph.cjs +338 -0
- package/schematics/core/flow/history.cjs +109 -0
- package/schematics/core/flow/index.cjs +29 -0
- package/schematics/core/flow/interaction.cjs +264 -0
- package/schematics/core/flow/layout.cjs +592 -0
- package/schematics/core/flow/paths.cjs +268 -0
- package/schematics/core/flow/text.cjs +74 -0
- package/schematics/core/flow/types.cjs +7 -0
- package/schematics/core/flow/viewport.cjs +151 -0
- package/schematics/core/i18n.cjs +85 -0
- package/schematics/core/imagecompare.cjs +32 -0
- package/schematics/core/imagecropper.cjs +515 -0
- package/schematics/core/index.cjs +55 -0
- package/schematics/core/inputotp.cjs +56 -0
- package/schematics/core/knob.cjs +114 -0
- package/schematics/core/mask.cjs +122 -0
- package/schematics/core/menu.cjs +88 -0
- package/schematics/core/number.cjs +141 -0
- package/schematics/core/organizationchart.cjs +91 -0
- package/schematics/core/overrides.cjs +179 -0
- package/schematics/core/picklist.cjs +262 -0
- package/schematics/core/select.cjs +172 -0
- package/schematics/core/splitter.cjs +69 -0
- package/schematics/core/table.cjs +183 -0
- package/schematics/core/terminal.cjs +34 -0
- package/schematics/core/thai/buddhist.cjs +135 -0
- package/schematics/core/thai/locale.cjs +654 -0
- package/schematics/core/thai/text.cjs +173 -0
- package/schematics/core/thai/thai-id.cjs +26 -0
- package/schematics/core/tokens.cjs +335 -0
- package/schematics/core/tree.cjs +144 -0
- package/schematics/core/validation.cjs +46 -0
- package/schematics/from-primeng/index.cjs +221 -0
- package/schematics/from-primeng/mapping.cjs +195 -0
- package/schematics/from-primeng/schema.cjs +2 -0
- package/schematics/from-primeng/schema.json +17 -0
- package/schematics/migration.json +4 -0
- package/schematics/ng-add/index.cjs +318 -0
- package/schematics/ng-add/schema.cjs +2 -0
- package/schematics/ng-add/schema.json +325 -0
- package/schematics/utils/ast.cjs +185 -0
- package/schematics/utils/workspace.cjs +115 -0
- package/scroller/index.d.ts +5 -0
- package/scroller/public-api.d.ts +5 -0
- package/scroller/scroller.component.d.ts +135 -0
- package/scroller/scroller.module.d.ts +8 -0
- package/scrollpanel/index.d.ts +5 -0
- package/scrollpanel/public-api.d.ts +2 -0
- package/scrollpanel/scrollpanel.component.d.ts +27 -0
- package/scrollpanel/scrollpanel.module.d.ts +8 -0
- package/select/index.d.ts +5 -0
- package/select/public-api.d.ts +6 -0
- package/select/select.base.d.ts +217 -0
- package/select/select.component.d.ts +11 -0
- package/select/select.module.d.ts +8 -0
- package/select/select.styles.d.ts +2 -0
- package/select/select.types.d.ts +9 -0
- package/selectbutton/index.d.ts +5 -0
- package/selectbutton/public-api.d.ts +3 -0
- package/selectbutton/selectbutton.component.d.ts +70 -0
- package/selectbutton/selectbutton.module.d.ts +9 -0
- package/selectbutton/selectbutton.types.d.ts +9 -0
- package/sitefooter/index.d.ts +5 -0
- package/sitefooter/public-api.d.ts +2 -0
- package/sitefooter/sitefooter.component.d.ts +69 -0
- package/sitefooter/sitefooter.module.d.ts +9 -0
- package/skeleton/index.d.ts +5 -0
- package/skeleton/public-api.d.ts +3 -0
- package/skeleton/skeleton.component.d.ts +22 -0
- package/skeleton/skeleton.module.d.ts +8 -0
- package/skeleton/skeleton.types.d.ts +2 -0
- package/slider/index.d.ts +5 -0
- package/slider/public-api.d.ts +2 -0
- package/slider/slider.component.d.ts +79 -0
- package/slider/slider.module.d.ts +8 -0
- package/splitbutton/index.d.ts +5 -0
- package/splitbutton/public-api.d.ts +2 -0
- package/splitbutton/splitbutton.component.d.ts +75 -0
- package/splitbutton/splitbutton.module.d.ts +8 -0
- package/splitter/index.d.ts +5 -0
- package/splitter/public-api.d.ts +4 -0
- package/splitter/splitter-panel.component.d.ts +20 -0
- package/splitter/splitter.component.d.ts +109 -0
- package/splitter/splitter.module.d.ts +10 -0
- package/splitter/splitter.types.d.ts +8 -0
- package/stepper/index.d.ts +5 -0
- package/stepper/public-api.d.ts +3 -0
- package/stepper/stepper.base.d.ts +200 -0
- package/stepper/stepper.component.d.ts +41 -0
- package/stepper/stepper.module.d.ts +9 -0
- package/steps/index.d.ts +5 -0
- package/steps/public-api.d.ts +3 -0
- package/steps/steps.base.d.ts +52 -0
- package/steps/steps.component.d.ts +7 -0
- package/steps/steps.module.d.ts +8 -0
- package/table/index.d.ts +5 -0
- package/table/public-api.d.ts +9 -0
- package/table/table-celleditor.component.d.ts +14 -0
- package/table/table-filter.component.d.ts +11 -0
- package/table/table.base.d.ts +410 -0
- package/table/table.celleditor.d.ts +20 -0
- package/table/table.component.d.ts +12 -0
- package/table/table.directives.d.ts +330 -0
- package/table/table.filter.d.ts +131 -0
- package/table/table.module.d.ts +12 -0
- package/table/table.types.d.ts +180 -0
- package/tabmenu/index.d.ts +5 -0
- package/tabmenu/public-api.d.ts +2 -0
- package/tabs/index.d.ts +5 -0
- package/tabs/public-api.d.ts +8 -0
- package/tabs/tabmenu.base.d.ts +59 -0
- package/tabs/tabmenu.component.d.ts +10 -0
- package/tabs/tabmenu.module.d.ts +9 -0
- package/tabs/tabs.component.d.ts +147 -0
- package/tabs/tabs.module.d.ts +10 -0
- package/tabs/tabs.styles.d.ts +2 -0
- package/tabs/tabs.types.d.ts +21 -0
- package/tag/index.d.ts +5 -0
- package/tag/public-api.d.ts +3 -0
- package/tag/tag.component.d.ts +24 -0
- package/tag/tag.module.d.ts +8 -0
- package/tag/tag.types.d.ts +2 -0
- package/terminal/index.d.ts +5 -0
- package/terminal/public-api.d.ts +5 -0
- package/terminal/terminal.component.d.ts +58 -0
- package/terminal/terminal.module.d.ts +8 -0
- package/terminal/terminal.service.d.ts +20 -0
- package/textarea/index.d.ts +5 -0
- package/textarea/public-api.d.ts +2 -0
- package/textarea/textarea.directive.d.ts +33 -0
- package/textarea/textarea.module.d.ts +8 -0
- package/thai/index.d.ts +5 -0
- package/thai/public-api.d.ts +3 -0
- package/thai/thai.module.d.ts +8 -0
- package/thai/thai.pipes.d.ts +57 -0
- package/theme/_api.scss +71 -0
- package/theme/_color.scss +153 -0
- package/theme/_data.scss +9283 -0
- package/theme/_index.scss +424 -0
- package/theme/_version.scss +2 -0
- package/themes/arun-blue/theme.css +1446 -0
- package/themes/arun-green/theme.css +1446 -0
- package/themes/arun-orange/theme.css +1445 -0
- package/themes/arun-purple/theme.css +1446 -0
- package/themes/md-dark-deeppurple/theme.css +1309 -0
- package/themes/md-dark-indigo/theme.css +1309 -0
- package/themes/md-light-deeppurple/theme.css +1418 -0
- package/themes/md-light-indigo/theme.css +1418 -0
- package/themes/ratri-blue/theme.css +1309 -0
- package/themes/ratri-green/theme.css +1309 -0
- package/themes/ratri-orange/theme.css +1309 -0
- package/themes/ratri-purple/theme.css +1309 -0
- package/themes/sayan-blue/theme.css +1309 -0
- package/themes/sayan-green/theme.css +1309 -0
- package/themes/sayan-orange/theme.css +1309 -0
- package/themes/sayan-purple/theme.css +1309 -0
- package/themes/sila-dark-blue/theme.css +1309 -0
- package/themes/sila-dark-indigo/theme.css +1309 -0
- package/themes/sila-dark-purple/theme.css +1309 -0
- package/themes/sila-dark-teal/theme.css +1309 -0
- package/themes/sila-light-blue/theme.css +1446 -0
- package/themes/sila-light-indigo/theme.css +1446 -0
- package/themes/sila-light-purple/theme.css +1446 -0
- package/themes/sila-light-teal/theme.css +1446 -0
- package/themes/sila-light-wira/theme.css +1446 -0
- package/tieredmenu/index.d.ts +5 -0
- package/tieredmenu/public-api.d.ts +2 -0
- package/tieredmenu/tieredmenu.component.d.ts +90 -0
- package/tieredmenu/tieredmenu.module.d.ts +8 -0
- package/timeline/index.d.ts +5 -0
- package/timeline/public-api.d.ts +3 -0
- package/timeline/timeline.base.d.ts +36 -0
- package/timeline/timeline.component.d.ts +7 -0
- package/timeline/timeline.module.d.ts +9 -0
- package/toast/index.d.ts +5 -0
- package/toast/message.service.d.ts +19 -0
- package/toast/public-api.d.ts +5 -0
- package/toast/toast.base.d.ts +84 -0
- package/toast/toast.component.d.ts +10 -0
- package/toast/toast.module.d.ts +9 -0
- package/toast/toast.types.d.ts +28 -0
- package/togglebutton/index.d.ts +5 -0
- package/togglebutton/public-api.d.ts +3 -0
- package/togglebutton/togglebutton.component.d.ts +56 -0
- package/togglebutton/togglebutton.module.d.ts +8 -0
- package/togglebutton/togglebutton.types.d.ts +4 -0
- package/toggleswitch/index.d.ts +5 -0
- package/toggleswitch/public-api.d.ts +3 -0
- package/toggleswitch/toggleswitch.component.d.ts +52 -0
- package/toggleswitch/toggleswitch.module.d.ts +8 -0
- package/toggleswitch/toggleswitch.types.d.ts +4 -0
- package/toolbar/index.d.ts +5 -0
- package/toolbar/public-api.d.ts +2 -0
- package/toolbar/toolbar.component.d.ts +29 -0
- package/toolbar/toolbar.module.d.ts +9 -0
- package/tooltip/index.d.ts +5 -0
- package/tooltip/public-api.d.ts +3 -0
- package/tooltip/tooltip.directive.d.ts +87 -0
- package/tooltip/tooltip.module.d.ts +8 -0
- package/tooltip/tooltip.styles.d.ts +2 -0
- package/tooltip/tooltip.types.d.ts +14 -0
- package/tree/index.d.ts +5 -0
- package/tree/public-api.d.ts +2 -0
- package/tree/tree.component.d.ts +149 -0
- package/tree/tree.module.d.ts +8 -0
- package/treeselect/index.d.ts +5 -0
- package/treeselect/public-api.d.ts +2 -0
- package/treeselect/treeselect.component.d.ts +140 -0
- package/treeselect/treeselect.module.d.ts +8 -0
- package/utils/_index.scss +532 -0
- package/utils/_palettes.scss +23 -0
- package/utils/utils.css +9280 -0
- package/utils/utils.min.css +1 -0
- package/validation/field-error.component.d.ts +39 -0
- package/validation/index.d.ts +5 -0
- package/validation/public-api.d.ts +3 -0
- package/validation/validation.module.d.ts +9 -0
- package/validation/validators.d.ts +33 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
4
|
+
import { WuConfig, ɵrefreshOnTranslation, ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';
|
|
5
|
+
|
|
6
|
+
const TYPES = ['nodata', 'search', 'inbox', 'folder', 'error', 'offline'];
|
|
7
|
+
/**
|
|
8
|
+
* What a list, table or page shows when there is nothing in it:
|
|
9
|
+
* `<wu-empty-state type="search"><wu-button label="ล้างตัวกรอง" (onClick)="clear()"></wu-button></wu-empty-state>`.
|
|
10
|
+
* A drawing per `type` (no data, nothing found, empty inbox, empty folder, failed load, offline) in the theme's colours,
|
|
11
|
+
* a title and a line under it in the app's language (both replaceable), and whatever is inside the tag as actions.
|
|
12
|
+
* `icon` or `image` replace the drawing; `size="small"` fits inside a table's empty row.
|
|
13
|
+
*/
|
|
14
|
+
class WuEmptyState {
|
|
15
|
+
/** Which drawing and default text. Default `'nodata'`. */
|
|
16
|
+
set type(v) {
|
|
17
|
+
this._type = TYPES.includes(v) ? v : 'nodata';
|
|
18
|
+
}
|
|
19
|
+
get type() {
|
|
20
|
+
return this._type;
|
|
21
|
+
}
|
|
22
|
+
constructor() {
|
|
23
|
+
/** `false` leaves out the drawing (and icon / image). */
|
|
24
|
+
this.showImage = true;
|
|
25
|
+
/** `'small'` for inside tables and cards, `'large'` for a whole page. */
|
|
26
|
+
this.size = 'normal';
|
|
27
|
+
this._type = 'nodata';
|
|
28
|
+
this.config = inject(WuConfig);
|
|
29
|
+
this.i18n = ɵrefreshOnTranslation();
|
|
30
|
+
ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));
|
|
31
|
+
}
|
|
32
|
+
ngOnDestroy() {
|
|
33
|
+
this.i18n.unsubscribe();
|
|
34
|
+
}
|
|
35
|
+
// ---------- what the template reads ----------
|
|
36
|
+
get titleText() {
|
|
37
|
+
var _a, _b, _c, _d;
|
|
38
|
+
return (_d = (_a = this.title) !== null && _a !== void 0 ? _a : (_c = (_b = this.config.translation.emptyState) === null || _b === void 0 ? void 0 : _b[this._type]) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '';
|
|
39
|
+
}
|
|
40
|
+
get descriptionText() {
|
|
41
|
+
var _a, _b, _c, _d;
|
|
42
|
+
return (_d = (_a = this.description) !== null && _a !== void 0 ? _a : (_c = (_b = this.config.translation.emptyState) === null || _b === void 0 ? void 0 : _b[this._type]) === null || _c === void 0 ? void 0 : _c.description) !== null && _d !== void 0 ? _d : '';
|
|
43
|
+
}
|
|
44
|
+
get pictured() {
|
|
45
|
+
return this.showImage !== false && this.showImage !== 'false';
|
|
46
|
+
}
|
|
47
|
+
get sizeClass() {
|
|
48
|
+
return this.size === 'small' ? 'wu-empty-state-sm' : this.size === 'large' ? 'wu-empty-state-lg' : '';
|
|
49
|
+
}
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
|
+
get rootStyle() {
|
|
52
|
+
return this.style && typeof this.style === 'object' ? this.style : null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
WuEmptyState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyState, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
WuEmptyState.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuEmptyState, isStandalone: true, selector: "wu-empty-state, wu-emptyState, wu-empty", inputs: { type: "type", title: "title", description: "description", icon: "icon", image: "image", imageAlt: "imageAlt", showImage: "showImage", size: "size", styleClass: "styleClass", style: "style" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-empty-state-host" }, ngImport: i0, template: "<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-empty-state,wu-emptyState,wu-empty){display:block}.wu-empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--wu-empty-state-gap);padding:var(--wu-empty-state-padding);text-align:center;font-family:var(--wu-font-family)}.wu-empty-state-art,.wu-empty-state-image{display:block;width:var(--wu-empty-state-art-width);max-width:100%;height:auto;margin-bottom:.5rem}.wu-empty-state-image{object-fit:contain}.wu-empty-state-art{overflow:visible;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.wu-es-bg{fill:var(--wu-empty-state-art-bg);stroke:none}.wu-es-paper{fill:var(--wu-empty-state-art-paper);stroke:var(--wu-empty-state-art-line)}.wu-es-line{stroke:var(--wu-empty-state-art-line)}.wu-es-line-fill{fill:var(--wu-empty-state-art-line);stroke:none}.wu-es-soft{fill:var(--wu-empty-state-art-soft);stroke:none}.wu-es-tray{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-line)}.wu-es-lens{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-accent);stroke-width:3}.wu-es-accent{stroke:var(--wu-empty-state-art-accent)}.wu-es-thick{stroke-width:6}.wu-es-accent-fill{fill:var(--wu-empty-state-art-accent);stroke:none}.wu-es-danger{stroke:var(--wu-empty-state-art-danger);stroke-width:3.5}.wu-empty-state-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-empty-state-icon-box);height:var(--wu-empty-state-icon-box);margin-bottom:.5rem;border-radius:50%;background:var(--wu-empty-state-icon-bg);color:var(--wu-empty-state-icon-color);font-size:var(--wu-empty-state-icon-size);line-height:1}.wu-empty-state-title{margin:0;color:var(--wu-empty-state-title-color);font-size:var(--wu-empty-state-title-size);font-weight:var(--wu-empty-state-title-weight);line-height:var(--wu-line-height)}.wu-empty-state-description{margin:0;max-width:32rem;color:var(--wu-empty-state-description-color);font-size:var(--wu-empty-state-description-size);line-height:var(--wu-line-height)}.wu-empty-state-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--wu-empty-state-actions-gap);margin-top:.75rem}.wu-empty-state-actions:empty{display:none}.wu-empty-state-sm{padding:var(--wu-empty-state-sm-padding)}.wu-empty-state-sm :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-sm-width);margin-bottom:.25rem}.wu-empty-state-sm .wu-empty-state-icon{width:calc(var(--wu-empty-state-icon-box) * .75);height:calc(var(--wu-empty-state-icon-box) * .75);font-size:calc(var(--wu-empty-state-icon-size) * .8)}.wu-empty-state-sm .wu-empty-state-title{font-size:var(--wu-empty-state-description-size)}.wu-empty-state-sm .wu-empty-state-description{font-size:.875em}.wu-empty-state-sm .wu-empty-state-actions{margin-top:.375rem}.wu-empty-state-lg{padding:var(--wu-empty-state-lg-padding)}.wu-empty-state-lg :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-lg-width)}.wu-empty-state-lg .wu-empty-state-title{font-size:calc(var(--wu-empty-state-title-size) * 1.25)}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyState, decorators: [{
|
|
58
|
+
type: Component,
|
|
59
|
+
args: [{ selector: 'wu-empty-state, wu-emptyState, wu-empty', standalone: true, imports: [NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-empty-state-host', '[attr.title]': 'null' }, template: "<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{:is(wu-empty-state,wu-emptyState,wu-empty){display:block}.wu-empty-state{display:flex;flex-direction:column;align-items:center;gap:var(--wu-empty-state-gap);padding:var(--wu-empty-state-padding);text-align:center;font-family:var(--wu-font-family)}.wu-empty-state-art,.wu-empty-state-image{display:block;width:var(--wu-empty-state-art-width);max-width:100%;height:auto;margin-bottom:.5rem}.wu-empty-state-image{object-fit:contain}.wu-empty-state-art{overflow:visible;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.wu-es-bg{fill:var(--wu-empty-state-art-bg);stroke:none}.wu-es-paper{fill:var(--wu-empty-state-art-paper);stroke:var(--wu-empty-state-art-line)}.wu-es-line{stroke:var(--wu-empty-state-art-line)}.wu-es-line-fill{fill:var(--wu-empty-state-art-line);stroke:none}.wu-es-soft{fill:var(--wu-empty-state-art-soft);stroke:none}.wu-es-tray{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-line)}.wu-es-lens{fill:var(--wu-empty-state-art-soft);stroke:var(--wu-empty-state-art-accent);stroke-width:3}.wu-es-accent{stroke:var(--wu-empty-state-art-accent)}.wu-es-thick{stroke-width:6}.wu-es-accent-fill{fill:var(--wu-empty-state-art-accent);stroke:none}.wu-es-danger{stroke:var(--wu-empty-state-art-danger);stroke-width:3.5}.wu-empty-state-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-empty-state-icon-box);height:var(--wu-empty-state-icon-box);margin-bottom:.5rem;border-radius:50%;background:var(--wu-empty-state-icon-bg);color:var(--wu-empty-state-icon-color);font-size:var(--wu-empty-state-icon-size);line-height:1}.wu-empty-state-title{margin:0;color:var(--wu-empty-state-title-color);font-size:var(--wu-empty-state-title-size);font-weight:var(--wu-empty-state-title-weight);line-height:var(--wu-line-height)}.wu-empty-state-description{margin:0;max-width:32rem;color:var(--wu-empty-state-description-color);font-size:var(--wu-empty-state-description-size);line-height:var(--wu-line-height)}.wu-empty-state-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--wu-empty-state-actions-gap);margin-top:.75rem}.wu-empty-state-actions:empty{display:none}.wu-empty-state-sm{padding:var(--wu-empty-state-sm-padding)}.wu-empty-state-sm :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-sm-width);margin-bottom:.25rem}.wu-empty-state-sm .wu-empty-state-icon{width:calc(var(--wu-empty-state-icon-box) * .75);height:calc(var(--wu-empty-state-icon-box) * .75);font-size:calc(var(--wu-empty-state-icon-size) * .8)}.wu-empty-state-sm .wu-empty-state-title{font-size:var(--wu-empty-state-description-size)}.wu-empty-state-sm .wu-empty-state-description{font-size:.875em}.wu-empty-state-sm .wu-empty-state-actions{margin-top:.375rem}.wu-empty-state-lg{padding:var(--wu-empty-state-lg-padding)}.wu-empty-state-lg :is(.wu-empty-state-art,.wu-empty-state-image){width:var(--wu-empty-state-art-lg-width)}.wu-empty-state-lg .wu-empty-state-title{font-size:calc(var(--wu-empty-state-title-size) * 1.25)}}\n"] }]
|
|
60
|
+
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], title: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], description: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}], icon: [{
|
|
67
|
+
type: Input
|
|
68
|
+
}], image: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], imageAlt: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], showImage: [{
|
|
73
|
+
type: Input
|
|
74
|
+
}], size: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}], styleClass: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], style: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}] } });
|
|
81
|
+
|
|
82
|
+
/** For NgModule apps. Standalone apps can import `WuEmptyState` directly. */
|
|
83
|
+
class WuEmptyStateModule {
|
|
84
|
+
}
|
|
85
|
+
WuEmptyStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
86
|
+
WuEmptyStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyStateModule, imports: [WuEmptyState], exports: [WuEmptyState] });
|
|
87
|
+
WuEmptyStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyStateModule, imports: [WuEmptyState] });
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyStateModule, decorators: [{
|
|
89
|
+
type: NgModule,
|
|
90
|
+
args: [{
|
|
91
|
+
imports: [WuEmptyState],
|
|
92
|
+
exports: [WuEmptyState],
|
|
93
|
+
}]
|
|
94
|
+
}] });
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Generated bundle index. Do not edit.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
export { WuEmptyState, WuEmptyStateModule };
|
|
101
|
+
//# sourceMappingURL=wirabyte-ui-emptystate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-emptystate.mjs","sources":["../../lib/emptystate/emptystate.component.ts","../../lib/emptystate/emptystate.component.html","../../lib/emptystate/emptystate.module.ts","../../lib/emptystate/wirabyte-ui-emptystate.ts"],"sourcesContent":["import { NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, inject, Input, OnDestroy, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig } from '@wirabyte/ui/config';\nimport { WuEmptyStateType } from '@wirabyte/ui/core';\n\nexport type { WuEmptyStateType };\nexport type WuEmptyStateSize = 'small' | 'normal' | 'large';\n\nconst TYPES: readonly WuEmptyStateType[] = ['nodata', 'search', 'inbox', 'folder', 'error', 'offline'];\n\n/**\n * What a list, table or page shows when there is nothing in it:\n * `<wu-empty-state type=\"search\"><wu-button label=\"ล้างตัวกรอง\" (onClick)=\"clear()\"></wu-button></wu-empty-state>`.\n * A drawing per `type` (no data, nothing found, empty inbox, empty folder, failed load, offline) in the theme's colours,\n * a title and a line under it in the app's language (both replaceable), and whatever is inside the tag as actions.\n * `icon` or `image` replace the drawing; `size=\"small\"` fits inside a table's empty row.\n */\n@Component({\n selector: 'wu-empty-state, wu-emptyState, wu-empty',\n standalone: true,\n imports: [NgClass, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault],\n templateUrl: './emptystate.component.html',\n styleUrls: ['./emptystate.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n // `title` is an input here: keep it off the host so the whole block gets no browser tooltip.\n host: { class: 'wu-empty-state-host', '[attr.title]': 'null' },\n})\nexport class WuEmptyState implements OnDestroy {\n /** Which drawing and default text. Default `'nodata'`. */\n @Input() set type(v: WuEmptyStateType | string | null | undefined) {\n this._type = TYPES.includes(v as WuEmptyStateType) ? (v as WuEmptyStateType) : 'nodata';\n }\n get type(): WuEmptyStateType {\n return this._type;\n }\n /** The title. Default: the locale's title for `type`; `''` shows none. */\n @Input() title?: string | null;\n /** The line under the title. Default: the locale's line for `type`; `''` shows none. */\n @Input() description?: string | null;\n /** An icon class (`'wi wi-users'`) in a soft circle, instead of the drawing. */\n @Input() icon?: string | null;\n /** A picture of your own instead of the drawing. */\n @Input() image?: string | null;\n @Input() imageAlt?: string | null;\n /** `false` leaves out the drawing (and icon / image). */\n @Input() showImage: boolean | string | null | undefined = true;\n /** `'small'` for inside tables and cards, `'large'` for a whole page. */\n @Input() size: WuEmptyStateSize | null | undefined = 'normal';\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n private _type: WuEmptyStateType = 'nodata';\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get titleText(): string {\n return this.title ?? this.config.translation.emptyState?.[this._type]?.title ?? '';\n }\n get descriptionText(): string {\n return this.description ?? this.config.translation.emptyState?.[this._type]?.description ?? '';\n }\n get pictured(): boolean {\n return this.showImage !== false && this.showImage !== 'false';\n }\n get sizeClass(): string {\n return this.size === 'small' ? 'wu-empty-state-sm' : this.size === 'large' ? 'wu-empty-state-lg' : '';\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n}\n","<div\n class=\"wu-empty-state\"\n [ngClass]=\"sizeClass\"\n [class]=\"styleClass || ''\"\n [style]=\"rootStyle\"\n [attr.data-type]=\"type\"\n>\n <ng-container *ngIf=\"pictured\">\n <img *ngIf=\"image; else drawn\" class=\"wu-empty-state-image\" [src]=\"image\" [attr.alt]=\"imageAlt || ''\" />\n <ng-template #drawn>\n <span *ngIf=\"icon; else art\" class=\"wu-empty-state-icon\" aria-hidden=\"true\"><i [ngClass]=\"icon\"></i></span>\n </ng-template>\n <ng-template #art>\n <svg class=\"wu-empty-state-art\" viewBox=\"0 0 160 120\" aria-hidden=\"true\" focusable=\"false\" [ngSwitch]=\"type\">\n <g *ngSwitchCase=\"'search'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"44\" ry=\"6\"></ellipse>\n <rect class=\"wu-es-paper\" x=\"42\" y=\"16\" width=\"58\" height=\"76\" rx=\"7\"></rect>\n <path class=\"wu-es-line\" d=\"M53 32h30M53 43h36M53 54h22\"></path>\n <circle class=\"wu-es-lens\" cx=\"102\" cy=\"72\" r=\"17\"></circle>\n <path class=\"wu-es-accent wu-es-thick\" d=\"m114.5 84.5 12 12\"></path>\n <path class=\"wu-es-accent\" d=\"M97.5 67.5a4.5 4.5 0 1 1 6.5 4c-1.6.9-2.5 2-2.5 3.5\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"101.5\" cy=\"80\" r=\"1.6\"></circle>\n </g>\n <g *ngSwitchCase=\"'inbox'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M36 66 52 38h56l16 28v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-tray\" d=\"M36 66h24l5 9h30l5-9h24v26a6 6 0 0 1-6 6H42a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 10v20m-8-8 8 8 8-8\"></path>\n </g>\n <g *ngSwitchCase=\"'folder'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"50\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M34 34a6 6 0 0 1 6-6h24l8 9h48a6 6 0 0 1 6 6v49a6 6 0 0 1-6 6H40a6 6 0 0 1-6-6z\"></path>\n <path class=\"wu-es-line\" d=\"M34 48h92\"></path>\n <circle class=\"wu-es-soft\" cx=\"80\" cy=\"72\" r=\"13\"></circle>\n <path class=\"wu-es-accent\" d=\"M80 66v12m-6-6h12\"></path>\n </g>\n <g *ngSwitchCase=\"'error'\">\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"104\" rx=\"46\" ry=\"6\"></ellipse>\n <path class=\"wu-es-paper\" d=\"M50 90h62a19 19 0 0 0 1.5-37.9A26 26 0 0 0 63 48.5 21 21 0 0 0 50 90z\"></path>\n <path class=\"wu-es-danger\" d=\"m72 62 16 16m0-16-16 16\"></path>\n </g>\n <g *ngSwitchCase=\"'offline'\">\n <circle class=\"wu-es-bg\" cx=\"80\" cy=\"64\" r=\"44\"></circle>\n <path class=\"wu-es-line\" d=\"M54.5 58.5a36 36 0 0 1 51 0M63 67a24 24 0 0 1 34 0M71.5 75.5a12 12 0 0 1 17 0\"></path>\n <circle class=\"wu-es-line-fill\" cx=\"80\" cy=\"84\" r=\"3.5\"></circle>\n <path class=\"wu-es-danger\" d=\"m52 40 56 58\"></path>\n </g>\n <g *ngSwitchDefault>\n <ellipse class=\"wu-es-bg\" cx=\"80\" cy=\"102\" rx=\"50\" ry=\"7\"></ellipse>\n <path class=\"wu-es-soft\" d=\"M44 54 80 42l36 12-36 12z\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54v36l36 12 36-12V54L80 66z\"></path>\n <path class=\"wu-es-line\" d=\"M80 66v36\"></path>\n <path class=\"wu-es-paper\" d=\"M44 54 31 42l36-12 13 12z\"></path>\n <path class=\"wu-es-paper\" d=\"m116 54 13-12-36-12-13 12z\"></path>\n <path class=\"wu-es-accent\" d=\"M80 12v12m-6-6h12\"></path>\n <circle class=\"wu-es-accent-fill\" cx=\"56\" cy=\"20\" r=\"2.5\"></circle>\n <circle class=\"wu-es-accent-fill\" cx=\"106\" cy=\"16\" r=\"2\"></circle>\n </g>\n </svg>\n </ng-template>\n </ng-container>\n <p *ngIf=\"titleText\" class=\"wu-empty-state-title\">{{ titleText }}</p>\n <p *ngIf=\"descriptionText\" class=\"wu-empty-state-description\">{{ descriptionText }}</p>\n <div class=\"wu-empty-state-actions\"><ng-content></ng-content></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuEmptyState } from './emptystate.component';\n\n/** For NgModule apps. Standalone apps can import `WuEmptyState` directly. */\n@NgModule({\n imports: [WuEmptyState],\n exports: [WuEmptyState],\n})\nexport class WuEmptyStateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAQA,MAAM,KAAK,GAAgC,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAEvG;;;;;;AAMG;MAYU,YAAY,CAAA;;IAEvB,IAAa,IAAI,CAAC,CAA+C,EAAA;AAC/D,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAqB,CAAC,GAAI,CAAsB,GAAG,QAAQ,CAAC;KACzF;AACD,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK,CA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A,CAAA;sBAAb,KAAK;gBAEG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBAEG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBAEG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBACG,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBAEG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBAEG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,UAAU,EAAA,CAAA;sBAAlB,KAAK;gBAEG,KAAK,EAAA,CAAA;sBAAb,KAAK;;;AEhDR;MAKa,kBAAkB,CAAA;;gHAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,OAAA,EAAA,CAHnB,YAAY,CAAA,EAAA,OAAA,EAAA,CACZ,YAAY,CAAA,EAAA,CAAA,CAAA;AAEX,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHnB,YAAY,CAAA,EAAA,CAAA,CAAA;4FAGX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,YAAY,CAAC;iBACxB,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { DOCUMENT, NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { EventEmitter, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
|
|
4
|
+
import { WuConfig, ɵrefreshOnTranslation, ɵassertSupportedAngular, ɵWU_SKIP_VERSION_CHECK } from '@wirabyte/ui/config';
|
|
5
|
+
import { httpErrorCode, httpErrorKind, TH_LOCALE, httpErrorTextKey, httpErrorActions } from '@wirabyte/ui/core';
|
|
6
|
+
|
|
7
|
+
/** The formal look's picture per kind: a 24 × 24 stroked icon. */
|
|
8
|
+
const ICONS = {
|
|
9
|
+
request: 'M7 3h7l5 5v13H7ZM14 3v5h5M10 13l4 4M14 13l-4 4',
|
|
10
|
+
auth: 'M10 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8ZM3 21v-1a6 6 0 0 1 9-5.2M16 15v-1.5a2 2 0 1 1 4 0V15M14.5 15h7v5.5h-7Z',
|
|
11
|
+
forbidden: 'M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6ZM9.5 12v-1.5a2.5 2.5 0 0 1 5 0V12M8.5 12h7v4.5h-7Z',
|
|
12
|
+
missing: 'M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM21 21l-5.2-5.2M8.5 8.5l4 4M12.5 8.5l-4 4',
|
|
13
|
+
time: 'M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18ZM12 7v5l3.5 2',
|
|
14
|
+
busy: 'M4 16a8 8 0 1 1 16 0M12 16l4.5-5M3 20h18',
|
|
15
|
+
server: 'M4 4h16v6H4ZM4 14h9v6H4ZM8 7h.01M8 17h.01M18.5 13.5l3 6h-6ZM18.5 16v1.2',
|
|
16
|
+
gateway: 'M9 3v4M15 3v4M7 7h10v4a5 5 0 0 1-10 0ZM12 16v5M3 3l18 18',
|
|
17
|
+
down: 'M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4Z',
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A page for an error status, ready to use: `<wu-error-page code="404"></wu-error-page>` or `look="kawaii"`. Any 4xx /
|
|
21
|
+
* 5xx code works: the common ones (400, 401, 403, 404, 405, 408, 409, 410, 413, 415, 422, 429, 500, 501, 502, 503, 504)
|
|
22
|
+
* have their own words in Thai and English, the rest read as a client or server error. The buttons fit the code (sign
|
|
23
|
+
* in for 401, try again for timeouts and 5xx, back and home otherwise); `[actions]` picks them, `(action)` hears them,
|
|
24
|
+
* elements marked `wuErrorAction` join them, and anything else inside goes in a box under them. `reference` shows an
|
|
25
|
+
* error id people can quote to support. `fullPage` fills the screen (a route's page).
|
|
26
|
+
*/
|
|
27
|
+
class WuErrorPage {
|
|
28
|
+
/** The HTTP status, 400–599 (`'404'` or `404`). Anything else shows 500. */
|
|
29
|
+
set code(v) {
|
|
30
|
+
this._code = httpErrorCode(v);
|
|
31
|
+
}
|
|
32
|
+
get code() {
|
|
33
|
+
return this._code;
|
|
34
|
+
}
|
|
35
|
+
/** `'formal'` (default) or `'kawaii'`. */
|
|
36
|
+
set look(v) {
|
|
37
|
+
this._look = v === 'kawaii' ? 'kawaii' : 'formal';
|
|
38
|
+
}
|
|
39
|
+
get look() {
|
|
40
|
+
return this._look;
|
|
41
|
+
}
|
|
42
|
+
/** Fill the screen's height, centred (the page of a route). */
|
|
43
|
+
set fullPage(v) {
|
|
44
|
+
this._full = v === '' || v === true || v === 'true';
|
|
45
|
+
}
|
|
46
|
+
get fullPage() {
|
|
47
|
+
return this._full;
|
|
48
|
+
}
|
|
49
|
+
constructor() {
|
|
50
|
+
/** Where the home button goes. Default `'/'`. */
|
|
51
|
+
this.homeLink = '/';
|
|
52
|
+
/** Where the sign-in button goes (401). Default `'/login'`. */
|
|
53
|
+
this.signInLink = '/login';
|
|
54
|
+
/** The title's heading level. Default 1. */
|
|
55
|
+
this.headingLevel = 1;
|
|
56
|
+
/** A built-in button was pressed (before its own step; `originalEvent.preventDefault()` stops that). */
|
|
57
|
+
this.action = new EventEmitter();
|
|
58
|
+
this._code = 404;
|
|
59
|
+
this._look = 'formal';
|
|
60
|
+
this._full = false;
|
|
61
|
+
this.config = inject(WuConfig);
|
|
62
|
+
this.doc = inject(DOCUMENT);
|
|
63
|
+
this.i18n = ɵrefreshOnTranslation();
|
|
64
|
+
ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));
|
|
65
|
+
}
|
|
66
|
+
ngOnDestroy() {
|
|
67
|
+
this.i18n.unsubscribe();
|
|
68
|
+
}
|
|
69
|
+
// ---------- what the template reads ----------
|
|
70
|
+
get kawaii() {
|
|
71
|
+
return this._look === 'kawaii';
|
|
72
|
+
}
|
|
73
|
+
get kind() {
|
|
74
|
+
return httpErrorKind(this._code);
|
|
75
|
+
}
|
|
76
|
+
get icon() {
|
|
77
|
+
return ICONS[this.kind];
|
|
78
|
+
}
|
|
79
|
+
/** The locale's words (an app's own translation without them falls back to Thai). */
|
|
80
|
+
get words() {
|
|
81
|
+
var _a;
|
|
82
|
+
return (_a = this.config.translation.errorPage) !== null && _a !== void 0 ? _a : TH_LOCALE.errorPage;
|
|
83
|
+
}
|
|
84
|
+
get text() {
|
|
85
|
+
const w = this.words;
|
|
86
|
+
return this.kawaii ? w.kawaii[this.kind] : w.codes[httpErrorTextKey(this._code, w.codes)];
|
|
87
|
+
}
|
|
88
|
+
get titleText() {
|
|
89
|
+
var _a, _b, _c;
|
|
90
|
+
return (_c = (_a = this.title) !== null && _a !== void 0 ? _a : (_b = this.text) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '';
|
|
91
|
+
}
|
|
92
|
+
get descriptionText() {
|
|
93
|
+
var _a, _b, _c;
|
|
94
|
+
return (_c = (_a = this.description) !== null && _a !== void 0 ? _a : (_b = this.text) === null || _b === void 0 ? void 0 : _b.description) !== null && _c !== void 0 ? _c : '';
|
|
95
|
+
}
|
|
96
|
+
get buttons() {
|
|
97
|
+
const own = this.actions;
|
|
98
|
+
if (own === false || own === 'false')
|
|
99
|
+
return [];
|
|
100
|
+
const list = Array.isArray(own) ? own : httpErrorActions(this._code);
|
|
101
|
+
const w = this.words;
|
|
102
|
+
return list
|
|
103
|
+
.filter((a) => (a === 'home' ? this.homeLink !== null : a === 'signIn' ? this.signInLink !== null : true))
|
|
104
|
+
.map((a) => ({
|
|
105
|
+
action: a,
|
|
106
|
+
label: a === 'home' ? w.home : a === 'back' ? w.back : a === 'retry' ? w.retry : w.signIn,
|
|
107
|
+
href: a === 'home' ? this.homeLink : a === 'signIn' ? this.signInLink : null,
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111
|
+
get rootStyle() {
|
|
112
|
+
return this.style && typeof this.style === 'object' ? this.style : null;
|
|
113
|
+
}
|
|
114
|
+
/** A button: tell the app, then (unless it said no) follow the link, go back or reload. */
|
|
115
|
+
run(action, event) {
|
|
116
|
+
this.action.emit({ action, originalEvent: event });
|
|
117
|
+
if (event.defaultPrevented)
|
|
118
|
+
return;
|
|
119
|
+
const win = this.doc.defaultView;
|
|
120
|
+
if (!win)
|
|
121
|
+
return;
|
|
122
|
+
if (action === 'back') {
|
|
123
|
+
event.preventDefault();
|
|
124
|
+
if (win.history.length > 1)
|
|
125
|
+
win.history.back();
|
|
126
|
+
else
|
|
127
|
+
win.location.assign(this.homeLink || '/');
|
|
128
|
+
}
|
|
129
|
+
else if (action === 'retry') {
|
|
130
|
+
event.preventDefault();
|
|
131
|
+
win.location.reload();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
WuErrorPage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuErrorPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
WuErrorPage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuErrorPage, isStandalone: true, selector: "wu-error-page, wu-errorPage", inputs: { code: "code", look: "look", title: "title", description: "description", reference: "reference", actions: "actions", homeLink: "homeLink", signInLink: "signInLink", fullPage: "fullPage", headingLevel: "headingLevel", styleClass: "styleClass", style: "style" }, outputs: { action: "action" }, host: { properties: { "attr.title": "null" }, classAttribute: "wu-error-page-host" }, ngImport: i0, template: "<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{wu-error-page,wu-errorPage{display:block}.wu-error-page{display:flex;flex-direction:column;align-items:center;gap:var(--wu-error-page-gap);padding:var(--wu-error-page-padding);text-align:center;font-family:var(--wu-font-family)}.wu-error-page-full{box-sizing:border-box;justify-content:center;min-height:100vh;min-height:100dvh}.wu-ep-art{display:flex;flex-direction:column;align-items:center;margin-bottom:.5rem}.wu-ep-badge{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-error-page-badge-size);height:var(--wu-error-page-badge-size);margin-bottom:1rem;border-radius:var(--wu-radius-lg);background:var(--wu-error-page-badge-bg);color:var(--wu-error-page-badge-color)}.wu-ep-badge svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-ep-label{color:var(--wu-error-page-label-color);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.wu-ep-code{background:linear-gradient(180deg,var(--wu-error-page-code-from),var(--wu-error-page-code-to));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:var(--wu-error-page-code-size);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.wu-ep-mascot{display:block;width:var(--wu-error-page-mascot-width);max-width:100%;height:auto;overflow:visible}.wu-ep-k-blob{fill:var(--wu-error-page-k-blob)}.wu-ep-k-spark{fill:var(--wu-error-page-k-spark);transform-box:fill-box;transform-origin:center;animation:wu-ep-twinkle 2.4s ease-in-out infinite}.wu-ep-k-spark-2{animation-delay:.8s}.wu-ep-k-spark-3{animation-delay:1.6s}.wu-ep-k-shadow{fill:var(--wu-error-page-k-ink);opacity:.12;transform-box:fill-box;transform-origin:center;animation:wu-ep-shadow 3s ease-in-out infinite}.wu-ep-k-bob{animation:wu-ep-bob 3s ease-in-out infinite}.wu-ep-k-body,.wu-ep-k-bubble{fill:var(--wu-error-page-k-body);stroke:var(--wu-error-page-k-ink);stroke-width:3.5;stroke-linejoin:round}.wu-ep-k-bubble{stroke-width:3}.wu-ep-k-blush{fill:var(--wu-error-page-k-blush)}.wu-ep-k-ink{fill:var(--wu-error-page-k-ink)}.wu-ep-k-shine{fill:#fff}.wu-ep-k-line{fill:none;stroke:var(--wu-error-page-k-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wu-ep-k-thin{stroke-width:2.5}.wu-ep-k-eyes{transform-box:fill-box;transform-origin:center;animation:wu-ep-blink 4.5s infinite}.wu-ep-k-sign{fill:var(--wu-error-page-k-sign)}.wu-ep-k-outline{stroke:var(--wu-error-page-k-ink);stroke-width:3}.wu-ep-k-code{fill:var(--wu-error-page-k-sign-text);font-family:var(--wu-font-family);font-size:25px;font-weight:800;letter-spacing:.02em}.wu-ep-k-mark{fill:var(--wu-error-page-k-sign);font-family:var(--wu-font-family);font-size:22px;font-weight:800}.wu-ep-k-small{font-size:15px}.wu-ep-k-drop{fill:var(--wu-error-page-k-drop);stroke:var(--wu-error-page-k-ink);stroke-width:2;animation:wu-ep-drip 1.6s ease-in infinite}.wu-ep-k-drop-2{animation-delay:.6s}.wu-ep-k-orbit{transform-box:view-box;transform-origin:130px 56px;animation:wu-ep-orbit 3.2s linear infinite}.wu-ep-k-snore{animation:wu-ep-snore 2.6s ease-in-out infinite}@keyframes wu-ep-bob{50%{transform:translateY(-5px)}}@keyframes wu-ep-shadow{50%{transform:scaleX(.86);opacity:.08}}@keyframes wu-ep-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes wu-ep-twinkle{50%{transform:scale(.55) rotate(20deg);opacity:.55}}@keyframes wu-ep-drip{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}to{transform:translateY(8px);opacity:0}}@keyframes wu-ep-orbit{to{transform:rotate(360deg)}}@keyframes wu-ep-snore{50%{transform:translate(4px,-5px);opacity:.6}}.wu-ep-title{margin:0;color:var(--wu-error-page-title-color);font-size:var(--wu-error-page-title-size);font-weight:var(--wu-error-page-title-weight);line-height:var(--wu-line-height)}.wu-ep-description{margin:0;max-width:34rem;color:var(--wu-error-page-description-color);line-height:var(--wu-line-height)}.wu-ep-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem}.wu-ep-actions:empty{display:none}.wu-ep-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1.125rem;border:1px solid var(--wu-error-page-button-border);border-radius:var(--wu-error-page-button-radius);background:var(--wu-error-page-button-bg);color:var(--wu-error-page-button-color);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition),transform var(--wu-transition)}.wu-ep-button:hover{background:var(--wu-hover-bg)}.wu-ep-button-main{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-ep-button-main:hover{background:var(--wu-primary-hover);border-color:var(--wu-primary-hover)}.wu-ep-button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-error-page-kawaii .wu-ep-button{border-radius:999px;box-shadow:0 3px 0 var(--wu-error-page-button-border)}.wu-error-page-kawaii .wu-ep-button-main{box-shadow:0 3px 0 var(--wu-error-page-k-button-shadow)}.wu-error-page-kawaii .wu-ep-button:active{transform:translateY(2px);box-shadow:none}.wu-ep-reference{margin:.5rem 0 0;color:var(--wu-error-page-description-color);font-size:.8125rem}.wu-ep-reference code{padding:.125rem .375rem;border-radius:var(--wu-radius-sm);background:var(--wu-hover-bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:all;user-select:all}.wu-ep-content{box-sizing:border-box;width:100%;max-width:36rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:var(--wu-radius-md);background:var(--wu-hover-bg);text-align:start}.wu-ep-content:empty{display:none}@media (prefers-reduced-motion: reduce){.wu-ep-k-spark,.wu-ep-k-shadow,.wu-ep-k-bob,.wu-ep-k-eyes,.wu-ep-k-drop,.wu-ep-k-orbit,.wu-ep-k-snore{animation:none}}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuErrorPage, decorators: [{
|
|
138
|
+
type: Component,
|
|
139
|
+
args: [{ selector: 'wu-error-page, wu-errorPage', standalone: true, imports: [NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'wu-error-page-host', '[attr.title]': 'null' }, template: "<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n", styles: ["@layer wiraui.components{wu-error-page,wu-errorPage{display:block}.wu-error-page{display:flex;flex-direction:column;align-items:center;gap:var(--wu-error-page-gap);padding:var(--wu-error-page-padding);text-align:center;font-family:var(--wu-font-family)}.wu-error-page-full{box-sizing:border-box;justify-content:center;min-height:100vh;min-height:100dvh}.wu-ep-art{display:flex;flex-direction:column;align-items:center;margin-bottom:.5rem}.wu-ep-badge{display:inline-flex;align-items:center;justify-content:center;width:var(--wu-error-page-badge-size);height:var(--wu-error-page-badge-size);margin-bottom:1rem;border-radius:var(--wu-radius-lg);background:var(--wu-error-page-badge-bg);color:var(--wu-error-page-badge-color)}.wu-ep-badge svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.wu-ep-label{color:var(--wu-error-page-label-color);font-size:.8125rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.wu-ep-code{background:linear-gradient(180deg,var(--wu-error-page-code-from),var(--wu-error-page-code-to));-webkit-background-clip:text;background-clip:text;color:transparent;font-size:var(--wu-error-page-code-size);font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1}.wu-ep-mascot{display:block;width:var(--wu-error-page-mascot-width);max-width:100%;height:auto;overflow:visible}.wu-ep-k-blob{fill:var(--wu-error-page-k-blob)}.wu-ep-k-spark{fill:var(--wu-error-page-k-spark);transform-box:fill-box;transform-origin:center;animation:wu-ep-twinkle 2.4s ease-in-out infinite}.wu-ep-k-spark-2{animation-delay:.8s}.wu-ep-k-spark-3{animation-delay:1.6s}.wu-ep-k-shadow{fill:var(--wu-error-page-k-ink);opacity:.12;transform-box:fill-box;transform-origin:center;animation:wu-ep-shadow 3s ease-in-out infinite}.wu-ep-k-bob{animation:wu-ep-bob 3s ease-in-out infinite}.wu-ep-k-body,.wu-ep-k-bubble{fill:var(--wu-error-page-k-body);stroke:var(--wu-error-page-k-ink);stroke-width:3.5;stroke-linejoin:round}.wu-ep-k-bubble{stroke-width:3}.wu-ep-k-blush{fill:var(--wu-error-page-k-blush)}.wu-ep-k-ink{fill:var(--wu-error-page-k-ink)}.wu-ep-k-shine{fill:#fff}.wu-ep-k-line{fill:none;stroke:var(--wu-error-page-k-ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wu-ep-k-thin{stroke-width:2.5}.wu-ep-k-eyes{transform-box:fill-box;transform-origin:center;animation:wu-ep-blink 4.5s infinite}.wu-ep-k-sign{fill:var(--wu-error-page-k-sign)}.wu-ep-k-outline{stroke:var(--wu-error-page-k-ink);stroke-width:3}.wu-ep-k-code{fill:var(--wu-error-page-k-sign-text);font-family:var(--wu-font-family);font-size:25px;font-weight:800;letter-spacing:.02em}.wu-ep-k-mark{fill:var(--wu-error-page-k-sign);font-family:var(--wu-font-family);font-size:22px;font-weight:800}.wu-ep-k-small{font-size:15px}.wu-ep-k-drop{fill:var(--wu-error-page-k-drop);stroke:var(--wu-error-page-k-ink);stroke-width:2;animation:wu-ep-drip 1.6s ease-in infinite}.wu-ep-k-drop-2{animation-delay:.6s}.wu-ep-k-orbit{transform-box:view-box;transform-origin:130px 56px;animation:wu-ep-orbit 3.2s linear infinite}.wu-ep-k-snore{animation:wu-ep-snore 2.6s ease-in-out infinite}@keyframes wu-ep-bob{50%{transform:translateY(-5px)}}@keyframes wu-ep-shadow{50%{transform:scaleX(.86);opacity:.08}}@keyframes wu-ep-blink{0%,92%,to{transform:scaleY(1)}95%{transform:scaleY(.1)}}@keyframes wu-ep-twinkle{50%{transform:scale(.55) rotate(20deg);opacity:.55}}@keyframes wu-ep-drip{0%{transform:translateY(-3px);opacity:0}30%{opacity:1}to{transform:translateY(8px);opacity:0}}@keyframes wu-ep-orbit{to{transform:rotate(360deg)}}@keyframes wu-ep-snore{50%{transform:translate(4px,-5px);opacity:.6}}.wu-ep-title{margin:0;color:var(--wu-error-page-title-color);font-size:var(--wu-error-page-title-size);font-weight:var(--wu-error-page-title-weight);line-height:var(--wu-line-height)}.wu-ep-description{margin:0;max-width:34rem;color:var(--wu-error-page-description-color);line-height:var(--wu-line-height)}.wu-ep-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem}.wu-ep-actions:empty{display:none}.wu-ep-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:.5rem 1.125rem;border:1px solid var(--wu-error-page-button-border);border-radius:var(--wu-error-page-button-radius);background:var(--wu-error-page-button-bg);color:var(--wu-error-page-button-color);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:background var(--wu-transition),border-color var(--wu-transition),transform var(--wu-transition)}.wu-ep-button:hover{background:var(--wu-hover-bg)}.wu-ep-button-main{border-color:var(--wu-primary-color);background:var(--wu-primary-color);color:var(--wu-primary-contrast)}.wu-ep-button-main:hover{background:var(--wu-primary-hover);border-color:var(--wu-primary-hover)}.wu-ep-button:focus-visible{outline:var(--wu-control-focus-outline);outline-offset:var(--wu-control-focus-offset);box-shadow:var(--wu-control-focus-shadow)}.wu-error-page-kawaii .wu-ep-button{border-radius:999px;box-shadow:0 3px 0 var(--wu-error-page-button-border)}.wu-error-page-kawaii .wu-ep-button-main{box-shadow:0 3px 0 var(--wu-error-page-k-button-shadow)}.wu-error-page-kawaii .wu-ep-button:active{transform:translateY(2px);box-shadow:none}.wu-ep-reference{margin:.5rem 0 0;color:var(--wu-error-page-description-color);font-size:.8125rem}.wu-ep-reference code{padding:.125rem .375rem;border-radius:var(--wu-radius-sm);background:var(--wu-hover-bg);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-user-select:all;user-select:all}.wu-ep-content{box-sizing:border-box;width:100%;max-width:36rem;margin-top:1rem;padding:1rem 1.25rem;border-radius:var(--wu-radius-md);background:var(--wu-hover-bg);text-align:start}.wu-ep-content:empty{display:none}@media (prefers-reduced-motion: reduce){.wu-ep-k-spark,.wu-ep-k-shadow,.wu-ep-k-bob,.wu-ep-k-eyes,.wu-ep-k-drop,.wu-ep-k-orbit,.wu-ep-k-snore{animation:none}}}\n"] }]
|
|
140
|
+
}], ctorParameters: function () { return []; }, propDecorators: { code: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], look: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], title: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], description: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], reference: [{
|
|
149
|
+
type: Input
|
|
150
|
+
}], actions: [{
|
|
151
|
+
type: Input
|
|
152
|
+
}], homeLink: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], signInLink: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], fullPage: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], headingLevel: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], styleClass: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], style: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], action: [{
|
|
165
|
+
type: Output
|
|
166
|
+
}] } });
|
|
167
|
+
|
|
168
|
+
/** For NgModule apps. Standalone apps can import `WuErrorPage` directly. */
|
|
169
|
+
class WuErrorPageModule {
|
|
170
|
+
}
|
|
171
|
+
WuErrorPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuErrorPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
172
|
+
WuErrorPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: WuErrorPageModule, imports: [WuErrorPage], exports: [WuErrorPage] });
|
|
173
|
+
WuErrorPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuErrorPageModule, imports: [WuErrorPage] });
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuErrorPageModule, decorators: [{
|
|
175
|
+
type: NgModule,
|
|
176
|
+
args: [{
|
|
177
|
+
imports: [WuErrorPage],
|
|
178
|
+
exports: [WuErrorPage],
|
|
179
|
+
}]
|
|
180
|
+
}] });
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Generated bundle index. Do not edit.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
export { WuErrorPage, WuErrorPageModule };
|
|
187
|
+
//# sourceMappingURL=wirabyte-ui-errorpage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-errorpage.mjs","sources":["../../lib/errorpage/errorpage.component.ts","../../lib/errorpage/errorpage.component.html","../../lib/errorpage/errorpage.module.ts","../../lib/errorpage/wirabyte-ui-errorpage.ts"],"sourcesContent":["import { DOCUMENT, NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, OnDestroy, Output, ViewEncapsulation } from '@angular/core';\nimport { ɵassertSupportedAngular, ɵrefreshOnTranslation, ɵWU_SKIP_VERSION_CHECK, WuConfig } from '@wirabyte/ui/config';\nimport { httpErrorActions, httpErrorCode, httpErrorKind, httpErrorTextKey, TH_LOCALE, WuErrorAction, WuErrorKind } from '@wirabyte/ui/core';\n\nexport type { WuErrorAction, WuErrorKind };\n\n/** `'formal'` (default): a clean, plain page. `'kawaii'`: a little character holding up the code, and friendlier words. */\nexport type WuErrorPageLook = 'formal' | 'kawaii';\n\n/** `(action)`: a built-in button was pressed. `originalEvent.preventDefault()` stops its own step (to route instead). */\nexport interface WuErrorPageActionEvent {\n action: WuErrorAction;\n originalEvent: Event;\n}\n\n/** The formal look's picture per kind: a 24 × 24 stroked icon. */\nconst ICONS: Record<WuErrorKind, string> = {\n request: 'M7 3h7l5 5v13H7ZM14 3v5h5M10 13l4 4M14 13l-4 4',\n auth: 'M10 3a4 4 0 1 1 0 8 4 4 0 0 1 0-8ZM3 21v-1a6 6 0 0 1 9-5.2M16 15v-1.5a2 2 0 1 1 4 0V15M14.5 15h7v5.5h-7Z',\n forbidden: 'M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6ZM9.5 12v-1.5a2.5 2.5 0 0 1 5 0V12M8.5 12h7v4.5h-7Z',\n missing: 'M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15ZM21 21l-5.2-5.2M8.5 8.5l4 4M12.5 8.5l-4 4',\n time: 'M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18ZM12 7v5l3.5 2',\n busy: 'M4 16a8 8 0 1 1 16 0M12 16l4.5-5M3 20h18',\n server: 'M4 4h16v6H4ZM4 14h9v6H4ZM8 7h.01M8 17h.01M18.5 13.5l3 6h-6ZM18.5 16v1.2',\n gateway: 'M9 3v4M15 3v4M7 7h10v4a5 5 0 0 1-10 0ZM12 16v5M3 3l18 18',\n down: 'M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.6 2.6-2.4-.6-.6-2.4Z',\n};\n\n/**\n * A page for an error status, ready to use: `<wu-error-page code=\"404\"></wu-error-page>` or `look=\"kawaii\"`. Any 4xx /\n * 5xx code works: the common ones (400, 401, 403, 404, 405, 408, 409, 410, 413, 415, 422, 429, 500, 501, 502, 503, 504)\n * have their own words in Thai and English, the rest read as a client or server error. The buttons fit the code (sign\n * in for 401, try again for timeouts and 5xx, back and home otherwise); `[actions]` picks them, `(action)` hears them,\n * elements marked `wuErrorAction` join them, and anything else inside goes in a box under them. `reference` shows an\n * error id people can quote to support. `fullPage` fills the screen (a route's page).\n */\n@Component({\n selector: 'wu-error-page, wu-errorPage',\n standalone: true,\n imports: [NgFor, NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault],\n templateUrl: './errorpage.component.html',\n styleUrls: ['./errorpage.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n // `title` is an input here: keep it off the host so the page gets no browser tooltip.\n host: { class: 'wu-error-page-host', '[attr.title]': 'null' },\n})\nexport class WuErrorPage implements OnDestroy {\n /** The HTTP status, 400–599 (`'404'` or `404`). Anything else shows 500. */\n @Input() set code(v: number | string | null | undefined) {\n this._code = httpErrorCode(v);\n }\n get code(): number {\n return this._code;\n }\n /** `'formal'` (default) or `'kawaii'`. */\n @Input() set look(v: WuErrorPageLook | string | null | undefined) {\n this._look = v === 'kawaii' ? 'kawaii' : 'formal';\n }\n get look(): WuErrorPageLook {\n return this._look;\n }\n /** Default: the locale's words for the code (kawaii: for its kind). */\n @Input() title?: string | null;\n @Input() description?: string | null;\n /** An error or request id to quote to support, shown small under the buttons. */\n @Input() reference?: string | null;\n /** Built-in buttons, the main one first: `['retry', 'home']`; `false` for none. Default: what fits the code. */\n @Input() actions?: WuErrorAction[] | boolean | string | null;\n /** Where the home button goes. Default `'/'`. */\n @Input() homeLink: string | null = '/';\n /** Where the sign-in button goes (401). Default `'/login'`. */\n @Input() signInLink: string | null = '/login';\n /** Fill the screen's height, centred (the page of a route). */\n @Input() set fullPage(v: boolean | string | null | undefined) {\n this._full = v === '' || v === true || v === 'true';\n }\n get fullPage(): boolean {\n return this._full;\n }\n /** The title's heading level. Default 1. */\n @Input() headingLevel: number | string = 1;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | string | null;\n\n /** A built-in button was pressed (before its own step; `originalEvent.preventDefault()` stops that). */\n @Output() action = new EventEmitter<WuErrorPageActionEvent>();\n\n private _code = 404;\n private _look: WuErrorPageLook = 'formal';\n private _full = false;\n private readonly config = inject(WuConfig);\n private readonly doc = inject(DOCUMENT);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n }\n\n // ---------- what the template reads ----------\n\n get kawaii(): boolean {\n return this._look === 'kawaii';\n }\n get kind(): WuErrorKind {\n return httpErrorKind(this._code);\n }\n get icon(): string {\n return ICONS[this.kind];\n }\n /** The locale's words (an app's own translation without them falls back to Thai). */\n get words(): (typeof TH_LOCALE)['errorPage'] {\n return this.config.translation.errorPage ?? TH_LOCALE.errorPage;\n }\n private get text(): { title: string; description: string } {\n const w = this.words;\n return this.kawaii ? w.kawaii[this.kind] : w.codes[httpErrorTextKey(this._code, w.codes)];\n }\n get titleText(): string {\n return this.title ?? this.text?.title ?? '';\n }\n get descriptionText(): string {\n return this.description ?? this.text?.description ?? '';\n }\n get buttons(): { action: WuErrorAction; label: string; href: string | null }[] {\n const own = this.actions;\n if (own === false || own === 'false') return [];\n const list = Array.isArray(own) ? own : httpErrorActions(this._code);\n const w = this.words;\n return list\n .filter((a) => (a === 'home' ? this.homeLink !== null : a === 'signIn' ? this.signInLink !== null : true))\n .map((a) => ({\n action: a,\n label: a === 'home' ? w.home : a === 'back' ? w.back : a === 'retry' ? w.retry : w.signIn,\n href: a === 'home' ? this.homeLink : a === 'signIn' ? this.signInLink : null,\n }));\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n get rootStyle(): Record<string, any> | null {\n return this.style && typeof this.style === 'object' ? this.style : null;\n }\n\n /** A button: tell the app, then (unless it said no) follow the link, go back or reload. */\n run(action: WuErrorAction, event: Event): void {\n this.action.emit({ action, originalEvent: event });\n if (event.defaultPrevented) return;\n const win = this.doc.defaultView;\n if (!win) return;\n if (action === 'back') {\n event.preventDefault();\n if (win.history.length > 1) win.history.back();\n else win.location.assign(this.homeLink || '/');\n } else if (action === 'retry') {\n event.preventDefault();\n win.location.reload();\n }\n }\n}\n","<div\n class=\"wu-error-page\"\n [class]=\"styleClass || ''\"\n [class.wu-error-page-kawaii]=\"kawaii\"\n [class.wu-error-page-formal]=\"!kawaii\"\n [class.wu-error-page-full]=\"fullPage\"\n [style]=\"rootStyle\"\n [attr.data-code]=\"code\"\n [attr.data-kind]=\"kind\"\n>\n <div class=\"wu-ep-art\" aria-hidden=\"true\">\n <ng-container *ngIf=\"!kawaii; else cute\">\n <span class=\"wu-ep-badge\">\n <svg viewBox=\"0 0 24 24\" focusable=\"false\"><path [attr.d]=\"icon\"></path></svg>\n </span>\n <span class=\"wu-ep-label\">{{ words.error }}</span>\n <span class=\"wu-ep-code\">{{ code }}</span>\n </ng-container>\n <ng-template #cute>\n <svg class=\"wu-ep-mascot\" viewBox=\"0 0 260 220\" focusable=\"false\">\n <path class=\"wu-ep-k-blob\" d=\"M44 118C38 62 86 24 138 28s94 42 88 96-50 76-100 74S50 172 44 118Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M44 43Q44 52 53 52Q44 52 44 61Q44 52 35 52Q44 52 44 43Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M222 143Q222 150 229 150Q222 150 222 157Q222 150 215 150Q222 150 222 143Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-3\" d=\"M210 32Q210 38 216 38Q210 38 210 44Q210 38 204 38Q210 38 210 32Z\"></path>\n <path class=\"wu-ep-k-spark wu-ep-k-spark-2\" d=\"M34 162Q34 168 40 168Q34 168 34 174Q34 168 28 168Q34 168 34 162Z\"></path>\n <ellipse class=\"wu-ep-k-shadow\" cx=\"130\" cy=\"204\" rx=\"58\" ry=\"7\"></ellipse>\n <g class=\"wu-ep-k-bob\">\n <path class=\"wu-ep-k-body\" d=\"M88 96 92 64 116 84ZM172 96 168 64 144 84Z\"></path>\n <path class=\"wu-ep-k-blush\" d=\"M95 88 97 72 109 83ZM165 88 163 72 151 83Z\"></path>\n <path class=\"wu-ep-k-body\" d=\"M66 150C66 104 96 76 130 76s64 28 64 74c0 26-28 36-64 36s-64-10-64-36Z\"></path>\n <ellipse class=\"wu-ep-k-blush\" cx=\"100\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ellipse class=\"wu-ep-k-blush\" cx=\"160\" cy=\"134\" rx=\"9\" ry=\"5.5\"></ellipse>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\">\n <path d=\"M110 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n <path d=\"M150 118m-1.5 0a1.5 1.5 0 1 1 3 0a3 3 0 1 1-6 0a4.5 4.5 0 1 1 9 0a6 6 0 1 1-12 0\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'time'\" class=\"wu-ep-k-line\">\n <path d=\"M102 119q8 7 16 0M142 119q8 7 16 0\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-line\">\n <path d=\"M104 112l9 6-9 6M156 112l-9 6 9 6\"></path>\n </g>\n <g *ngSwitchDefault class=\"wu-ep-k-eyes\">\n <circle class=\"wu-ep-k-ink\" cx=\"110\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-ink\" cx=\"150\" cy=\"118\" r=\"6.5\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"112.5\" cy=\"115.5\" r=\"2.2\"></circle>\n <circle class=\"wu-ep-k-shine\" cx=\"152.5\" cy=\"115.5\" r=\"2.2\"></circle>\n </g>\n </ng-container>\n <ng-container [ngSwitch]=\"kind\">\n <circle *ngSwitchCase=\"'missing'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"4\"></circle>\n <circle *ngSwitchCase=\"'time'\" class=\"wu-ep-k-ink\" cx=\"130\" cy=\"137\" r=\"3.5\"></circle>\n <path *ngSwitchCase=\"'server'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'gateway'\" class=\"wu-ep-k-line\" d=\"M120 137q5-5 10 0t10 0\"></path>\n <path *ngSwitchCase=\"'forbidden'\" class=\"wu-ep-k-line\" d=\"M123 137h14\"></path>\n <path *ngSwitchCase=\"'busy'\" class=\"wu-ep-k-ink\" d=\"M123 133q7 12 14 0Z\"></path>\n <path *ngSwitchCase=\"'down'\" class=\"wu-ep-k-line\" d=\"M125 136q5 4 10 0\"></path>\n <path *ngSwitchDefault class=\"wu-ep-k-line\" d=\"M122 134q4 5 8 0q4 5 8 0\"></path>\n </ng-container>\n <rect class=\"wu-ep-k-sign\" x=\"90\" y=\"146\" width=\"80\" height=\"40\" rx=\"12\"></rect>\n <text class=\"wu-ep-k-code\" x=\"130\" y=\"174\" text-anchor=\"middle\">{{ code }}</text>\n <circle class=\"wu-ep-k-body\" cx=\"92\" cy=\"158\" r=\"8\"></circle>\n <circle class=\"wu-ep-k-body\" cx=\"168\" cy=\"158\" r=\"8\"></circle>\n <ng-container [ngSwitch]=\"kind\">\n <g *ngSwitchCase=\"'missing'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">?</text>\n </g>\n <g *ngSwitchCase=\"'request'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"72\" r=\"17\"></circle>\n <text class=\"wu-ep-k-mark\" x=\"206\" y=\"80\" text-anchor=\"middle\">!</text>\n </g>\n <g *ngSwitchCase=\"'auth'\">\n <rect class=\"wu-ep-k-bubble\" x=\"186\" y=\"58\" width=\"38\" height=\"28\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-blush\" cx=\"197\" cy=\"69\" r=\"4.5\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 67h12M206 75h8\"></path>\n </g>\n <g *ngSwitchCase=\"'forbidden'\">\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M101 105l14 5M159 105l-14 5\"></path>\n <path class=\"wu-ep-k-line\" d=\"M198 74v-6a8 8 0 0 1 16 0v6\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"191\" y=\"72\" width=\"30\" height=\"24\" rx=\"6\"></rect>\n <circle class=\"wu-ep-k-shine\" cx=\"206\" cy=\"83\" r=\"3.2\"></circle>\n </g>\n <g *ngSwitchCase=\"'time'\">\n <circle class=\"wu-ep-k-bubble\" cx=\"206\" cy=\"70\" r=\"17\"></circle>\n <path class=\"wu-ep-k-line wu-ep-k-thin\" d=\"M206 70v-9M206 70l6 4\"></path>\n </g>\n <g *ngSwitchCase=\"'busy'\">\n <path class=\"wu-ep-k-drop\" d=\"M188 86c4 6 6 9 6 12a6 6 0 0 1-12 0c0-3 2-6 6-12Z\"></path>\n <path class=\"wu-ep-k-drop wu-ep-k-drop-2\" d=\"M70 98c3 4.5 4.5 7 4.5 9a4.5 4.5 0 0 1-9 0c0-2 1.5-4.5 4.5-9Z\"></path>\n </g>\n <g *ngSwitchCase=\"'server'\" class=\"wu-ep-k-orbit\">\n <path class=\"wu-ep-k-spark\" d=\"M98 56Q98 62 104 62Q98 62 98 68Q98 62 92 62Q98 62 98 56Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M162 52Q162 58 168 58Q162 58 162 64Q162 58 156 58Q162 58 162 52Z\"></path>\n <path class=\"wu-ep-k-spark\" d=\"M130 40Q130 45 135 45Q130 45 130 50Q130 45 125 45Q130 45 130 40Z\"></path>\n </g>\n <g *ngSwitchCase=\"'gateway'\">\n <path class=\"wu-ep-k-line\" d=\"M176 156c22-4 26-34 20-52\"></path>\n <rect class=\"wu-ep-k-sign wu-ep-k-outline\" x=\"186\" y=\"86\" width=\"22\" height=\"18\" rx=\"5\"></rect>\n <path class=\"wu-ep-k-line\" d=\"M192 86v-8M202 86v-8\"></path>\n </g>\n <g *ngSwitchCase=\"'down'\" class=\"wu-ep-k-snore\">\n <text class=\"wu-ep-k-mark\" x=\"196\" y=\"78\">Z</text>\n <text class=\"wu-ep-k-mark wu-ep-k-small\" x=\"214\" y=\"58\">z</text>\n </g>\n </ng-container>\n </g>\n </svg>\n </ng-template>\n </div>\n <div class=\"wu-ep-title\" role=\"heading\" [attr.aria-level]=\"headingLevel\">{{ titleText }}</div>\n <p *ngIf=\"descriptionText\" class=\"wu-ep-description\">{{ descriptionText }}</p>\n <div class=\"wu-ep-actions\">\n <ng-container *ngFor=\"let b of buttons; let first = first\">\n <a *ngIf=\"b.href !== null; else plain\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.href]=\"b.href\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</a>\n <ng-template #plain>\n <button type=\"button\" class=\"wu-ep-button\" [class.wu-ep-button-main]=\"first\" [attr.data-action]=\"b.action\" (click)=\"run(b.action, $event)\">{{ b.label }}</button>\n </ng-template>\n </ng-container>\n <ng-content select=\"[wuErrorAction]\"></ng-content>\n </div>\n <p *ngIf=\"reference\" class=\"wu-ep-reference\">\n {{ words.reference }} <code>{{ reference }}</code>\n </p>\n <div class=\"wu-ep-content\"><ng-content></ng-content></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { WuErrorPage } from './errorpage.component';\n\n/** For NgModule apps. Standalone apps can import `WuErrorPage` directly. */\n@NgModule({\n imports: [WuErrorPage],\n exports: [WuErrorPage],\n})\nexport class WuErrorPageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAgBA;AACA,MAAM,KAAK,GAAgC;AACzC,IAAA,OAAO,EAAE,gDAAgD;AACzD,IAAA,IAAI,EAAE,0GAA0G;AAChH,IAAA,SAAS,EAAE,kGAAkG;AAC7G,IAAA,OAAO,EAAE,yFAAyF;AAClG,IAAA,IAAI,EAAE,mDAAmD;AACzD,IAAA,IAAI,EAAE,0CAA0C;AAChD,IAAA,MAAM,EAAE,yEAAyE;AACjF,IAAA,OAAO,EAAE,0DAA0D;AACnE,IAAA,IAAI,EAAE,wFAAwF;CAC/F,CAAC;AAEF;;;;;;;AAOG;MAYU,WAAW,CAAA;;IAEtB,IAAa,IAAI,CAAC,CAAqC,EAAA;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,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHlB,WAAW,CAAA,EAAA,CAAA,CAAA;4FAGV,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,WAAW,CAAC;oBACtB,OAAO,EAAE,CAAC,WAAW,CAAC;iBACvB,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __awaiter, __rest } from 'tslib';
|
|
2
|
+
import { buildExcel, EXCEL_MIME, excelSheetFromRows } from '@wirabyte/ui/core';
|
|
3
|
+
export { EXCEL_MIME, buildExcel, buildExcelSync, excelColor, excelColumnName, excelDateNumber, excelParseRange, excelParseRef, excelParts, excelRef, excelSheetFromRows, mergeExcelStyles } from '@wirabyte/ui/core';
|
|
4
|
+
|
|
5
|
+
/** The workbook (or one sheet) as a Blob, to upload or attach. */
|
|
6
|
+
function excelBlob(source) {
|
|
7
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
const bytes = yield buildExcel(source);
|
|
9
|
+
return new Blob([bytes], { type: EXCEL_MIME });
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Builds the workbook (or one sheet) and saves it as `<fileName>.xlsx`:
|
|
14
|
+
* `downloadExcel({ rows: [['ชื่อ', 'คะแนน'], ['วิระ', 18]] }, { fileName: 'scores' })`.
|
|
15
|
+
*/
|
|
16
|
+
function downloadExcel(source, options = {}) {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
const o = typeof options === 'string' ? { fileName: options } : options;
|
|
20
|
+
const doc = (_a = o.document) !== null && _a !== void 0 ? _a : (typeof document === 'undefined' ? null : document);
|
|
21
|
+
const win = doc === null || doc === void 0 ? void 0 : doc.defaultView;
|
|
22
|
+
if (!doc || !((_b = win === null || win === void 0 ? void 0 : win.URL) === null || _b === void 0 ? void 0 : _b.createObjectURL))
|
|
23
|
+
return;
|
|
24
|
+
const url = win.URL.createObjectURL(yield excelBlob(source));
|
|
25
|
+
const a = doc.createElement('a');
|
|
26
|
+
a.href = url;
|
|
27
|
+
a.download = `${o.fileName || 'download'}.xlsx`;
|
|
28
|
+
a.style.display = 'none';
|
|
29
|
+
doc.body.appendChild(a);
|
|
30
|
+
a.click();
|
|
31
|
+
a.remove();
|
|
32
|
+
setTimeout(() => win.URL.revokeObjectURL(url), 0);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Rows of objects straight to a styled report file (title, bold header with filters, borders, totals …):
|
|
37
|
+
* `downloadRowsAsExcel(students, [{ field: 'name', header: 'ชื่อ' }, { field: 'score', header: 'คะแนน' }], { title: 'คะแนนสอบ', totals: { score: 'average' } }, 'scores')`.
|
|
38
|
+
*/
|
|
39
|
+
function downloadRowsAsExcel(rows, columns, options = {}, download = {}) {
|
|
40
|
+
const { fontName, fontSize, calendar } = options, sheet = __rest(options, ["fontName", "fontSize", "calendar"]);
|
|
41
|
+
return downloadExcel({ sheets: [excelSheetFromRows(rows, columns, sheet)], fontName, fontSize, calendar }, download);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Generated bundle index. Do not edit.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
export { downloadExcel, downloadRowsAsExcel, excelBlob };
|
|
49
|
+
//# sourceMappingURL=wirabyte-ui-excel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-excel.mjs","sources":["../../lib/excel/excel.ts","../../lib/excel/wirabyte-ui-excel.ts"],"sourcesContent":["import { buildExcel, EXCEL_MIME, ExcelSheet, excelSheetFromRows, ExcelTableColumn, ExcelTableOptions, ExcelWorkbook } from '@wirabyte/ui/core';\n\n/** `downloadExcel()` options besides the workbook. */\nexport interface WuExcelDownloadOptions {\n /** File name without `.xlsx`. Default `download`. */\n fileName?: string;\n /** The document to save through (server rendering: nothing is saved). Default the global `document`. */\n document?: Document;\n}\n\n/** The workbook (or one sheet) as a Blob, to upload or attach. */\nexport async function excelBlob(source: ExcelWorkbook | ExcelSheet): Promise<Blob> {\n const bytes = await buildExcel(source);\n return new Blob([bytes as BlobPart], { type: EXCEL_MIME });\n}\n\n/**\n * Builds the workbook (or one sheet) and saves it as `<fileName>.xlsx`:\n * `downloadExcel({ rows: [['ชื่อ', 'คะแนน'], ['วิระ', 18]] }, { fileName: 'scores' })`.\n */\nexport async function downloadExcel(source: ExcelWorkbook | ExcelSheet, options: WuExcelDownloadOptions | string = {}): Promise<void> {\n const o = typeof options === 'string' ? { fileName: options } : options;\n const doc = o.document ?? (typeof document === 'undefined' ? null : document);\n const win = doc?.defaultView;\n if (!doc || !win?.URL?.createObjectURL) return;\n const url = win.URL.createObjectURL(await excelBlob(source));\n const a = doc.createElement('a');\n a.href = url;\n a.download = `${o.fileName || 'download'}.xlsx`;\n a.style.display = 'none';\n doc.body.appendChild(a);\n a.click();\n a.remove();\n setTimeout(() => win.URL.revokeObjectURL(url), 0);\n}\n\n/**\n * Rows of objects straight to a styled report file (title, bold header with filters, borders, totals …):\n * `downloadRowsAsExcel(students, [{ field: 'name', header: 'ชื่อ' }, { field: 'score', header: 'คะแนน' }], { title: 'คะแนนสอบ', totals: { score: 'average' } }, 'scores')`.\n */\nexport function downloadRowsAsExcel<T = unknown>(\n rows: readonly T[],\n columns: readonly ExcelTableColumn[],\n options: ExcelTableOptions<T> & { fontName?: string; fontSize?: number; calendar?: 'gregorian' | 'buddhist' } = {},\n download: WuExcelDownloadOptions | string = {}\n): Promise<void> {\n const { fontName, fontSize, calendar, ...sheet } = options;\n return downloadExcel({ sheets: [excelSheetFromRows(rows, columns, sheet)], fontName, fontSize, calendar }, download);\n}\n","/**\n * Gener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