@wirabyte/ui 1.0.0-beta.0 → 1.1.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 +42 -0
- package/README.md +6 -6
- package/avatar/avatar.component.d.ts +4 -2
- package/avatar/avatar.types.d.ts +3 -0
- package/breadcrumb/breadcrumb.component.d.ts +3 -1
- package/button/button.styles.d.ts +1 -1
- package/chat/chat.component.d.ts +118 -0
- package/chat/chat.module.d.ts +8 -0
- package/chat/chat.types.d.ts +64 -0
- package/chat/index.d.ts +5 -0
- package/chat/public-api.d.ts +3 -0
- package/config/options.d.ts +13 -0
- package/config/theme.service.d.ts +5 -0
- package/config/wu-config.service.d.ts +16 -0
- package/core/catalog.d.ts +6 -1
- package/core/overrides.d.ts +7 -0
- package/core/thai/locale.d.ts +47 -0
- package/datepicker/datepicker.component.d.ts +3 -2
- package/descriptions/descriptions.component.d.ts +56 -0
- package/descriptions/descriptions.module.d.ts +8 -0
- package/descriptions/index.d.ts +5 -0
- package/descriptions/public-api.d.ts +2 -0
- package/esm2020/accordion/accordion.component.mjs +4 -4
- package/esm2020/alert/alert-dialog.component.mjs +3 -3
- package/esm2020/asidemenu/asidemenu.component.mjs +3 -3
- package/esm2020/avatar/avatar.component.mjs +10 -5
- package/esm2020/avatar/avatar.types.mjs +2 -2
- package/esm2020/breadcrumb/breadcrumb.component.mjs +5 -3
- package/esm2020/button/button.component.mjs +3 -3
- package/esm2020/button/button.styles.mjs +2 -2
- package/esm2020/card/card.component.mjs +8 -8
- package/esm2020/chat/chat.component.mjs +370 -0
- package/esm2020/chat/chat.module.mjs +17 -0
- package/esm2020/chat/chat.types.mjs +2 -0
- package/esm2020/chat/public-api.mjs +4 -0
- package/esm2020/chat/wirabyte-ui-chat.mjs +5 -0
- package/esm2020/config/options.mjs +1 -1
- package/esm2020/config/theme.service.mjs +35 -3
- package/esm2020/config/wu-config.service.mjs +22 -1
- package/esm2020/core/catalog.mjs +22 -2
- package/esm2020/core/families.mjs +43 -1
- package/esm2020/core/overrides.mjs +26 -1
- package/esm2020/core/thai/locale.mjs +67 -1
- package/esm2020/datepicker/datepicker.component.mjs +5 -4
- package/esm2020/descriptions/descriptions.component.mjs +112 -0
- package/esm2020/descriptions/descriptions.module.mjs +17 -0
- package/esm2020/descriptions/public-api.mjs +3 -0
- package/esm2020/descriptions/wirabyte-ui-descriptions.mjs +5 -0
- package/esm2020/dialog/dialog.component.mjs +3 -3
- package/esm2020/drawer/drawer.component.mjs +3 -3
- package/esm2020/emptystate/emptystate.component.mjs +3 -3
- package/esm2020/errorpage/errorpage.component.mjs +3 -3
- package/esm2020/fieldset/fieldset.component.mjs +4 -4
- package/esm2020/metergroup/metergroup.component.mjs +29 -5
- package/esm2020/metergroup/metergroup.types.mjs +1 -1
- package/esm2020/navbar/navbar.component.mjs +3 -3
- package/esm2020/panel/panel.component.mjs +6 -6
- package/esm2020/popover/popover.base.mjs +3 -3
- package/esm2020/result/result.component.mjs +3 -3
- package/esm2020/scheduler/public-api.mjs +4 -0
- package/esm2020/scheduler/scheduler.component.mjs +484 -0
- package/esm2020/scheduler/scheduler.module.mjs +17 -0
- package/esm2020/scheduler/scheduler.types.mjs +2 -0
- package/esm2020/scheduler/wirabyte-ui-scheduler.mjs +5 -0
- package/esm2020/selectbutton/selectbutton.component.mjs +23 -5
- package/esm2020/signaturepad/public-api.mjs +3 -0
- package/esm2020/signaturepad/signaturepad.component.mjs +289 -0
- package/esm2020/signaturepad/signaturepad.module.mjs +17 -0
- package/esm2020/signaturepad/wirabyte-ui-signaturepad.mjs +5 -0
- package/esm2020/sitefooter/sitefooter.component.mjs +2 -2
- package/esm2020/stat/public-api.mjs +3 -0
- package/esm2020/stat/stat.component.mjs +128 -0
- package/esm2020/stat/stat.module.mjs +17 -0
- package/esm2020/stat/wirabyte-ui-stat.mjs +5 -0
- package/esm2020/table/table.celleditor.mjs +4 -4
- package/esm2020/tabs/tabs.component.mjs +3 -3
- package/esm2020/tag/tag.component.mjs +3 -3
- package/esm2020/textarea/textarea.directive.mjs +33 -1
- package/esm2020/thai/thai.pipes.mjs +3 -3
- package/esm2020/toolbar/toolbar.component.mjs +7 -7
- package/fesm2015/wirabyte-ui-accordion.mjs +3 -3
- package/fesm2015/wirabyte-ui-accordion.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-alert.mjs +2 -2
- package/fesm2015/wirabyte-ui-alert.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2015/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-avatar.mjs +11 -5
- package/fesm2015/wirabyte-ui-avatar.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-breadcrumb.mjs +4 -2
- package/fesm2015/wirabyte-ui-breadcrumb.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-button.mjs +3 -3
- package/fesm2015/wirabyte-ui-button.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-card.mjs +7 -7
- package/fesm2015/wirabyte-ui-card.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-chat.mjs +399 -0
- package/fesm2015/wirabyte-ui-chat.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-config.mjs +55 -2
- package/fesm2015/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-core.mjs +147 -2
- package/fesm2015/wirabyte-ui-core.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-datepicker.mjs +5 -4
- package/fesm2015/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-descriptions.mjs +133 -0
- package/fesm2015/wirabyte-ui-descriptions.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-dialog.mjs +2 -2
- package/fesm2015/wirabyte-ui-dialog.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-drawer.mjs +2 -2
- package/fesm2015/wirabyte-ui-drawer.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-emptystate.mjs +2 -2
- package/fesm2015/wirabyte-ui-emptystate.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-errorpage.mjs +2 -2
- package/fesm2015/wirabyte-ui-errorpage.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-fieldset.mjs +3 -3
- package/fesm2015/wirabyte-ui-fieldset.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-metergroup.mjs +29 -4
- package/fesm2015/wirabyte-ui-metergroup.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-navbar.mjs +2 -2
- package/fesm2015/wirabyte-ui-navbar.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-panel.mjs +5 -5
- package/fesm2015/wirabyte-ui-panel.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-popover.mjs +2 -2
- package/fesm2015/wirabyte-ui-popover.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-result.mjs +2 -2
- package/fesm2015/wirabyte-ui-result.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-scheduler.mjs +515 -0
- package/fesm2015/wirabyte-ui-scheduler.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-selectbutton.mjs +22 -4
- package/fesm2015/wirabyte-ui-selectbutton.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-signaturepad.mjs +313 -0
- package/fesm2015/wirabyte-ui-signaturepad.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2015/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-stat.mjs +151 -0
- package/fesm2015/wirabyte-ui-stat.mjs.map +1 -0
- package/fesm2015/wirabyte-ui-table.mjs +3 -3
- package/fesm2015/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-tabs.mjs +2 -2
- package/fesm2015/wirabyte-ui-tabs.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-tag.mjs +2 -2
- package/fesm2015/wirabyte-ui-tag.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-textarea.mjs +32 -0
- package/fesm2015/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-thai.mjs +2 -2
- package/fesm2015/wirabyte-ui-thai.mjs.map +1 -1
- package/fesm2015/wirabyte-ui-toolbar.mjs +6 -6
- package/fesm2015/wirabyte-ui-toolbar.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-accordion.mjs +3 -3
- package/fesm2020/wirabyte-ui-accordion.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-alert.mjs +2 -2
- package/fesm2020/wirabyte-ui-alert.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-asidemenu.mjs +2 -2
- package/fesm2020/wirabyte-ui-asidemenu.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-avatar.mjs +11 -5
- package/fesm2020/wirabyte-ui-avatar.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-breadcrumb.mjs +4 -2
- package/fesm2020/wirabyte-ui-breadcrumb.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-button.mjs +3 -3
- package/fesm2020/wirabyte-ui-button.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-card.mjs +7 -7
- package/fesm2020/wirabyte-ui-card.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-chat.mjs +391 -0
- package/fesm2020/wirabyte-ui-chat.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-config.mjs +55 -2
- package/fesm2020/wirabyte-ui-config.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-core.mjs +155 -2
- package/fesm2020/wirabyte-ui-core.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-datepicker.mjs +5 -4
- package/fesm2020/wirabyte-ui-datepicker.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-descriptions.mjs +133 -0
- package/fesm2020/wirabyte-ui-descriptions.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-dialog.mjs +2 -2
- package/fesm2020/wirabyte-ui-dialog.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-drawer.mjs +2 -2
- package/fesm2020/wirabyte-ui-drawer.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-emptystate.mjs +2 -2
- package/fesm2020/wirabyte-ui-emptystate.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-errorpage.mjs +2 -2
- package/fesm2020/wirabyte-ui-errorpage.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-fieldset.mjs +3 -3
- package/fesm2020/wirabyte-ui-fieldset.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-metergroup.mjs +28 -4
- package/fesm2020/wirabyte-ui-metergroup.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-navbar.mjs +2 -2
- package/fesm2020/wirabyte-ui-navbar.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-panel.mjs +5 -5
- package/fesm2020/wirabyte-ui-panel.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-popover.mjs +2 -2
- package/fesm2020/wirabyte-ui-popover.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-result.mjs +2 -2
- package/fesm2020/wirabyte-ui-result.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-scheduler.mjs +505 -0
- package/fesm2020/wirabyte-ui-scheduler.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-selectbutton.mjs +22 -4
- package/fesm2020/wirabyte-ui-selectbutton.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-signaturepad.mjs +310 -0
- package/fesm2020/wirabyte-ui-signaturepad.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-sitefooter.mjs +1 -1
- package/fesm2020/wirabyte-ui-sitefooter.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-stat.mjs +149 -0
- package/fesm2020/wirabyte-ui-stat.mjs.map +1 -0
- package/fesm2020/wirabyte-ui-table.mjs +3 -3
- package/fesm2020/wirabyte-ui-table.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-tabs.mjs +2 -2
- package/fesm2020/wirabyte-ui-tabs.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-tag.mjs +2 -2
- package/fesm2020/wirabyte-ui-tag.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-textarea.mjs +32 -0
- package/fesm2020/wirabyte-ui-textarea.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-thai.mjs +2 -2
- package/fesm2020/wirabyte-ui-thai.mjs.map +1 -1
- package/fesm2020/wirabyte-ui-toolbar.mjs +6 -6
- package/fesm2020/wirabyte-ui-toolbar.mjs.map +1 -1
- package/metergroup/metergroup.component.d.ts +16 -3
- package/metergroup/metergroup.types.d.ts +6 -0
- package/package.json +41 -1
- package/scheduler/index.d.ts +5 -0
- package/scheduler/public-api.d.ts +3 -0
- package/scheduler/scheduler.component.d.ts +143 -0
- package/scheduler/scheduler.module.d.ts +8 -0
- package/scheduler/scheduler.types.d.ts +46 -0
- package/schematics/core/catalog.cjs +22 -1
- package/schematics/core/families.cjs +42 -0
- package/schematics/core/overrides.cjs +25 -0
- package/schematics/core/thai/locale.cjs +66 -0
- package/schematics/ng-add/index.cjs +3 -1
- package/selectbutton/selectbutton.component.d.ts +12 -1
- package/signaturepad/index.d.ts +5 -0
- package/signaturepad/public-api.d.ts +2 -0
- package/signaturepad/signaturepad.component.d.ts +98 -0
- package/signaturepad/signaturepad.module.d.ts +8 -0
- package/stat/index.d.ts +5 -0
- package/stat/public-api.d.ts +2 -0
- package/stat/stat.component.d.ts +61 -0
- package/stat/stat.module.d.ts +8 -0
- package/textarea/textarea.directive.d.ts +3 -0
- package/theme/_data.scss +239 -7
- package/theme/_index.scss +29 -0
- package/themes/arun-blue/theme.css +30 -1
- package/themes/arun-green/theme.css +30 -1
- package/themes/arun-orange/theme.css +30 -1
- package/themes/arun-purple/theme.css +30 -1
- package/themes/md-dark-deeppurple/theme.css +30 -1
- package/themes/md-dark-indigo/theme.css +30 -1
- package/themes/md-light-deeppurple/theme.css +30 -1
- package/themes/md-light-indigo/theme.css +30 -1
- package/themes/ratri-blue/theme.css +30 -1
- package/themes/ratri-green/theme.css +30 -1
- package/themes/ratri-orange/theme.css +30 -1
- package/themes/ratri-purple/theme.css +30 -1
- package/themes/sayan-blue/theme.css +30 -1
- package/themes/sayan-green/theme.css +30 -1
- package/themes/sayan-orange/theme.css +30 -1
- package/themes/sayan-purple/theme.css +30 -1
- package/themes/sila-dark-blue/theme.css +30 -1
- package/themes/sila-dark-indigo/theme.css +30 -1
- package/themes/sila-dark-purple/theme.css +30 -1
- package/themes/sila-dark-teal/theme.css +30 -1
- package/themes/sila-light-blue/theme.css +30 -1
- package/themes/sila-light-indigo/theme.css +30 -1
- package/themes/sila-light-purple/theme.css +30 -1
- package/themes/sila-light-teal/theme.css +30 -1
- package/themes/sila-light-wira/theme.css +30 -1
|
@@ -231,10 +231,10 @@ class WuDrawer {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
WuDrawer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuDrawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
234
|
-
WuDrawer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuDrawer, isStandalone: true, selector: "wu-drawer, wu-sidebar", inputs: { visible: "visible", position: "position", fullScreen: "fullScreen", header: "header", modal: "modal", dismissible: "dismissible", blockScroll: "blockScroll", showCloseIcon: "showCloseIcon", closable: "closable", closeOnEscape: "closeOnEscape", closeIcon: "closeIcon", ariaCloseLabel: "ariaCloseLabel", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style", maskStyleClass: "maskStyleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", transitionOptions: "transitionOptions" }, outputs: { visibleChange: "visibleChange", onShow: "onShow", onHide: "onHide" }, queries: [{ propertyName: "headerRef", first: true, predicate: ["header"] }, { propertyName: "footerRef", first: true, predicate: ["footer"] }, { propertyName: "contentRef", first: true, predicate: ["content"] }, { propertyName: "headlessRef", first: true, predicate: ["headless"] }, { propertyName: "closeIconRef", first: true, predicate: ["closeicon"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "maskRef", first: true, predicate: ["mask"], descendants: true }], ngImport: i0, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
234
|
+
WuDrawer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: WuDrawer, isStandalone: true, selector: "wu-drawer, wu-sidebar", inputs: { visible: "visible", position: "position", fullScreen: "fullScreen", header: "header", modal: "modal", dismissible: "dismissible", blockScroll: "blockScroll", showCloseIcon: "showCloseIcon", closable: "closable", closeOnEscape: "closeOnEscape", closeIcon: "closeIcon", ariaCloseLabel: "ariaCloseLabel", ariaLabel: "ariaLabel", styleClass: "styleClass", style: "style", maskStyleClass: "maskStyleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", transitionOptions: "transitionOptions" }, outputs: { visibleChange: "visibleChange", onShow: "onShow", onHide: "onHide" }, queries: [{ propertyName: "headerRef", first: true, predicate: ["header"] }, { propertyName: "footerRef", first: true, predicate: ["footer"] }, { propertyName: "contentRef", first: true, predicate: ["content"] }, { propertyName: "headlessRef", first: true, predicate: ["headless"] }, { propertyName: "closeIconRef", first: true, predicate: ["closeicon"] }, { propertyName: "templates", predicate: WuTemplate }], viewQueries: [{ propertyName: "maskRef", first: true, predicate: ["mask"], descendants: true }], ngImport: i0, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{font-family:var(--wu-heading-font-family);min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
235
235
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuDrawer, decorators: [{
|
|
236
236
|
type: Component,
|
|
237
|
-
args: [{ selector: 'wu-drawer, wu-sidebar', standalone: true, imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"] }]
|
|
237
|
+
args: [{ selector: 'wu-drawer, wu-sidebar', standalone: true, imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n", styles: ["@layer wiraui.components{:is(wu-drawer,wu-sidebar){display:contents}.wu-drawer-mask:where([open]){position:fixed;inset:0;box-sizing:border-box;display:flex;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:var(--wu-text)}.wu-drawer-mask::backdrop{background:var(--wu-mask);animation:wu-drawer-fade .2s ease}.wu-drawer-mask.wu-drawer-leaving::backdrop{opacity:0;transition:opacity .2s ease}.wu-drawer-mask[open]:not(.wu-drawer-modal){z-index:1100;pointer-events:none}.wu-drawer-mask:not(.wu-drawer-modal) .wu-drawer{pointer-events:auto}.wu-drawer-mask-left{justify-content:flex-start}.wu-drawer-mask-right{justify-content:flex-end}.wu-drawer-mask-top{align-items:flex-start}.wu-drawer-mask-bottom{align-items:flex-end}.wu-drawer{box-sizing:border-box;display:flex;flex-direction:column;max-width:100%;max-height:100%;border:0 solid var(--wu-border);background:var(--wu-drawer-bg);color:var(--wu-text);box-shadow:var(--wu-drawer-shadow);outline:none}.wu-drawer-left,.wu-drawer-right{width:var(--wu-drawer-size);height:100%}.wu-drawer-left{border-right-width:var(--wu-drawer-border-width);animation:wu-drawer-from-left .2s ease}.wu-drawer-right{border-left-width:var(--wu-drawer-border-width);animation:wu-drawer-from-right .2s ease}.wu-drawer-top,.wu-drawer-bottom{width:100%;min-height:10rem}.wu-drawer-top{border-bottom-width:var(--wu-drawer-border-width);animation:wu-drawer-from-top .2s ease}.wu-drawer-bottom{border-top-width:var(--wu-drawer-border-width);animation:wu-drawer-from-bottom .2s ease}.wu-drawer-full{width:100%;height:100%;animation:wu-drawer-fade .2s ease}.wu-drawer-leaving .wu-drawer{animation-duration:.2s;animation-timing-function:ease;animation-fill-mode:forwards}.wu-drawer-leaving .wu-drawer-left{animation-name:wu-drawer-to-left}.wu-drawer-leaving .wu-drawer-right{animation-name:wu-drawer-to-right}.wu-drawer-leaving .wu-drawer-top{animation-name:wu-drawer-to-top}.wu-drawer-leaving .wu-drawer-bottom{animation-name:wu-drawer-to-bottom}.wu-drawer-leaving .wu-drawer-full{animation-name:wu-drawer-fade-out}.wu-drawer-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:.5rem;padding:var(--wu-drawer-header-padding)}.wu-drawer-title{font-family:var(--wu-heading-font-family);min-width:0;font-size:var(--wu-drawer-title-size);font-weight:var(--wu-drawer-title-weight)}.wu-drawer-close{flex:none;margin-left:auto}.wu-drawer-content{flex:1 1 auto;min-height:0;padding:var(--wu-drawer-content-padding);overflow-y:auto;overscroll-behavior:contain}.wu-drawer-footer{flex:none;padding:var(--wu-drawer-content-padding)}@keyframes wu-drawer-from-left{0%{translate:-100% 0}}@keyframes wu-drawer-from-right{0%{translate:100% 0}}@keyframes wu-drawer-from-top{0%{translate:0 -100%}}@keyframes wu-drawer-from-bottom{0%{translate:0 100%}}@keyframes wu-drawer-fade{0%{opacity:0}}@keyframes wu-drawer-to-left{to{translate:-100% 0}}@keyframes wu-drawer-to-right{to{translate:100% 0}}@keyframes wu-drawer-to-top{to{translate:0 -100%}}@keyframes wu-drawer-to-bottom{to{translate:0 100%}}@keyframes wu-drawer-fade-out{to{opacity:0}}@media (prefers-reduced-motion: reduce){.wu-drawer,.wu-drawer-mask::backdrop{animation:none!important}}}\n"] }]
|
|
238
238
|
}], ctorParameters: function () { return []; }, propDecorators: { visible: [{
|
|
239
239
|
type: Input
|
|
240
240
|
}], position: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirabyte-ui-drawer.mjs","sources":["../../lib/drawer/drawer.component.ts","../../lib/drawer/drawer.component.html","../../lib/drawer/drawer.module.ts","../../lib/drawer/wirabyte-ui-drawer.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵlockScroll,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵuniqueId,\n ɵWU_SKIP_VERSION_CHECK,\n ɵWuStyleLoader,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { ɵbuttonClass, ɵWU_BUTTON_CSS } from '@wirabyte/ui/button';\nimport { WuLocale } from '@wirabyte/ui/core';\n\nexport type WuDrawerPosition = 'left' | 'right' | 'top' | 'bottom' | 'full';\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\n\n/**\n * A panel that slides in from an edge of the window: `<wu-drawer [(visible)]=\"menuOpen\" header=\"เมนู\" position=\"left\">`\n * (`<wu-sidebar>` works too). It is a native `<dialog>`: modal by default (the page behind is inert and dimmed,\n * focus stays inside), closed with the × button, Escape or a click on the dimmed page.\n */\n@Component({\n selector: 'wu-drawer, wu-sidebar',\n standalone: true,\n imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet],\n templateUrl: './drawer.component.html',\n styleUrls: ['./drawer.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDrawer implements AfterViewChecked, OnDestroy {\n /** Two-way: `[(visible)]`. */\n @Input() set visible(v: unknown) { this.setVisible(ɵtoBool(v)); }\n get visible(): boolean { return this._visible; }\n @Input() position: WuDrawerPosition = 'left';\n /** Covers the whole window (same as `position=\"full\"`). */\n @Input() set fullScreen(v: unknown) { this._fullScreen = ɵtoBool(v); }\n get fullScreen(): boolean { return this._fullScreen; }\n @Input() header?: string;\n /** Dim the page and keep focus in the drawer. Default true. */\n @Input() set modal(v: unknown) { this._modal = v === undefined || ɵtoBool(v); }\n get modal(): boolean { return this._modal; }\n /** A click on the dimmed page closes it. Default true. */\n @Input() set dismissible(v: unknown) { this._dismissible = v === undefined || ɵtoBool(v); }\n /** Stop the page scrolling while open. Default: when modal. */\n @Input() set blockScroll(v: unknown) { this._blockScroll = v === undefined || v === null ? null : ɵtoBool(v); }\n /** The × button. Default true. */\n @Input() set showCloseIcon(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n @Input() set closable(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n get closable(): boolean { return this._closeButton; }\n @Input() set closeOnEscape(v: unknown) { this._closeOnEscape = v === undefined || ɵtoBool(v); }\n @Input() closeIcon?: string;\n @Input() ariaCloseLabel?: string;\n @Input() ariaLabel?: string;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | null;\n @Input() maskStyleClass?: string;\n /** Accepted for templates moving over: the drawer is in the top layer. */\n @Input() appendTo: unknown;\n @Input() autoZIndex: unknown;\n @Input() baseZIndex: unknown;\n @Input() transitionOptions: unknown;\n\n @Output() readonly visibleChange = new EventEmitter<boolean>();\n @Output() readonly onShow = new EventEmitter<void>();\n @Output() readonly onHide = new EventEmitter<void>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('header', { descendants: false }) protected headerRef?: unknown;\n @ContentChild('footer', { descendants: false }) protected footerRef?: unknown;\n @ContentChild('content', { descendants: false }) protected contentRef?: unknown;\n @ContentChild('headless', { descendants: false }) protected headlessRef?: unknown;\n @ContentChild('closeicon', { descendants: false }) protected closeIconRef?: unknown;\n @ViewChild('mask') protected maskRef?: ElementRef<HTMLDialogElement>;\n\n readonly titleId = ɵuniqueId('wu-drawer-title');\n /** The `<dialog>` is in the DOM (it stays a moment after closing, for the slide-out). */\n rendered = false;\n leaving = false;\n private _visible = false;\n private _fullScreen = false;\n private _modal = true;\n private _dismissible = true;\n private _blockScroll: boolean | null = null;\n private _closeButton = true;\n private _closeOnEscape = true;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly doc = inject(DOCUMENT);\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('button', ɵWU_BUTTON_CSS);\n }\n\n // ---------- what the template reads ----------\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get side(): WuDrawerPosition {\n return this._fullScreen ? 'full' : this.position || 'left';\n }\n get panelClass(): string {\n const s = this.side;\n return `wu-drawer-${s} p-drawer-${s} p-sidebar-${s}${s === 'full' ? ' p-drawer-full p-sidebar-full' : ''} ${this.styleClass || ''}`;\n }\n get closeClass(): string {\n return ɵbuttonClass('p-button-text p-button-secondary p-button-rounded') + ' wu-btn-icon-only wu-drawer-close p-drawer-close-button p-sidebar-close';\n }\n get headerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headerRef) || ɵfindTemplate(this.templates, 'header');\n }\n get footerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.footerRef) || ɵfindTemplate(this.templates, 'footer');\n }\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get headlessTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headlessRef) || ɵfindTemplate(this.templates, 'headless');\n }\n get closeIconTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.closeIconRef) || ɵfindTemplate(this.templates, 'closeicon');\n }\n get labelledBy(): string | null {\n return this.ariaLabel ? null : this.header || this.headerTemplate ? this.titleId : null;\n }\n\n ngAfterViewChecked(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n if (!el) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n if (this._modal) el.showModal();\n else el.show();\n } catch {\n el.setAttribute('open', '');\n }\n }\n if (this._blockScroll ?? this._modal) this.unlockScroll = ɵlockScroll(this.doc);\n if (this._modal) this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n const auto = el.querySelector('[autofocus]') as HTMLElement | null;\n if (auto) auto.focus();\n else if (!this._modal) (el.querySelector('.wu-drawer') as HTMLElement | null)?.focus();\n Promise.resolve().then(() => this.onShow.emit());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n const el = this.maskRef?.nativeElement;\n if (el?.open) el.close();\n }\n\n /** Closes the drawer and tells the model (`visibleChange`). */\n close(event?: Event): void {\n if (!this._visible) return;\n event?.preventDefault();\n this._visible = false;\n this.visibleChange.emit(false);\n this.beginClose();\n }\n\n /** Opens it from code. */\n show(): void {\n if (this._visible) return;\n this.setVisible(true);\n this.visibleChange.emit(true);\n }\n\n hide(): void {\n this.close();\n }\n\n // ---------- template events ----------\n\n keydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n cancel(event: Event): void {\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n nativeClose(): void {\n if (this._visible && !this.leaving) this.close();\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (onMask && this._dismissible && this._modal) this.close(event);\n }\n\n // ---------- internals ----------\n\n private setVisible(v: boolean): void {\n if (v === this._visible) return;\n this._visible = v;\n if (v) this.beginOpen();\n else this.beginClose();\n }\n\n private beginOpen(): void {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n this.leaving = false;\n this.cdr.markForCheck();\n return;\n }\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n this.rendered = true;\n this.leaving = false;\n this.pendingShow = true;\n this.cdr.markForCheck();\n }\n\n private beginClose(): void {\n this.pendingShow = false;\n if (!this.rendered || this.closeTimer) return;\n this.leaving = true;\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n this.closeTimer = setTimeout(() => this.finishClose(), reduce ? 0 : 200);\n }\n\n private finishClose(): void {\n this.closeTimer = null;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.cdr.markForCheck();\n this.onHide.emit();\n }\n}\n","<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n","import { NgModule } from '@angular/core';\nimport { WuDrawer } from './drawer.component';\n\n/** For NgModule apps. Standalone apps can import `WuDrawer` directly. */\n@NgModule({\n imports: [WuDrawer],\n exports: [WuDrawer],\n})\nexport class WuDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAoCA,MAAM,UAAU,GAAG,CAAC,CA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AE,KAAK,EAAE,CAAA;gBACa,WAAW,EAAA,CAAA;sBAAtE,YAAY;gBAAC,IAAA,EAAA,CAAA,UAAU,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAA;gBACa,YAAY,EAAA,CAAA;sBAAxE,YAAY;gBAAC,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAA;gBACpB,OAAO,EAAA,CAAA;sBAAnC,SAAS;uBAAC,MAAM,CAAA;;;AE7FnB;MAKa,cAAc,CAAA;;4GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA;AAEP,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHf,QAAQ,CAAA,EAAA,CAAA,CAAA;4FAGP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;iBACpB,CAAA;;;ACPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"wirabyte-ui-drawer.mjs","sources":["../../lib/drawer/drawer.component.ts","../../lib/drawer/drawer.component.html","../../lib/drawer/drawer.module.ts","../../lib/drawer/wirabyte-ui-drawer.ts"],"sourcesContent":["import { DOCUMENT, NgClass, NgIf, NgStyle, NgTemplateOutlet } from '@angular/common';\nimport {\n AfterViewChecked,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n OnDestroy,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ɵassertSupportedAngular,\n ɵfindTemplate,\n ɵlockScroll,\n ɵrefreshOnTranslation,\n ɵtoBool,\n ɵuniqueId,\n ɵWU_SKIP_VERSION_CHECK,\n ɵWuStyleLoader,\n WuConfig,\n WuTemplate,\n} from '@wirabyte/ui/config';\nimport { ɵbuttonClass, ɵWU_BUTTON_CSS } from '@wirabyte/ui/button';\nimport { WuLocale } from '@wirabyte/ui/core';\n\nexport type WuDrawerPosition = 'left' | 'right' | 'top' | 'bottom' | 'full';\n\nconst asTemplate = (v: unknown): TemplateRef<unknown> | null => (v instanceof TemplateRef ? v : null);\n\n/**\n * A panel that slides in from an edge of the window: `<wu-drawer [(visible)]=\"menuOpen\" header=\"เมนู\" position=\"left\">`\n * (`<wu-sidebar>` works too). It is a native `<dialog>`: modal by default (the page behind is inert and dimmed,\n * focus stays inside), closed with the × button, Escape or a click on the dimmed page.\n */\n@Component({\n selector: 'wu-drawer, wu-sidebar',\n standalone: true,\n imports: [NgClass, NgIf, NgStyle, NgTemplateOutlet],\n templateUrl: './drawer.component.html',\n styleUrls: ['./drawer.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WuDrawer implements AfterViewChecked, OnDestroy {\n /** Two-way: `[(visible)]`. */\n @Input() set visible(v: unknown) { this.setVisible(ɵtoBool(v)); }\n get visible(): boolean { return this._visible; }\n @Input() position: WuDrawerPosition = 'left';\n /** Covers the whole window (same as `position=\"full\"`). */\n @Input() set fullScreen(v: unknown) { this._fullScreen = ɵtoBool(v); }\n get fullScreen(): boolean { return this._fullScreen; }\n @Input() header?: string;\n /** Dim the page and keep focus in the drawer. Default true. */\n @Input() set modal(v: unknown) { this._modal = v === undefined || ɵtoBool(v); }\n get modal(): boolean { return this._modal; }\n /** A click on the dimmed page closes it. Default true. */\n @Input() set dismissible(v: unknown) { this._dismissible = v === undefined || ɵtoBool(v); }\n /** Stop the page scrolling while open. Default: when modal. */\n @Input() set blockScroll(v: unknown) { this._blockScroll = v === undefined || v === null ? null : ɵtoBool(v); }\n /** The × button. Default true. */\n @Input() set showCloseIcon(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n @Input() set closable(v: unknown) { this._closeButton = v === undefined || ɵtoBool(v); }\n get closable(): boolean { return this._closeButton; }\n @Input() set closeOnEscape(v: unknown) { this._closeOnEscape = v === undefined || ɵtoBool(v); }\n @Input() closeIcon?: string;\n @Input() ariaCloseLabel?: string;\n @Input() ariaLabel?: string;\n @Input() styleClass?: string | null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Input() style?: Record<string, any> | null;\n @Input() maskStyleClass?: string;\n /** Accepted for templates moving over: the drawer is in the top layer. */\n @Input() appendTo: unknown;\n @Input() autoZIndex: unknown;\n @Input() baseZIndex: unknown;\n @Input() transitionOptions: unknown;\n\n @Output() readonly visibleChange = new EventEmitter<boolean>();\n @Output() readonly onShow = new EventEmitter<void>();\n @Output() readonly onHide = new EventEmitter<void>();\n\n @ContentChildren(WuTemplate) protected templates?: QueryList<WuTemplate>;\n @ContentChild('header', { descendants: false }) protected headerRef?: unknown;\n @ContentChild('footer', { descendants: false }) protected footerRef?: unknown;\n @ContentChild('content', { descendants: false }) protected contentRef?: unknown;\n @ContentChild('headless', { descendants: false }) protected headlessRef?: unknown;\n @ContentChild('closeicon', { descendants: false }) protected closeIconRef?: unknown;\n @ViewChild('mask') protected maskRef?: ElementRef<HTMLDialogElement>;\n\n readonly titleId = ɵuniqueId('wu-drawer-title');\n /** The `<dialog>` is in the DOM (it stays a moment after closing, for the slide-out). */\n rendered = false;\n leaving = false;\n private _visible = false;\n private _fullScreen = false;\n private _modal = true;\n private _dismissible = true;\n private _blockScroll: boolean | null = null;\n private _closeButton = true;\n private _closeOnEscape = true;\n private pendingShow = false;\n private downOnMask = false;\n private closeTimer: ReturnType<typeof setTimeout> | null = null;\n private unlockScroll: (() => void) | null = null;\n private returnFocus: HTMLElement | null = null;\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly doc = inject(DOCUMENT);\n private readonly config = inject(WuConfig);\n private readonly i18n = ɵrefreshOnTranslation();\n\n constructor() {\n ɵassertSupportedAngular(inject(ɵWU_SKIP_VERSION_CHECK, { optional: true }));\n inject(ɵWuStyleLoader).load('button', ɵWU_BUTTON_CSS);\n }\n\n // ---------- what the template reads ----------\n\n get t(): WuLocale {\n return this.config.translation;\n }\n get side(): WuDrawerPosition {\n return this._fullScreen ? 'full' : this.position || 'left';\n }\n get panelClass(): string {\n const s = this.side;\n return `wu-drawer-${s} p-drawer-${s} p-sidebar-${s}${s === 'full' ? ' p-drawer-full p-sidebar-full' : ''} ${this.styleClass || ''}`;\n }\n get closeClass(): string {\n return ɵbuttonClass('p-button-text p-button-secondary p-button-rounded') + ' wu-btn-icon-only wu-drawer-close p-drawer-close-button p-sidebar-close';\n }\n get headerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headerRef) || ɵfindTemplate(this.templates, 'header');\n }\n get footerTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.footerRef) || ɵfindTemplate(this.templates, 'footer');\n }\n get contentTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.contentRef) || ɵfindTemplate(this.templates, 'content');\n }\n get headlessTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.headlessRef) || ɵfindTemplate(this.templates, 'headless');\n }\n get closeIconTemplate(): TemplateRef<unknown> | null {\n return asTemplate(this.closeIconRef) || ɵfindTemplate(this.templates, 'closeicon');\n }\n get labelledBy(): string | null {\n return this.ariaLabel ? null : this.header || this.headerTemplate ? this.titleId : null;\n }\n\n ngAfterViewChecked(): void {\n if (!this.pendingShow) return;\n const el = this.maskRef?.nativeElement;\n if (!el) return;\n this.pendingShow = false;\n if (!el.open) {\n try {\n if (this._modal) el.showModal();\n else el.show();\n } catch {\n el.setAttribute('open', '');\n }\n }\n if (this._blockScroll ?? this._modal) this.unlockScroll = ɵlockScroll(this.doc);\n if (this._modal) this.doc.dispatchEvent(new CustomEvent('wu-modal-open'));\n const auto = el.querySelector('[autofocus]') as HTMLElement | null;\n if (auto) auto.focus();\n else if (!this._modal) (el.querySelector('.wu-drawer') as HTMLElement | null)?.focus();\n Promise.resolve().then(() => this.onShow.emit());\n }\n\n ngOnDestroy(): void {\n this.i18n.unsubscribe();\n if (this.closeTimer) clearTimeout(this.closeTimer);\n this.unlockScroll?.();\n const el = this.maskRef?.nativeElement;\n if (el?.open) el.close();\n }\n\n /** Closes the drawer and tells the model (`visibleChange`). */\n close(event?: Event): void {\n if (!this._visible) return;\n event?.preventDefault();\n this._visible = false;\n this.visibleChange.emit(false);\n this.beginClose();\n }\n\n /** Opens it from code. */\n show(): void {\n if (this._visible) return;\n this.setVisible(true);\n this.visibleChange.emit(true);\n }\n\n hide(): void {\n this.close();\n }\n\n // ---------- template events ----------\n\n keydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n cancel(event: Event): void {\n event.preventDefault();\n if (this._closeOnEscape) this.close(event);\n }\n\n nativeClose(): void {\n if (this._visible && !this.leaving) this.close();\n }\n\n maskPointerdown(event: PointerEvent): void {\n this.downOnMask = event.target === this.maskRef?.nativeElement;\n }\n\n maskClick(event: MouseEvent): void {\n const onMask = this.downOnMask && event.target === this.maskRef?.nativeElement;\n this.downOnMask = false;\n if (onMask && this._dismissible && this._modal) this.close(event);\n }\n\n // ---------- internals ----------\n\n private setVisible(v: boolean): void {\n if (v === this._visible) return;\n this._visible = v;\n if (v) this.beginOpen();\n else this.beginClose();\n }\n\n private beginOpen(): void {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n this.leaving = false;\n this.cdr.markForCheck();\n return;\n }\n const active = this.doc.activeElement as HTMLElement | null;\n this.returnFocus = active && active !== this.doc.body ? active : null;\n this.rendered = true;\n this.leaving = false;\n this.pendingShow = true;\n this.cdr.markForCheck();\n }\n\n private beginClose(): void {\n this.pendingShow = false;\n if (!this.rendered || this.closeTimer) return;\n this.leaving = true;\n this.cdr.markForCheck();\n const win = this.doc.defaultView;\n const reduce = !!win?.matchMedia && win.matchMedia('(prefers-reduced-motion: reduce)').matches;\n this.closeTimer = setTimeout(() => this.finishClose(), reduce ? 0 : 200);\n }\n\n private finishClose(): void {\n this.closeTimer = null;\n const el = this.maskRef?.nativeElement;\n const hadFocus = !!el && el.contains(this.doc.activeElement);\n if (el?.open) el.close();\n this.unlockScroll?.();\n this.unlockScroll = null;\n this.rendered = false;\n this.leaving = false;\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back && back.isConnected && (hadFocus || this.doc.activeElement === this.doc.body)) back.focus({ preventScroll: true });\n this.cdr.markForCheck();\n this.onHide.emit();\n }\n}\n","<dialog\n *ngIf=\"rendered\"\n #mask\n class=\"wu-drawer-mask p-drawer-mask p-sidebar-mask p-overlay-mask\"\n [ngClass]=\"(maskStyleClass || '') + ' wu-drawer-mask-' + side\"\n [class.wu-drawer-modal]=\"modal\"\n [class.wu-drawer-leaving]=\"leaving\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-label]=\"ariaLabel || null\"\n (keydown)=\"keydown($event)\"\n (cancel)=\"cancel($event)\"\n (close)=\"nativeClose()\"\n (pointerdown)=\"maskPointerdown($event)\"\n (click)=\"maskClick($event)\"\n>\n <div class=\"wu-drawer p-drawer p-sidebar p-component\" tabindex=\"-1\" [ngClass]=\"panelClass\" [ngStyle]=\"style || null\">\n <ng-container *ngIf=\"headlessTemplate; else regular\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #regular>\n <div class=\"wu-drawer-header p-drawer-header p-sidebar-header\">\n <div class=\"wu-drawer-title p-drawer-title\" [id]=\"titleId\">\n <ng-container *ngIf=\"headerTemplate; else headerText\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ng-container>\n <ng-template #headerText>{{ header }}</ng-template>\n </div>\n <button *ngIf=\"closable\" type=\"button\" [class]=\"closeClass\" [attr.aria-label]=\"ariaCloseLabel || t.close\" (click)=\"close($event)\">\n <ng-container *ngIf=\"closeIconTemplate; else defaultIcon\">\n <ng-container *ngTemplateOutlet=\"closeIconTemplate\"></ng-container>\n </ng-container>\n <ng-template #defaultIcon>\n <span *ngIf=\"closeIcon; else cross\" [class]=\"'wu-btn-icon ' + closeIcon\" aria-hidden=\"true\"></span>\n <ng-template #cross>\n <svg class=\"wu-btn-icon\" viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" aria-hidden=\"true\"><path d=\"M4 4l8 8M12 4l-8 8\"></path></svg>\n </ng-template>\n </ng-template>\n </button>\n </div>\n <div class=\"wu-drawer-content p-drawer-content p-sidebar-content\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"wu-drawer-footer p-drawer-footer p-sidebar-footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n </ng-template>\n </div>\n</dialog>\n","import { NgModule } from '@angular/core';\nimport { WuDrawer } from './drawer.component';\n\n/** For NgModule apps. Standalone apps can import `WuDrawer` directly. */\n@NgModule({\n imports: [WuDrawer],\n exports: [WuDrawer],\n})\nexport class WuDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAoCA,MAAM,UAAU,GAAG,CAAC,CAAU,MAAmC,CAAC,YAAY,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AAEtG;;;;AAIG;MAUU,QAAQ,CAAA;;AAEnB,IAAA,IAAa,OAAO,CAAC,CAAU,EAAA,EAAI,IAAI,CAAC,UAAU,CAAC,O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C,IAAA,EAAA,CAAA,WAAW,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAA;gBACpB,OAAO,EAAA,CAAA;sBAAnC,SAAS;uBAAC,MAAM,CAAA;;;AE7FnB;MAKa,cAAc,CAAA;;4GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,OAAA,EAAA,CAHf,QAAQ,CAAA,EAAA,OAAA,EAAA,CACR,QAAQ,CAAA,EAAA,CAAA,CAAA;AAEP,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHf,QAAQ,CAAA,EAAA,CAAA,CAAA;4FAGP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,QAAQ,CAAC;oBACnB,OAAO,EAAE,CAAC,QAAQ,CAAC;iBACpB,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -53,10 +53,10 @@ class WuEmptyState {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
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 });
|
|
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{font-family:var(--wu-heading-font-family);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
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: WuEmptyState, decorators: [{
|
|
58
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"] }]
|
|
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{font-family:var(--wu-heading-font-family);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
60
|
}], ctorParameters: function () { return []; }, propDecorators: { type: [{
|
|
61
61
|
type: Input
|
|
62
62
|
}], title: [{
|
|
@@ -1 +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,IAA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D,IAAI,EAAA,CAAA;sBAAhB,KAAK;gBAOG,KAAK,EAAA,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;;;;"}
|
|
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,CAAC;KACnB;AAsBD,IAAA,WAAA,GAAA;;AAXS,QAAA,IAAS,CAAA,SAAA,GAAwC,IAAI,CAAC;;AAEtD,QAAA,IAAI,CAAA,IAAA,GAAwC,QAAQ,CAAC;AAKtD,QAAA,IAAK,CAAA,KAAA,GAAqB,QAAQ,CAAC;AAC1B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAC1B,QAAA,IAAI,CAAA,IAAA,GAAG,qBAAqB,EAAE,CAAC;AAG9C,QAAA,uBAAuB,CAAC,MAAM,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;KAC7E;IAED,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;KACzB;;AAID,IAAA,IAAI,SAAS,GAAA;;QACX,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,KAAK,mCAAI,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,MAAG,IAAA,IAAA,EAAA,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