ngx-tethys 18.2.0-next.0 → 18.2.0-next.1

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.
Files changed (150) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/autocomplete/autocomplete.component.d.ts +2 -1
  3. package/calendar/calendar-header.component.d.ts +2 -0
  4. package/cascader/cascader.component.d.ts +1 -0
  5. package/color-picker/color-picker-panel.component.d.ts +3 -1
  6. package/copy/copy.directive.d.ts +1 -0
  7. package/core/theme/store.d.ts +2 -1
  8. package/date-picker/abstract-picker.component.d.ts +3 -1
  9. package/date-picker/date-helper.service.d.ts +3 -0
  10. package/date-picker/date-picker.config.d.ts +7 -1
  11. package/date-picker/lib/calendar/calendar-footer.component.d.ts +3 -1
  12. package/date-picker/lib/calendar/calendar-header.component.d.ts +3 -1
  13. package/date-picker/lib/calendar/calendar-table.component.d.ts +3 -1
  14. package/date-picker/lib/date-carousel/date-carousel.component.d.ts +4 -1
  15. package/date-picker/lib/popups/date-popup.component.d.ts +3 -1
  16. package/date-picker/lib/popups/inner-popup.component.d.ts +3 -1
  17. package/date-range/date-range.component.d.ts +2 -0
  18. package/date-range/optional-dates/optional-dates.component.d.ts +1 -0
  19. package/dialog/confirm/confirm.component.d.ts +1 -0
  20. package/dialog/confirm.config.d.ts +14 -7
  21. package/empty/empty.component.d.ts +14 -9
  22. package/empty/empty.config.d.ts +3 -0
  23. package/esm2022/autocomplete/autocomplete.component.mjs +5 -3
  24. package/esm2022/calendar/calendar-header.component.mjs +9 -5
  25. package/esm2022/cascader/cascader.component.mjs +5 -3
  26. package/esm2022/checkbox/checkbox.component.mjs +1 -1
  27. package/esm2022/color-picker/color-picker-panel.component.mjs +5 -3
  28. package/esm2022/copy/copy.directive.mjs +7 -5
  29. package/esm2022/core/theme/store.mjs +7 -7
  30. package/esm2022/date-picker/abstract-picker.component.mjs +4 -2
  31. package/esm2022/date-picker/base-picker.component.mjs +2 -2
  32. package/esm2022/date-picker/date-helper.service.mjs +4 -2
  33. package/esm2022/date-picker/date-picker.component.mjs +1 -1
  34. package/esm2022/date-picker/date-picker.config.mjs +55 -2
  35. package/esm2022/date-picker/date-picker.directive.mjs +1 -1
  36. package/esm2022/date-picker/date-picker.service.mjs +3 -3
  37. package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +5 -3
  38. package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -1
  39. package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -1
  40. package/esm2022/date-picker/lib/date/date-header.component.mjs +6 -5
  41. package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
  42. package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +9 -4
  43. package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
  44. package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
  45. package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -2
  46. package/esm2022/date-picker/lib/popups/date-popup.component.mjs +5 -3
  47. package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +5 -3
  48. package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
  49. package/esm2022/date-picker/month-picker.component.mjs +1 -1
  50. package/esm2022/date-picker/quarter-picker.component.mjs +1 -1
  51. package/esm2022/date-picker/range-picker.component.mjs +1 -1
  52. package/esm2022/date-picker/range-picker.directive.mjs +1 -1
  53. package/esm2022/date-picker/week-picker.component.mjs +1 -1
  54. package/esm2022/date-picker/year-picker.component.mjs +1 -1
  55. package/esm2022/date-range/date-range.component.mjs +7 -4
  56. package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -2
  57. package/esm2022/dialog/confirm/confirm.component.mjs +14 -3
  58. package/esm2022/dialog/confirm.config.mjs +17 -2
  59. package/esm2022/empty/empty.component.mjs +7 -2
  60. package/esm2022/empty/empty.config.mjs +4 -1
  61. package/esm2022/form/form-validator-loader.mjs +17 -15
  62. package/esm2022/guider/guider-hint/guider-hint.component.mjs +5 -3
  63. package/esm2022/i18n/i18n.mjs +2 -0
  64. package/esm2022/i18n/i18n.service.mjs +39 -0
  65. package/esm2022/i18n/i18n.token.mjs +8 -0
  66. package/esm2022/i18n/index.mjs +7 -0
  67. package/esm2022/i18n/locale.mjs +14 -0
  68. package/esm2022/i18n/locales/en-us.mjs +147 -0
  69. package/esm2022/i18n/locales/zh-cn.mjs +127 -0
  70. package/esm2022/i18n/ngx-tethys-i18n.mjs +5 -0
  71. package/esm2022/pagination/pagination.component.mjs +22 -5
  72. package/esm2022/pagination/pagination.module.mjs +26 -5
  73. package/esm2022/pagination/pagination.pipe.mjs +22 -1
  74. package/esm2022/property/property-item.component.mjs +3 -3
  75. package/esm2022/radio/button/radio-button.component.mjs +1 -1
  76. package/esm2022/radio/radio.component.mjs +1 -1
  77. package/esm2022/select/custom-select/custom-select.component.mjs +9 -3
  78. package/esm2022/strength/strength.component.mjs +21 -20
  79. package/esm2022/time-picker/time-picker-panel.component.mjs +5 -3
  80. package/esm2022/time-picker/time-picker.component.mjs +4 -2
  81. package/esm2022/transfer/transfer-list.component.mjs +5 -3
  82. package/esm2022/tree-select/tree-select.component.mjs +5 -3
  83. package/esm2022/version.mjs +2 -2
  84. package/fesm2022/ngx-tethys-autocomplete.mjs +4 -2
  85. package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
  86. package/fesm2022/ngx-tethys-calendar.mjs +8 -5
  87. package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
  88. package/fesm2022/ngx-tethys-cascader.mjs +4 -2
  89. package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
  90. package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
  91. package/fesm2022/ngx-tethys-color-picker.mjs +4 -2
  92. package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
  93. package/fesm2022/ngx-tethys-copy.mjs +6 -4
  94. package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
  95. package/fesm2022/ngx-tethys-core.mjs +6 -6
  96. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  97. package/fesm2022/ngx-tethys-date-picker.mjs +95 -30
  98. package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
  99. package/fesm2022/ngx-tethys-date-range.mjs +8 -4
  100. package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
  101. package/fesm2022/ngx-tethys-dialog.mjs +27 -2
  102. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  103. package/fesm2022/ngx-tethys-empty.mjs +9 -1
  104. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  105. package/fesm2022/ngx-tethys-form.mjs +16 -14
  106. package/fesm2022/ngx-tethys-form.mjs.map +1 -1
  107. package/fesm2022/ngx-tethys-guider.mjs +4 -2
  108. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  109. package/fesm2022/ngx-tethys-i18n.mjs +338 -0
  110. package/fesm2022/ngx-tethys-i18n.mjs.map +1 -0
  111. package/fesm2022/ngx-tethys-pagination.mjs +66 -7
  112. package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
  113. package/fesm2022/ngx-tethys-property.mjs +2 -2
  114. package/fesm2022/ngx-tethys-property.mjs.map +1 -1
  115. package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
  116. package/fesm2022/ngx-tethys-select.mjs +8 -2
  117. package/fesm2022/ngx-tethys-select.mjs.map +1 -1
  118. package/fesm2022/ngx-tethys-strength.mjs +20 -19
  119. package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
  120. package/fesm2022/ngx-tethys-time-picker.mjs +6 -3
  121. package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
  122. package/fesm2022/ngx-tethys-transfer.mjs +4 -2
  123. package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
  124. package/fesm2022/ngx-tethys-tree-select.mjs +4 -2
  125. package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
  126. package/fesm2022/ngx-tethys.mjs +1 -1
  127. package/fesm2022/ngx-tethys.mjs.map +1 -1
  128. package/form/form-validator-loader.d.ts +2 -0
  129. package/guider/guider-hint/guider-hint.component.d.ts +3 -1
  130. package/i18n/i18n.d.ts +143 -0
  131. package/i18n/i18n.service.d.ts +19 -0
  132. package/i18n/i18n.token.d.ts +5 -0
  133. package/i18n/index.d.ts +6 -0
  134. package/i18n/locale.d.ts +4 -0
  135. package/i18n/locales/en-us.d.ts +147 -0
  136. package/i18n/locales/zh-cn.d.ts +126 -0
  137. package/package.json +7 -1
  138. package/pagination/pagination.component.d.ts +4 -1
  139. package/pagination/pagination.module.d.ts +1 -1
  140. package/pagination/pagination.pipe.d.ts +6 -0
  141. package/radio/radio.component.d.ts +0 -2
  142. package/schematics/version.d.ts +1 -1
  143. package/schematics/version.js +1 -1
  144. package/select/custom-select/custom-select.component.d.ts +1 -0
  145. package/strength/strength.component.d.ts +21 -2
  146. package/styles/modules/cdk/drag-drop.scss +1 -1
  147. package/time-picker/time-picker-panel.component.d.ts +3 -1
  148. package/time-picker/time-picker.component.d.ts +3 -1
  149. package/transfer/transfer-list.component.d.ts +3 -1
  150. package/tree-select/tree-select.component.d.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-checkbox.mjs","sources":["../../../src/checkbox/checkbox.component.ts","../../../src/checkbox/checkbox.component.html","../../../src/checkbox/module.ts","../../../src/checkbox/index.ts","../../../src/checkbox/ngx-tethys-checkbox.ts"],"sourcesContent":["import { Component, forwardRef, Input, inject } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ThyTranslate } from 'ngx-tethys/core';\nimport { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';\nimport { NgClass } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\n/**\n * 多选框组件\n * @name thy-checkbox,[thy-checkbox],[thyCheckbox]\n * @order 10\n */\n@Component({\n selector: 'thy-checkbox,[thy-checkbox],[thyCheckbox]',\n templateUrl: './checkbox.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ThyCheckbox),\n multi: true\n }\n ],\n host: {\n '[attr.tabindex]': '-1',\n class: 'thy-checkbox',\n '[class.disabled]': '_disabled'\n },\n standalone: true,\n imports: [NgClass]\n})\nexport class ThyCheckbox extends ThyFormCheckBaseComponent {\n isIndeterminate = false;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @description.en-us Set the indeterminate state, responsible only for style control\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyIndeterminate(value: boolean) {\n this.isIndeterminate = value;\n }\n}\n","<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate': isIndeterminate, 'form-check-no-label-text': !_labelText }\"\n [checked]=\"_innerValue\"\n (change)=\"change()\"\n type=\"checkbox\"\n [attr.tabindex]=\"tabIndex\"\n [disabled]=\"_disabled\" />\n@if (_labelText) {\n <span class=\"form-check-label\">{{ _labelText }}</span>\n}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ThyCheckbox } from './checkbox.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ThyCheckbox],\n exports: [ThyCheckbox]\n})\nexport class ThyCheckboxModule {}\n","export * from './module';\nexport * from './checkbox.component';\n// export * from './checkbox-group.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOA;;;;AAIG;AAmBG,MAAO,WAAY,SAAQ,yBAAyB,CAAA;AAlB1D,IAAA,WAAA,GAAA;;QAmBI,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AAW3B,KAAA;AATG;;;;AAIG;IACH,IACI,gBAAgB,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;KAChC;8GAXQ,WAAW,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,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,EAAE,CAAA;;;ME7BlC,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHhB,YAAY,EAAE,WAAW,EAAE,WAAW,aACtC,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEZ,iBAAiB,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG1B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;oBACjD,OAAO,EAAE,CAAC,WAAW,CAAC;AACzB,iBAAA,CAAA;;;ACND;;ACFA;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-checkbox.mjs","sources":["../../../src/checkbox/checkbox.component.ts","../../../src/checkbox/checkbox.component.html","../../../src/checkbox/module.ts","../../../src/checkbox/index.ts","../../../src/checkbox/ngx-tethys-checkbox.ts"],"sourcesContent":["import { Component, forwardRef, Input } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';\nimport { NgClass } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\n/**\n * 多选框组件\n * @name thy-checkbox,[thy-checkbox],[thyCheckbox]\n * @order 10\n */\n@Component({\n selector: 'thy-checkbox,[thy-checkbox],[thyCheckbox]',\n templateUrl: './checkbox.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ThyCheckbox),\n multi: true\n }\n ],\n host: {\n '[attr.tabindex]': '-1',\n class: 'thy-checkbox',\n '[class.disabled]': '_disabled'\n },\n standalone: true,\n imports: [NgClass]\n})\nexport class ThyCheckbox extends ThyFormCheckBaseComponent {\n isIndeterminate = false;\n\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @description.en-us Set the indeterminate state, responsible only for style control\n * @default false\n */\n @Input({ transform: coerceBooleanProperty })\n set thyIndeterminate(value: boolean) {\n this.isIndeterminate = value;\n }\n}\n","<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate': isIndeterminate, 'form-check-no-label-text': !_labelText }\"\n [checked]=\"_innerValue\"\n (change)=\"change()\"\n type=\"checkbox\"\n [attr.tabindex]=\"tabIndex\"\n [disabled]=\"_disabled\" />\n@if (_labelText) {\n <span class=\"form-check-label\">{{ _labelText }}</span>\n}\n<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ThyCheckbox } from './checkbox.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ThyCheckbox],\n exports: [ThyCheckbox]\n})\nexport class ThyCheckboxModule {}\n","export * from './module';\nexport * from './checkbox.component';\n// export * from './checkbox-group.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;AAIG;AAmBG,MAAO,WAAY,SAAQ,yBAAyB,CAAA;AAlB1D,IAAA,WAAA,GAAA;;QAmBI,IAAe,CAAA,eAAA,GAAG,KAAK,CAAC;AAW3B,KAAA;AATG;;;;AAIG;IACH,IACI,gBAAgB,CAAC,KAAc,EAAA;AAC/B,QAAA,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;KAChC;8GAXQ,WAAW,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,E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ME5BlC,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHhB,YAAY,EAAE,WAAW,EAAE,WAAW,aACtC,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEZ,iBAAiB,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG1B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;oBACjD,OAAO,EAAE,CAAC,WAAW,CAAC;AACzB,iBAAA,CAAA;;;ACND;;ACFA;;AAEG;;;;"}
