yukit-web 0.11.1 → 0.11.3
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 +89 -35
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +15 -0
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -21526,6 +21526,8 @@ 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.imageFallback = input(...ngDevMode ? [void 0, { debugName: "imageFallback" }] : /* istanbul ignore next */ []);
|
|
21530
|
+
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
21529
21531
|
this.primaryDisabled = input(false, {
|
|
21530
21532
|
...ngDevMode ? { debugName: "primaryDisabled" } : /* istanbul ignore next */ {},
|
|
21531
21533
|
transform: booleanAttribute
|
|
@@ -21577,6 +21579,20 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21577
21579
|
isRequired: false,
|
|
21578
21580
|
transformFunction: null
|
|
21579
21581
|
},
|
|
21582
|
+
imageFallback: {
|
|
21583
|
+
classPropertyName: "imageFallback",
|
|
21584
|
+
publicName: "imageFallback",
|
|
21585
|
+
isSignal: true,
|
|
21586
|
+
isRequired: false,
|
|
21587
|
+
transformFunction: null
|
|
21588
|
+
},
|
|
21589
|
+
imageUrl: {
|
|
21590
|
+
classPropertyName: "imageUrl",
|
|
21591
|
+
publicName: "imageUrl",
|
|
21592
|
+
isSignal: true,
|
|
21593
|
+
isRequired: false,
|
|
21594
|
+
transformFunction: null
|
|
21595
|
+
},
|
|
21580
21596
|
primaryDisabled: {
|
|
21581
21597
|
classPropertyName: "primaryDisabled",
|
|
21582
21598
|
publicName: "primaryDisabled",
|
|
@@ -21644,39 +21660,57 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21644
21660
|
lucideArrowLeft
|
|
21645
21661
|
})],
|
|
21646
21662
|
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
|
-
|
|
21663
|
+
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() || imageFallback()) {\n <yuw-avatar size=\"lg\" [src]=\"imageUrl()\" [alt]=\"title()\" [fallback]=\"imageFallback()\" />\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",
|
|
21664
|
+
dependencies: [
|
|
21665
|
+
{
|
|
21666
|
+
kind: "component",
|
|
21667
|
+
type: NgIcon,
|
|
21668
|
+
selector: "ng-icon",
|
|
21669
|
+
inputs: [
|
|
21670
|
+
"name",
|
|
21671
|
+
"svg",
|
|
21672
|
+
"size",
|
|
21673
|
+
"strokeWidth",
|
|
21674
|
+
"color"
|
|
21675
|
+
]
|
|
21676
|
+
},
|
|
21677
|
+
{
|
|
21678
|
+
kind: "component",
|
|
21679
|
+
type: YuwAvatarComponent,
|
|
21680
|
+
selector: "yuw-avatar",
|
|
21681
|
+
inputs: [
|
|
21682
|
+
"alt",
|
|
21683
|
+
"badge",
|
|
21684
|
+
"fallback",
|
|
21685
|
+
"group",
|
|
21686
|
+
"groupCount",
|
|
21687
|
+
"size",
|
|
21688
|
+
"src",
|
|
21689
|
+
"class"
|
|
21690
|
+
]
|
|
21691
|
+
},
|
|
21692
|
+
{
|
|
21693
|
+
kind: "component",
|
|
21694
|
+
type: YuwButtonComponent,
|
|
21695
|
+
selector: "yuw-button",
|
|
21696
|
+
inputs: [
|
|
21697
|
+
"animationDisabled",
|
|
21698
|
+
"ariaLabel",
|
|
21699
|
+
"color",
|
|
21700
|
+
"disabled",
|
|
21701
|
+
"href",
|
|
21702
|
+
"size",
|
|
21703
|
+
"target",
|
|
21704
|
+
"transparent",
|
|
21705
|
+
"type",
|
|
21706
|
+
"class",
|
|
21707
|
+
"variant",
|
|
21708
|
+
"yuwDropdownMenuAlign",
|
|
21709
|
+
"yuwDropdownMenuTrigger"
|
|
21710
|
+
],
|
|
21711
|
+
outputs: ["clicked"]
|
|
21712
|
+
}
|
|
21713
|
+
],
|
|
21680
21714
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
21681
21715
|
});
|
|
21682
21716
|
}
|
|
@@ -21691,12 +21725,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21691
21725
|
args: [{
|
|
21692
21726
|
selector: "yuws-page-header",
|
|
21693
21727
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21694
|
-
imports: [
|
|
21728
|
+
imports: [
|
|
21729
|
+
NgIcon,
|
|
21730
|
+
YuwAvatarComponent,
|
|
21731
|
+
YuwButtonComponent
|
|
21732
|
+
],
|
|
21695
21733
|
providers: [provideIcons({
|
|
21696
21734
|
lucidePlus,
|
|
21697
21735
|
lucideArrowLeft
|
|
21698
21736
|
})],
|
|
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"
|
|
21737
|
+
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() || imageFallback()) {\n <yuw-avatar size=\"lg\" [src]=\"imageUrl()\" [alt]=\"title()\" [fallback]=\"imageFallback()\" />\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
21738
|
}]
|
|
21701
21739
|
}],
|
|
21702
21740
|
propDecorators: {
|
|
@@ -21716,6 +21754,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21716
21754
|
required: false
|
|
21717
21755
|
}]
|
|
21718
21756
|
}],
|
|
21757
|
+
imageFallback: [{
|
|
21758
|
+
type: i0.Input,
|
|
21759
|
+
args: [{
|
|
21760
|
+
isSignal: true,
|
|
21761
|
+
alias: "imageFallback",
|
|
21762
|
+
required: false
|
|
21763
|
+
}]
|
|
21764
|
+
}],
|
|
21765
|
+
imageUrl: [{
|
|
21766
|
+
type: i0.Input,
|
|
21767
|
+
args: [{
|
|
21768
|
+
isSignal: true,
|
|
21769
|
+
alias: "imageUrl",
|
|
21770
|
+
required: false
|
|
21771
|
+
}]
|
|
21772
|
+
}],
|
|
21719
21773
|
primaryDisabled: [{
|
|
21720
21774
|
type: i0.Input,
|
|
21721
21775
|
args: [{
|