@piying-lib/angular-daisyui 1.0.3 → 1.0.4

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.
@@ -51,7 +51,7 @@ class LabelWC {
51
51
  return direction === 'top' || direction === 'bottom' ? 'flex flex-col' : 'flex';
52
52
  }, ...(ngDevMode ? [{ debugName: "layout$$" }] : []));
53
53
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LabelWC, deps: [], target: i0.ɵɵFactoryTarget.Component });
54
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: LabelWC, isStandalone: true, selector: "app-label-wrapper", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n @let title = props$$()['title'];\n @let isEnd = isEnd$$();\n <ng-template #requiredTemplate>\n @if (field$$().form.control?.required$$()) {\n <span>{{ title }}</span\n ><span class=\"text-error\">*</span>\n }\n </ng-template>\n\n @if (labelInline$$()) {\n <label\n [class]=\"\n attr()?.class\n | mergeClass: (props$$()['floating'] ? ('floating-label' | cssPrefix) : undefined)\n \"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n </label>\n } @else {\n <div\n [class]=\"layout$$() | twPrefix | mergeClass: attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n </div>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: InsertFieldDirective, selector: "[insertField]", exportAs: ["insertField"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }, { kind: "pipe", type: TwPrefixPipe, name: "twPrefix" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
54
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: LabelWC, isStandalone: true, selector: "app-label-wrapper", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["templateRef"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #templateRef let-attr=\"attributes\">\n @let title = props$$()['title'];\n @let isEnd = isEnd$$();\n <ng-template #requiredTemplate>\n <span>{{ title }}</span>\n @if (field$$().form.control?.required$$()) {\n <span class=\"text-error\">*</span>\n }\n </ng-template>\n\n @if (labelInline$$()) {\n <label\n [class]=\"\n attr()?.class\n | mergeClass: (props$$()['floating'] ? ('floating-label' | cssPrefix) : undefined)\n \"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n </label>\n } @else {\n <div\n [class]=\"layout$$() | twPrefix | mergeClass: attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n </div>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: AttributesDirective, selector: "[attributes]", inputs: ["attributes", "excludes"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: InsertFieldDirective, selector: "[insertField]", exportAs: ["insertField"] }, { kind: "pipe", type: CssPrefixPipe, name: "cssPrefix" }, { kind: "pipe", type: MergeClassPipe, name: "mergeClass" }, { kind: "pipe", type: TwPrefixPipe, name: "twPrefix" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
55
55
  }
56
56
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: LabelWC, decorators: [{
57
57
  type: Component,
@@ -64,7 +64,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
64
64
  MergeClassPipe,
65
65
  TwPrefixPipe,
66
66
  InsertFieldDirective,
67
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #templateRef let-attr=\"attributes\">\n @let title = props$$()['title'];\n @let isEnd = isEnd$$();\n <ng-template #requiredTemplate>\n @if (field$$().form.control?.required$$()) {\n <span>{{ title }}</span\n ><span class=\"text-error\">*</span>\n }\n </ng-template>\n\n @if (labelInline$$()) {\n <label\n [class]=\"\n attr()?.class\n | mergeClass: (props$$()['floating'] ? ('floating-label' | cssPrefix) : undefined)\n \"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n </label>\n } @else {\n <div\n [class]=\"layout$$() | twPrefix | mergeClass: attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n </div>\n }\n</ng-template>\n" }]
67
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #templateRef let-attr=\"attributes\">\n @let title = props$$()['title'];\n @let isEnd = isEnd$$();\n <ng-template #requiredTemplate>\n <span>{{ title }}</span>\n @if (field$$().form.control?.required$$()) {\n <span class=\"text-error\">*</span>\n }\n </ng-template>\n\n @if (labelInline$$()) {\n <label\n [class]=\"\n attr()?.class\n | mergeClass: (props$$()['floating'] ? ('floating-label' | cssPrefix) : undefined)\n \"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n </label>\n } @else {\n <div\n [class]=\"layout$$() | twPrefix | mergeClass: attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n </div>\n }\n</ng-template>\n" }]
68
68
  }], propDecorators: { templateRef: [{ type: i0.ViewChild, args: ['templateRef', { isSignal: true }] }] } });