@@ -11,6 +11,7 @@ import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
11
11
  import { ThyIcon, ThyIconModule } from 'ngx-tethys/icon';
12
12
  import { NgClass, NgTemplateOutlet, NgStyle, CommonModule } from '@angular/common';
13
13
  import { coerceBooleanProperty } from 'ngx-tethys/util';
14
+ import { injectLocale } from 'ngx-tethys/i18n';
14
15
  import { FocusMonitor } from '@angular/cdk/a11y';
15
16
  import { Platform } from '@angular/cdk/platform';
16
17
  import { ThyOverlayDirectiveBase, mixinTabIndex, mixinDisabled } from 'ngx-tethys/core';
@@ -840,6 +841,7 @@ class ThyColorPickerPanel {
840
841
  this.thyPopover = inject(ThyPopover);
841
842
  this.viewContainerRef = inject(ViewContainerRef);
842
843
  this.thyPopoverRef = inject(ThyPopoverRef);
844
+ this.locale = injectLocale('colorPicker');
843
845
  this.className = true;
844
846
  this.recentColors = [];
845
847
  }
@@ -899,13 +901,13 @@ class ThyColorPickerPanel {
899
901
  return hsp > 192 ? 'black' : 'white';
900
902
  }
901
903
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyColorPickerPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
902
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyColorPickerPanel, isStandalone: true, selector: "thy-color-picker-panel", inputs: { color: "color", colorChange: "colorChange", defaultColor: "defaultColor", transparentColorSelectable: ["transparentColorSelectable", "transparentColorSelectable", coerceBooleanProperty], defaultColors: "defaultColors" }, host: { properties: { "class.pt-4": "!transparentColorSelectable", "class.thy-color-picker-panel": "this.className" } }, ngImport: i0, template: "@if (customDefaultColor) {\n <div class=\"quick-color\" [ngClass]=\"transparentColorSelectable ? ' mb-0 pb-0' : ''\" (click)=\"selectColor(defaultColor)\">\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: defaultColor }\"></ng-template>\n <span class=\"ml-2 font-size-sm text-secondary\">\u9ED8\u8BA4\u989C\u8272</span>\n </div>\n}\n@if (transparentColorSelectable) {\n <div class=\"quick-color\" [ngClass]=\"customDefaultColor ? 'mt-0 pt-0' : ''\" (click)=\"selectColor('transparent')\">\n <div class=\"color-block\"></div>\n <span class=\"ml-2 font-size-sm text-secondary\">\u65E0\u586B\u5145\u8272</span>\n </div>\n}\n<div class=\"main-content\">\n <div class=\"default-color\">\n @for (item of defaultColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n </div>\n <p class=\"font-size-sm text-secondary recent-text\">\u6700\u8FD1\u4F7F\u7528\u81EA\u5B9A\u4E49\u989C\u8272</p>\n <div class=\"recent-color-container\">\n @for (item of recentColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n @if (recentColors.length === 0) {\n <div class=\"font-size-sm px-1 text-muted\">\u6682\u65E0</div>\n }\n </div>\n</div>\n<div class=\"more-color\" (click)=\"showMoreColor($event)\">\n <thy-icon thyIconName=\"palette\" class=\"mr-2\"></thy-icon>\n <span class=\"font-size-sm custom-text\">\u81EA\u5B9A\u4E49\u989C\u8272</span>\n <thy-icon thyDropdownMenuItemExtendIcon thyIconName=\"angle-right\"></thy-icon>\n</div>\n\n<ng-template #checkIconTpl let-colorItem>\n <div\n class=\"color-item\"\n [ngStyle]=\"{ background: colorItem }\"\n [ngClass]=\"colorItem === '#FFFFFF' ? 'item-border' : ''\"\n (click)=\"selectColor(colorItem)\">\n <thy-icon\n thyIconName=\"check-thick\"\n class=\"check-icon\"\n [ngClass]=\"\n color === colorItem ? (getIconColor(colorItem) === 'white' ? 'checked white-check' : 'checked black-check') : ''\n \"></thy-icon>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
904
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyColorPickerPanel, isStandalone: true, selector: "thy-color-picker-panel", inputs: { color: "color", colorChange: "colorChange", defaultColor: "defaultColor", transparentColorSelectable: ["transparentColorSelectable", "transparentColorSelectable", coerceBooleanProperty], defaultColors: "defaultColors" }, host: { properties: { "class.pt-4": "!transparentColorSelectable", "class.thy-color-picker-panel": "this.className" } }, ngImport: i0, template: "@if (customDefaultColor) {\n <div class=\"quick-color\" [ngClass]=\"transparentColorSelectable ? ' mb-0 pb-0' : ''\" (click)=\"selectColor(defaultColor)\">\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: defaultColor }\"></ng-template>\n <span class=\"ml-2 font-size-sm text-secondary\">{{ locale().defaultColor }}</span>\n </div>\n}\n@if (transparentColorSelectable) {\n <div class=\"quick-color\" [ngClass]=\"customDefaultColor ? 'mt-0 pt-0' : ''\" (click)=\"selectColor('transparent')\">\n <div class=\"color-block\"></div>\n <span class=\"ml-2 font-size-sm text-secondary\">{{ locale().noFillColor }}</span>\n </div>\n}\n<div class=\"main-content\">\n <div class=\"default-color\">\n @for (item of defaultColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n </div>\n <p class=\"font-size-sm text-secondary recent-text\">{{ locale().recentUsedColor }}</p>\n <div class=\"recent-color-container\">\n @for (item of recentColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n @if (recentColors.length === 0) {\n <div class=\"font-size-sm px-1 text-muted\">{{ locale().none }}</div>\n }\n </div>\n</div>\n<div class=\"more-color\" (click)=\"showMoreColor($event)\">\n <thy-icon thyIconName=\"palette\" class=\"mr-2\"></thy-icon>\n <span class=\"font-size-sm custom-text\">{{ locale().customColor }}</span>\n <thy-icon thyDropdownMenuItemExtendIcon thyIconName=\"angle-right\"></thy-icon>\n</div>\n\n<ng-template #checkIconTpl let-colorItem>\n <div\n class=\"color-item\"\n [ngStyle]=\"{ background: colorItem }\"\n [ngClass]=\"colorItem === '#FFFFFF' ? 'item-border' : ''\"\n (click)=\"selectColor(colorItem)\">\n <thy-icon\n thyIconName=\"check-thick\"\n class=\"check-icon\"\n [ngClass]=\"\n color === colorItem ? (getIconColor(colorItem) === 'white' ? 'checked white-check' : 'checked black-check') : ''\n \"></thy-icon>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
903
905
  }
