yukit-web 0.11.0 → 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 +74 -35
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +11 -1
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -809,6 +809,7 @@ function createPagedList(options) {
|
|
|
809
809
|
};
|
|
810
810
|
}, ...ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []);
|
|
811
811
|
effect(() => {
|
|
812
|
+
if (options.ready && !options.ready()) return;
|
|
812
813
|
const current = query();
|
|
813
814
|
untracked(() => options.load(current));
|
|
814
815
|
});
|
|
@@ -21525,6 +21526,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21525
21526
|
constructor() {
|
|
21526
21527
|
this.backLabel = input(...ngDevMode ? [void 0, { debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
21527
21528
|
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
21529
|
+
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
21528
21530
|
this.primaryDisabled = input(false, {
|
|
21529
21531
|
...ngDevMode ? { debugName: "primaryDisabled" } : /* istanbul ignore next */ {},
|
|
21530
21532
|
transform: booleanAttribute
|
|
@@ -21576,6 +21578,13 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21576
21578
|
isRequired: false,
|
|
21577
21579
|
transformFunction: null
|
|
21578
21580
|
},
|
|
21581
|
+
imageUrl: {
|
|
21582
|
+
classPropertyName: "imageUrl",
|
|
21583
|
+
publicName: "imageUrl",
|
|
21584
|
+
isSignal: true,
|
|
21585
|
+
isRequired: false,
|
|
21586
|
+
transformFunction: null
|
|
21587
|
+
},
|
|
21579
21588
|
primaryDisabled: {
|
|
21580
21589
|
classPropertyName: "primaryDisabled",
|
|
21581
21590
|
publicName: "primaryDisabled",
|
|
@@ -21643,39 +21652,57 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21643
21652
|
lucideArrowLeft
|
|
21644
21653
|
})],
|
|
21645
21654
|
ngImport: i0,
|
|
21646
|
-
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",
|
|
21647
|
-
dependencies: [
|
|
21648
|
-
|
|
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
|
-
|
|
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
|
+
],
|
|
21679
21706
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
21680
21707
|
});
|
|
21681
21708
|
}
|
|
@@ -21690,12 +21717,16 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21690
21717
|
args: [{
|
|
21691
21718
|
selector: "yuws-page-header",
|
|
21692
21719
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21693
|
-
imports: [
|
|
21720
|
+
imports: [
|
|
21721
|
+
NgIcon,
|
|
21722
|
+
YuwAvatarComponent,
|
|
21723
|
+
YuwButtonComponent
|
|
21724
|
+
],
|
|
21694
21725
|
providers: [provideIcons({
|
|
21695
21726
|
lucidePlus,
|
|
21696
21727
|
lucideArrowLeft
|
|
21697
21728
|
})],
|
|
21698
|
-
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"
|
|
21699
21730
|
}]
|
|
21700
21731
|
}],
|
|
21701
21732
|
propDecorators: {
|
|
@@ -21715,6 +21746,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21715
21746
|
required: false
|
|
21716
21747
|
}]
|
|
21717
21748
|
}],
|
|
21749
|
+
imageUrl: [{
|
|
21750
|
+
type: i0.Input,
|
|
21751
|
+
args: [{
|
|
21752
|
+
isSignal: true,
|
|
21753
|
+
alias: "imageUrl",
|
|
21754
|
+
required: false
|
|
21755
|
+
}]
|
|
21756
|
+
}],
|
|
21718
21757
|
primaryDisabled: [{
|
|
21719
21758
|
type: i0.Input,
|
|
21720
21759
|
args: [{
|