69
69
 
70
70
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"piying-lib-angular-daisyui-wrapper.mjs","sources":["../../../projects/daisyui/wrapper/table/td.component.ts","../../../projects/daisyui/wrapper/table/th.component.ts","../../../projects/daisyui/wrapper/label/component.ts","../../../projects/daisyui/wrapper/label/component.html","../../../projects/daisyui/wrapper/piying-lib-angular-daisyui-wrapper.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { InsertFieldDirective } from '@piying/view-angular';\n\n@Component({\n selector: 'td',\n template: '<ng-container insertField></ng-container>',\n imports: [InsertFieldDirective],\n})\nexport class TdWC {}\n","import { Component } from '@angular/core';\nimport { InsertFieldDirective } from '@piying/view-angular';\n\n@Component({\n selector: 'th',\n template: '<ng-container insertField></ng-container>',\n imports: [InsertFieldDirective],\n})\nexport class ThWC {}\n","import { ChangeDetectionStrategy, Component, computed, inject, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n AttributesDirective,\n InsertFieldDirective,\n PI_VIEW_FIELD_TOKEN,\n} from '@piying/view-angular';\n\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { CssPrefixPipe, MergeClassPipe, TwPrefixPipe } from '@piying-lib/angular-daisyui/pipe';\n@Component({\n selector: 'app-label-wrapper',\n templateUrl: './component.html',\n imports: [\n FormsModule,\n AttributesDirective,\n NgTemplateOutlet,\n NgClass,\n CssPrefixPipe,\n MergeClassPipe,\n TwPrefixPipe,\n InsertFieldDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LabelWC {\n static __version = 2;\n templateRef = viewChild.required('templateRef');\n field$$ = inject(PI_VIEW_FIELD_TOKEN);\n props$$ = computed(() => this.field$$().props());\n labelInline$$ = computed(() => {\n return this.props$$()['labelInline'] ?? false;\n });\n labelPosition$$ = computed(() => {\n return this.props$$()['labelPosition'] ?? 'top';\n });\n isEnd$$ = computed(() => {\n const direction = this.labelPosition$$();\n return direction === 'bottom' || direction === 'end';\n });\n layout$$ = computed(() => {\n const direction = this.labelPosition$$();\n return direction === 'top' || direction === 'bottom' ? 'flex flex-col' : 'flex';\n });\n}\n","<ng-template #templateRef let-attr=\"attributes\">\n @let title = props$$()['title'];\n @let isEnd = isEnd$$();\n <ng-template #requiredTemplate>\n @if (field$$().form.control?.required$$()) {\n <span>{{ title }}</span\n ><span class=\"text-error\">*</span>\n }\n </ng-template>\n\n @if (labelInline$$()) {\n <label\n [class]=\"\n attr()?.class\n | mergeClass: (props$$()['floating'] ? ('floating-label' | cssPrefix) : undefined)\n \"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n </label>\n } @else {\n <div\n [class]=\"layout$$() | twPrefix | mergeClass: attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n </div>\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAQa,IAAI,CAAA;wGAAJ,IAAI,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAJ,IAAI,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHL,2CAA2C,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAC3C,oBAAoB,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAEnB,IAAI,EAAA,UAAA,EAAA,CAAA;kBALhB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,IAAI;AACd,oBAAA,QAAQ,EAAE,2CAA2C;oBACrD,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAChC,iBAAA;;;MCCY,IAAI,CAAA;wGAAJ,IAAI,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAJ,IAAI,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAHL,2CAA2C,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAC3C,oBAAoB,EAAA,QAAA,EAAA,eAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAEnB,IAAI,EAAA,UAAA,EAAA,CAAA;kBALhB,S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ACb,cAAc;wBACd,YAAY;wBACZ,oBAAoB;qBACrB,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ulDAAA,EAAA;yEAId,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3BhD;;AAEG;;;;"}
1
+ {"version":3,"file":"piying-lib-angular-daisyui-wrapper.mjs","sources":["../../../projects/daisyui/wrapper/table/td.component.ts","../../../projects/daisyui/wrapper/table/th.component.ts","../../../projects/daisyui/wrapper/label/component.ts","../../../projects/daisyui/wrapper/label/component.html","../../../projects/daisyui/wrapper/piying-lib-angular-daisyui-wrapper.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { InsertFieldDirective } from '@piying/view-angular';\n\n@Component({\n selector: 'td',\n template: '<ng-container insertField></ng-container>',\n imports: [InsertFieldDirective],\n})\nexport class TdWC {}\n","import { Component } from '@angular/core';\nimport { InsertFieldDirective } from '@piying/view-angular';\n\n@Component({\n selector: 'th',\n template: '<ng-container insertField></ng-container>',\n imports: [InsertFieldDirective],\n})\nexport class ThWC {}\n","import { ChangeDetectionStrategy, Component, computed, inject, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n AttributesDirective,\n InsertFieldDirective,\n PI_VIEW_FIELD_TOKEN,\n} from '@piying/view-angular';\n\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { CssPrefixPipe, MergeClassPipe, TwPrefixPipe } from '@piying-lib/angular-daisyui/pipe';\n@Component({\n selector: 'app-label-wrapper',\n templateUrl: './component.html',\n imports: [\n FormsModule,\n AttributesDirective,\n NgTemplateOutlet,\n NgClass,\n CssPrefixPipe,\n MergeClassPipe,\n TwPrefixPipe,\n InsertFieldDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LabelWC {\n static __version = 2;\n templateRef = viewChild.required('templateRef');\n field$$ = inject(PI_VIEW_FIELD_TOKEN);\n props$$ = computed(() => this.field$$().props());\n labelInline$$ = computed(() => {\n return this.props$$()['labelInline'] ?? false;\n });\n labelPosition$$ = computed(() => {\n return this.props$$()['labelPosition'] ?? 'top';\n });\n isEnd$$ = computed(() => {\n const direction = this.labelPosition$$();\n return direction === 'bottom' || direction === 'end';\n });\n layout$$ = computed(() => {\n const direction = this.labelPosition$$();\n return direction === 'top' || direction === 'bottom' ? 'flex flex-col' : 'flex';\n });\n}\n","<ng-template #templateRef let-attr=\"attributes\">\n @let title = props$$()['title'];\n @let isEnd = isEnd$$();\n <ng-template #requiredTemplate>\n <span>{{ title }}</span>\n @if (field$$().form.control?.required$$()) {\n <span class=\"text-error\">*</span>\n }\n </ng-template>\n\n @if (labelInline$$()) {\n <label\n [class]=\"\n attr()?.class\n | mergeClass: (props$$()['floating'] ? ('floating-label' | cssPrefix) : undefined)\n \"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\">\n <ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <span class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></span>\n }\n </label>\n } @else {\n <div\n [class]=\"layout$$() | twPrefix | mergeClass: attr()?.class\"\n [attributes]=\"attr()\"\n [excludes]=\"['class']\"\n >\n @if (title && !isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n <ng-container insertField></ng-container>\n @if (title && isEnd) {\n <label class=\"{{ 'label' | cssPrefix }}\"\n ><ng-container *ngTemplateOutlet=\"requiredTemplate\"></ng-container\n ></label>\n }\n </div>\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAQa,IAAI,CAAA;wGAAJ,IAA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AAA,EAAA,CAAA;;AE3BhD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piying-lib/angular-daisyui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.3.0",
6
6
  "@angular/core": ">=20.3.0",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "tslib": "^2.3.0",
12
- "@piying-lib/angular-core": "^1.0.3"
12
+ "@piying-lib/angular-core": "^1.0.4"
13
13
  },
14
14
  "sideEffects": false,
15
15
  "module": "fesm2022/piying-lib-angular-daisyui.mjs",