yukit-web 0.11.1 → 0.11.2
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/fesm2022/yukit-web.mjs +73 -35
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +7 -0
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -21526,6 +21526,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21526
21526
|
constructor() {
|
|
21527
21527
|
this.backLabel = input(...ngDevMode ? [void 0, { debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
21528
21528
|
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
21529
|
+
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
21529
21530
|
this.primaryDisabled = input(false, {
|
|
21530
21531
|
...ngDevMode ? { debugName: "primaryDisabled" } : /* istanbul ignore next */ {},
|
|
21531
21532
|
transform: booleanAttribute
|
|
@@ -21577,6 +21578,13 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21577
21578
|
isRequired: false,
|
|
21578
21579
|
transformFunction: null
|
|
21579
21580
|
},
|
|
21581
|
+
imageUrl: {
|
|
21582
|
+
classPropertyName: "imageUrl",
|
|
21583
|
+
publicName: "imageUrl",
|
|
21584
|
+
isSignal: true,
|
|
21585
|
+
isRequired: false,
|
|
21586
|
+
transformFunction: null
|
|
21587
|
+
},
|
|
21580
21588
|
primaryDisabled: {
|
|
21581
21589
|
classPropertyName: "primaryDisabled",
|
|
21582
21590
|
publicName: "primaryDisabled",
|
|
@@ -21644,39 +21652,57 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21644
21652
|
lucideArrowLeft
|
|
21645
21653
|
})],
|
|
21646
21654
|
ngImport: i0,
|
|
21647
|
-
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n",
|
|
21648
|
-
dependencies: [
|
|
21649
|
-
|
|
21650
|
-
|
|
21651
|
-
|
|
21652
|
-
|
|
21653
|
-
|
|
21654
|
-
|
|
21655
|
-
|
|
21656
|
-
|
|
21657
|
-
|
|
21658
|
-
|
|
21659
|
-
|
|
21660
|
-
|
|
21661
|
-
|
|
21662
|
-
|
|
21663
|
-
|
|
21664
|
-
"
|
|
21665
|
-
|
|
21666
|
-
|
|
21667
|
-
|
|
21668
|
-
|
|
21669
|
-
|
|
21670
|
-
|
|
21671
|
-
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21655
|
+
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n @if (imageUrl(); as image) {\n <yuw-avatar size=\"lg\" [src]=\"image\" [alt]=\"title()\" />\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n",
|
|
21656
|
+
dependencies: [
|
|
21657
|
+
{
|
|
21658
|
+
kind: "component",
|
|
21659
|
+
type: NgIcon,
|
|
21660
|
+
selector: "ng-icon",
|
|
21661
|
+
inputs: [
|
|
21662
|
+
"name",
|
|
21663
|
+
"svg",
|
|
21664
|
+
"size",
|
|
21665
|
+
"strokeWidth",
|
|
21666
|
+
"color"
|
|
21667
|
+
]
|
|
21668
|
+
},
|
|
21669
|
+
{
|
|
21670
|
+
kind: "component",
|
|
21671
|
+
type: YuwAvatarComponent,
|
|
21672
|
+
selector: "yuw-avatar",
|
|
21673
|
+
inputs: [
|
|
21674
|
+
"alt",
|
|
21675
|
+
"badge",
|
|
21676
|
+
"fallback",
|
|
21677
|
+
"group",
|
|
21678
|
+
"groupCount",
|
|
21679
|
+
"size",
|
|
21680
|
+
"src",
|
|
21681
|
+
"class"
|
|
21682
|
+
]
|
|
21683
|
+
},
|
|
21684
|
+
{
|
|
21685
|
+
kind: "component",
|
|
21686
|
+
type: YuwButtonComponent,
|
|
21687
|
+
selector: "yuw-button",
|
|
21688
|
+
inputs: [
|
|
21689
|
+
"animationDisabled",
|
|
21690
|
+
"ariaLabel",
|
|
21691
|
+
"color",
|
|
21692
|
+
"disabled",
|
|
21693
|
+
"href",
|
|
21694
|
+
"size",
|
|
21695
|
+
"target",
|
|
21696
|
+
"transparent",
|
|
21697
|
+
"type",
|
|
21698
|
+
"class",
|
|
21699
|
+
"variant",
|
|
21700
|
+
"yuwDropdownMenuAlign",
|
|
21701
|
+
"yuwDropdownMenuTrigger"
|
|
21702
|
+
],
|
|
21703
|
+
outputs: ["clicked"]
|
|
21704
|
+
}
|
|
21705
|
+
],
|
|
21680
21706
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
21681
21707
|
});
|
|
21682
21708
|
}
|
|
@@ -21691,12 +21717,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21691
21717
|
args: [{
|
|
21692
21718
|
selector: "yuws-page-header",
|
|
21693
21719
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21694
|
-
imports: [
|
|
21720
|
+
imports: [
|
|
21721
|
+
NgIcon,
|
|
21722
|
+
YuwAvatarComponent,
|
|
21723
|
+
YuwButtonComponent
|
|
21724
|
+
],
|
|
21695
21725
|
providers: [provideIcons({
|
|
21696
21726
|
lucidePlus,
|
|
21697
21727
|
lucideArrowLeft
|
|
21698
21728
|
})],
|
|
21699
|
-
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n"
|
|
21729
|
+
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n @if (imageUrl(); as image) {\n <yuw-avatar size=\"lg\" [src]=\"image\" [alt]=\"title()\" />\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n"
|
|
21700
21730
|
}]
|
|
21701
21731
|
}],
|
|
21702
21732
|
propDecorators: {
|
|
@@ -21716,6 +21746,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21716
21746
|
required: false
|
|
21717
21747
|
}]
|
|
21718
21748
|
}],
|
|
21749
|
+
imageUrl: [{
|
|
21750
|
+
type: i0.Input,
|
|
21751
|
+
args: [{
|
|
21752
|
+
isSignal: true,
|
|
21753
|
+
alias: "imageUrl",
|
|
21754
|
+
required: false
|
|
21755
|
+
}]
|
|
21756
|
+
}],
|
|
21719
21757
|
primaryDisabled: [{
|
|
21720
21758
|
type: i0.Input,
|
|
21721
21759
|
args: [{
|