904
906
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyColorPickerPanel, decorators: [{
905
907
  type: Component,
906
908
  args: [{ selector: 'thy-color-picker-panel', changeDetection: ChangeDetectionStrategy.OnPush, host: {
907
909
  '[class.pt-4]': '!transparentColorSelectable'
908
- }, standalone: true, imports: [NgClass, NgTemplateOutlet, ThyIcon, NgStyle], template: "@if (customDefaultColor) {\n <div class=\"quick-color\" [ngClass]=\"transparentColorSelectable ? ' mb-0 pb-0' : ''\" (click)=\"selectColor(defaultColor)\">\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: defaultColor }\"></ng-template>\n <span class=\"ml-2 font-size-sm text-secondary\">\u9ED8\u8BA4\u989C\u8272</span>\n </div>\n}\n@if (transparentColorSelectable) {\n <div class=\"quick-color\" [ngClass]=\"customDefaultColor ? 'mt-0 pt-0' : ''\" (click)=\"selectColor('transparent')\">\n <div class=\"color-block\"></div>\n <span class=\"ml-2 font-size-sm text-secondary\">\u65E0\u586B\u5145\u8272</span>\n </div>\n}\n<div class=\"main-content\">\n <div class=\"default-color\">\n @for (item of defaultColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n </div>\n <p class=\"font-size-sm text-secondary recent-text\">\u6700\u8FD1\u4F7F\u7528\u81EA\u5B9A\u4E49\u989C\u8272</p>\n <div class=\"recent-color-container\">\n @for (item of recentColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n @if (recentColors.length === 0) {\n <div class=\"font-size-sm px-1 text-muted\">\u6682\u65E0</div>\n }\n </div>\n</div>\n<div class=\"more-color\" (click)=\"showMoreColor($event)\">\n <thy-icon thyIconName=\"palette\" class=\"mr-2\"></thy-icon>\n <span class=\"font-size-sm custom-text\">\u81EA\u5B9A\u4E49\u989C\u8272</span>\n <thy-icon thyDropdownMenuItemExtendIcon thyIconName=\"angle-right\"></thy-icon>\n</div>\n\n<ng-template #checkIconTpl let-colorItem>\n <div\n class=\"color-item\"\n [ngStyle]=\"{ background: colorItem }\"\n [ngClass]=\"colorItem === '#FFFFFF' ? 'item-border' : ''\"\n (click)=\"selectColor(colorItem)\">\n <thy-icon\n thyIconName=\"check-thick\"\n class=\"check-icon\"\n [ngClass]=\"\n color === colorItem ? (getIconColor(colorItem) === 'white' ? 'checked white-check' : 'checked black-check') : ''\n \"></thy-icon>\n </div>\n</ng-template>\n" }]
910
+ }, standalone: true, imports: [NgClass, NgTemplateOutlet, ThyIcon, NgStyle], template: "@if (customDefaultColor) {\n <div class=\"quick-color\" [ngClass]=\"transparentColorSelectable ? ' mb-0 pb-0' : ''\" (click)=\"selectColor(defaultColor)\">\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: defaultColor }\"></ng-template>\n <span class=\"ml-2 font-size-sm text-secondary\">{{ locale().defaultColor }}</span>\n </div>\n}\n@if (transparentColorSelectable) {\n <div class=\"quick-color\" [ngClass]=\"customDefaultColor ? 'mt-0 pt-0' : ''\" (click)=\"selectColor('transparent')\">\n <div class=\"color-block\"></div>\n <span class=\"ml-2 font-size-sm text-secondary\">{{ locale().noFillColor }}</span>\n </div>\n}\n<div class=\"main-content\">\n <div class=\"default-color\">\n @for (item of defaultColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n </div>\n <p class=\"font-size-sm text-secondary recent-text\">{{ locale().recentUsedColor }}</p>\n <div class=\"recent-color-container\">\n @for (item of recentColors; track $index) {\n <ng-template [ngTemplateOutlet]=\"checkIconTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-template>\n }\n @if (recentColors.length === 0) {\n <div class=\"font-size-sm px-1 text-muted\">{{ locale().none }}</div>\n }\n </div>\n</div>\n<div class=\"more-color\" (click)=\"showMoreColor($event)\">\n <thy-icon thyIconName=\"palette\" class=\"mr-2\"></thy-icon>\n <span class=\"font-size-sm custom-text\">{{ locale().customColor }}</span>\n <thy-icon thyDropdownMenuItemExtendIcon thyIconName=\"angle-right\"></thy-icon>\n</div>\n\n<ng-template #checkIconTpl let-colorItem>\n <div\n class=\"color-item\"\n [ngStyle]=\"{ background: colorItem }\"\n [ngClass]=\"colorItem === '#FFFFFF' ? 'item-border' : ''\"\n (click)=\"selectColor(colorItem)\">\n <thy-icon\n thyIconName=\"check-thick\"\n class=\"check-icon\"\n [ngClass]=\"\n color === colorItem ? (getIconColor(colorItem) === 'white' ? 'checked white-check' : 'checked black-check') : ''\n \"></thy-icon>\n </div>\n</ng-template>\n" }]
909
911
  }], propDecorators: { className: [{
910
912
  type: HostBinding,
911
913
  args: ['class.thy-color-picker-panel']