@koalarx/ui 20.0.13 → 20.0.14
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.
|
@@ -38,11 +38,11 @@ class Dropdown {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: Dropdown, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.6", type: Dropdown, isStandalone: true, selector: "kl-dropdown", inputs: { verticalPosition: { classPropertyName: "verticalPosition", publicName: "verticalPosition", isSignal: true, isRequired: false, transformFunction: null }, horizontalPosition: { classPropertyName: "horizontalPosition", publicName: "horizontalPosition", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "dropdownElement", first: true, predicate: ["dropdown"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #dropdown class=\"dropdown\">\n <div tabindex=\"0\" role=\"button\">\n <ng-content select=\"[trigger]\" />\n </div>\n <ul\n tabindex=\"0\"\n class=\"dropdown-content bg-base-100 rounded-box z-1 mt-3 min-w-52 w-auto shadow-sm border border-neutral-200 dark:border-neutral-700 rounded-md overflow-auto max-h-[50vh]\">\n <ng-content select=\"[options]\" />\n </ul>\n</div>\n" });
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.6", type: Dropdown, isStandalone: true, selector: "kl-dropdown", inputs: { verticalPosition: { classPropertyName: "verticalPosition", publicName: "verticalPosition", isSignal: true, isRequired: false, transformFunction: null }, horizontalPosition: { classPropertyName: "horizontalPosition", publicName: "horizontalPosition", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "dropdownElement", first: true, predicate: ["dropdown"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #dropdown class=\"dropdown\">\n <div tabindex=\"0\" role=\"button\">\n <ng-content select=\"[trigger]\" />\n </div>\n <ul\n tabindex=\"0\"\n class=\"dropdown-content bg-base-100 rounded-box z-1 mt-3 min-w-52 w-auto shadow-sm border border-neutral-200 dark:border-neutral-700 rounded-md overflow-y-auto max-h-[50vh]\">\n <ng-content select=\"[options]\" />\n </ul>\n</div>\n" });
|
|
42
42
|
}
|
|
43
43
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: Dropdown, decorators: [{
|
|
44
44
|
type: Component,
|
|
45
|
-
args: [{ selector: 'kl-dropdown', template: "<div #dropdown class=\"dropdown\">\n <div tabindex=\"0\" role=\"button\">\n <ng-content select=\"[trigger]\" />\n </div>\n <ul\n tabindex=\"0\"\n class=\"dropdown-content bg-base-100 rounded-box z-1 mt-3 min-w-52 w-auto shadow-sm border border-neutral-200 dark:border-neutral-700 rounded-md overflow-auto max-h-[50vh]\">\n <ng-content select=\"[options]\" />\n </ul>\n</div>\n" }]
|
|
45
|
+
args: [{ selector: 'kl-dropdown', template: "<div #dropdown class=\"dropdown\">\n <div tabindex=\"0\" role=\"button\">\n <ng-content select=\"[trigger]\" />\n </div>\n <ul\n tabindex=\"0\"\n class=\"dropdown-content bg-base-100 rounded-box z-1 mt-3 min-w-52 w-auto shadow-sm border border-neutral-200 dark:border-neutral-700 rounded-md overflow-y-auto max-h-[50vh]\">\n <ng-content select=\"[options]\" />\n </ul>\n</div>\n" }]
|
|
46
46
|
}], ctorParameters: () => [] });
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"koalarx-ui-shared-components-dropdown.mjs","sources":["../../projects/koala-ui/shared/components/dropdown/dropdown.ts","../../projects/koala-ui/shared/components/dropdown/dropdown.html","../../projects/koala-ui/shared/components/dropdown/koalarx-ui-shared-components-dropdown.ts"],"sourcesContent":["import {\n Component,\n computed,\n effect,\n ElementRef,\n input,\n viewChild,\n} from '@angular/core';\n\ntype DropdownVerticalPosition = 'top' | 'bottom' | 'left' | 'right';\ntype DropdownHorizontalPosition = 'start' | 'center' | 'end';\n\n@Component({\n selector: 'kl-dropdown',\n templateUrl: './dropdown.html',\n})\nexport class Dropdown {\n private readonly dropdownElement =\n viewChild<ElementRef<HTMLDivElement>>('dropdown');\n\n verticalPosition = input<DropdownVerticalPosition>('bottom');\n horizontalPosition = input<DropdownHorizontalPosition>('start');\n\n verticalPositionClass = computed(() => {\n switch (this.verticalPosition()) {\n case 'top':\n return 'dropdown-top';\n case 'left':\n return 'dropdown-left';\n case 'right':\n return 'dropdown-right';\n case 'bottom':\n default:\n return 'dropdown-bottom';\n }\n });\n\n horizontalPositionClass = computed(() => {\n switch (this.horizontalPosition()) {\n case 'start':\n return 'dropdown-start';\n case 'center':\n return 'dropdown-center';\n case 'end':\n default:\n return 'dropdown-end';\n }\n });\n\n constructor() {\n effect(() => {\n const dropdownElement = this.dropdownElement()?.nativeElement;\n\n if (dropdownElement) {\n dropdownElement.classList.add(\n this.verticalPositionClass(),\n this.horizontalPositionClass()\n );\n }\n });\n }\n}\n","<div #dropdown class=\"dropdown\">\n <div tabindex=\"0\" role=\"button\">\n <ng-content select=\"[trigger]\" />\n </div>\n <ul\n tabindex=\"0\"\n class=\"dropdown-content bg-base-100 rounded-box z-1 mt-3 min-w-52 w-auto shadow-sm border border-neutral-200 dark:border-neutral-700 rounded-md overflow-auto max-h-[50vh]\">\n <ng-content select=\"[options]\" />\n </ul>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAgBa,QAAQ,CAAA;AACF,IAAA,eAAe,GAC9B,SAAS,CAA6B,UAAU,CAAC;AAEnD,IAAA,gBAAgB,GAAG,KAAK,CAA2B,QAAQ,CAAC;AAC5D,IAAA,kBAAkB,GAAG,KAAK,CAA6B,OAAO,CAAC;AAE/D,IAAA,qBAAqB,GAAG,QAAQ,CAAC,MAAK;AACpC,QAAA,QAAQ,IAAI,CAAC,gBAAgB,EAAE;AAC7B,YAAA,KAAK,KAAK;AACR,gBAAA,OAAO,cAAc;AACvB,YAAA,KAAK,MAAM;AACT,gBAAA,OAAO,eAAe;AACxB,YAAA,KAAK,OAAO;AACV,gBAAA,OAAO,gBAAgB;AACzB,YAAA,KAAK,QAAQ;AACb,YAAA;AACE,gBAAA,OAAO,iBAAiB;;AAE9B,KAAC,CAAC;AAEF,IAAA,uBAAuB,GAAG,QAAQ,CAAC,MAAK;AACtC,QAAA,QAAQ,IAAI,CAAC,kBAAkB,EAAE;AAC/B,YAAA,KAAK,OAAO;AACV,gBAAA,OAAO,gBAAgB;AACzB,YAAA,KAAK,QAAQ;AACX,gBAAA,OAAO,iBAAiB;AAC1B,YAAA,KAAK,KAAK;AACV,YAAA;AACE,gBAAA,OAAO,cAAc;;AAE3B,KAAC,CAAC;AAEF,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;YACV,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,EAAE,aAAa;YAE7D,IAAI,eAAe,EAAE;AACnB,gBAAA,eAAe,CAAC,SAAS,CAAC,GAAG,CAC3B,IAAI,CAAC,qBAAqB,EAAE,EAC5B,IAAI,CAAC,uBAAuB,EAAE,CAC/B;;AAEL,SAAC,CAAC;;uGA3CO,QAAQ,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAR,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAQ,wgBChBrB,
|
|
1
|
+
{"version":3,"file":"koalarx-ui-shared-components-dropdown.mjs","sources":["../../projects/koala-ui/shared/components/dropdown/dropdown.ts","../../projects/koala-ui/shared/components/dropdown/dropdown.html","../../projects/koala-ui/shared/components/dropdown/koalarx-ui-shared-components-dropdown.ts"],"sourcesContent":["import {\n Component,\n computed,\n effect,\n ElementRef,\n input,\n viewChild,\n} from '@angular/core';\n\ntype DropdownVerticalPosition = 'top' | 'bottom' | 'left' | 'right';\ntype DropdownHorizontalPosition = 'start' | 'center' | 'end';\n\n@Component({\n selector: 'kl-dropdown',\n templateUrl: './dropdown.html',\n})\nexport class Dropdown {\n private readonly dropdownElement =\n viewChild<ElementRef<HTMLDivElement>>('dropdown');\n\n verticalPosition = input<DropdownVerticalPosition>('bottom');\n horizontalPosition = input<DropdownHorizontalPosition>('start');\n\n verticalPositionClass = computed(() => {\n switch (this.verticalPosition()) {\n case 'top':\n return 'dropdown-top';\n case 'left':\n return 'dropdown-left';\n case 'right':\n return 'dropdown-right';\n case 'bottom':\n default:\n return 'dropdown-bottom';\n }\n });\n\n horizontalPositionClass = computed(() => {\n switch (this.horizontalPosition()) {\n case 'start':\n return 'dropdown-start';\n case 'center':\n return 'dropdown-center';\n case 'end':\n default:\n return 'dropdown-end';\n }\n });\n\n constructor() {\n effect(() => {\n const dropdownElement = this.dropdownElement()?.nativeElement;\n\n if (dropdownElement) {\n dropdownElement.classList.add(\n this.verticalPositionClass(),\n this.horizontalPositionClass()\n );\n }\n });\n }\n}\n","<div #dropdown class=\"dropdown\">\n <div tabindex=\"0\" role=\"button\">\n <ng-content select=\"[trigger]\" />\n </div>\n <ul\n tabindex=\"0\"\n class=\"dropdown-content bg-base-100 rounded-box z-1 mt-3 min-w-52 w-auto shadow-sm border border-neutral-200 dark:border-neutral-700 rounded-md overflow-y-auto max-h-[50vh]\">\n <ng-content select=\"[options]\" />\n </ul>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAgBa,QAAQ,CAAA;AACF,IAAA,eAAe,GAC9B,SAAS,CAA6B,UAAU,CAAC;AAEnD,IAAA,gBAAgB,GAAG,KAAK,CAA2B,QAAQ,CAAC;AAC5D,IAAA,kBAAkB,GAAG,KAAK,CAA6B,OAAO,CAAC;AAE/D,IAAA,qBAAqB,G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