rd-outer-component 0.0.20 → 0.0.21

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 (28) hide show
  1. package/esm2020/lib/modules/custom-checkbox/custom-checkbox.component.mjs +2 -2
  2. package/esm2020/lib/modules/custom-date/custom-date.component.mjs +2 -2
  3. package/esm2020/lib/modules/custom-filter/custom-filter.component.mjs +2 -2
  4. package/esm2020/lib/modules/custom-input/custom-input.component.mjs +2 -2
  5. package/esm2020/lib/modules/custom-input-amount/custom-input-amount.component.mjs +3 -3
  6. package/esm2020/lib/modules/custom-radio/custom-radio.component.mjs +2 -2
  7. package/esm2020/lib/modules/custom-select/custom-select.component.mjs +3 -3
  8. package/esm2020/lib/modules/custom-select/index.mjs +4 -1
  9. package/esm2020/lib/modules/custom-select/pure-select-token/pure-select-token.component.mjs +78 -0
  10. package/esm2020/lib/modules/custom-select/pure-select-token/pure-select-token.module.mjs +43 -0
  11. package/esm2020/lib/modules/custom-select/pure-select-token/pure-select-token.type.mjs +2 -0
  12. package/esm2020/lib/modules/custom-textarea/custom-textarea.component.mjs +2 -2
  13. package/esm2020/lib/modules/form-item/form-item.component.mjs +30 -0
  14. package/esm2020/lib/modules/form-item/form-item.module.mjs +18 -0
  15. package/fesm2015/rd-outer-component.mjs +172 -24
  16. package/fesm2015/rd-outer-component.mjs.map +1 -1
  17. package/fesm2020/rd-outer-component.mjs +170 -24
  18. package/fesm2020/rd-outer-component.mjs.map +1 -1
  19. package/lib/modules/custom-input-amount/custom-input-amount.component.d.ts +1 -1
  20. package/lib/modules/custom-select/index.d.ts +3 -0
  21. package/lib/modules/custom-select/pure-select-token/pure-select-token.component.d.ts +31 -0
  22. package/lib/modules/custom-select/pure-select-token/pure-select-token.module.d.ts +13 -0
  23. package/lib/modules/custom-select/pure-select-token/pure-select-token.type.d.ts +6 -0
  24. package/lib/modules/form-item/form-item.component.d.ts +12 -0
  25. package/lib/modules/form-item/form-item.module.d.ts +8 -0
  26. package/package.json +1 -1
  27. package/src/lib/assets/img/no-data.svg +6 -0
  28. package/src/lib/assets/scss/form-item.scss +5 -4
@@ -35,5 +35,5 @@ export declare class CustomInputAmountComponent implements ControlValueAccessor,
35
35
  validate(control: AbstractControl): ValidationErrors | null;
36
36
  writeValue(value: string | number | null): void;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputAmountComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "required": "required"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; }, never, ["*"], false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputAmountComponent, "app-rd-input-amount", never, { "label": "label"; "symbol": "symbol"; "name": "name"; "disabled": "disabled"; "min": "min"; "max": "max"; "nzPrecision": "nzPrecision"; "required": "required"; "errorMessages": "errorMessages"; }, { "valueChange": "valueChange"; }, never, ["[slot='token']", "*"], false, never>;
39
39
  }
@@ -1,2 +1,5 @@
1
1
  export * from './custom-select.component';
2
2
  export * from './custom-select.module';
3
+ export * from './pure-select-token/pure-select-token.type';
4
+ export * from './pure-select-token/pure-select-token.component';
5
+ export * from './pure-select-token/pure-select-token.module';
@@ -0,0 +1,31 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { ITokenSelectOption } from './pure-select-token.type';
4
+ import * as i0 from "@angular/core";
5
+ export interface ISelectOption {
6
+ value: string;
7
+ name: string;
8
+ iconUrl: string;
9
+ disabled?: boolean;
10
+ }
11
+ export declare class PureSelectTokenComponent implements ControlValueAccessor, OnInit {
12
+ disabled: boolean;
13
+ tokens: ITokenSelectOption[];
14
+ label: string;
15
+ value: string | null;
16
+ isLoading: boolean;
17
+ isFocus: boolean;
18
+ isOpen: boolean;
19
+ ngOnInit(): void;
20
+ onChange: (_: any) => void;
21
+ onTouched: () => void;
22
+ writeValue(value: string | null): void;
23
+ registerOnChange(fn: any): void;
24
+ registerOnTouched(fn: any): void;
25
+ setDisabledState(isDisabled: boolean): void;
26
+ handleValueChange(value: string): void;
27
+ handleOpenChange(value: boolean): void;
28
+ getIconUrl(token: string): string;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<PureSelectTokenComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<PureSelectTokenComponent, "app-rd-pure-select-token", never, { "disabled": "disabled"; "tokens": "tokens"; "label": "label"; }, {}, never, never, false, never>;
31
+ }
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./pure-select-token.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "ng-zorro-antd/spin";
6
+ import * as i5 from "ng-zorro-antd/select";
7
+ import * as i6 from "../../form-item/form-item.module";
8
+ import * as i7 from "ng-zorro-antd/avatar";
9
+ export declare class RdPureSelectTokenModule {
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RdPureSelectTokenModule, never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RdPureSelectTokenModule, [typeof i1.PureSelectTokenComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.NzSpinModule, typeof i5.NzSelectModule, typeof i6.FormItemModule, typeof i7.NzAvatarModule], [typeof i1.PureSelectTokenComponent]>;
12
+ static ɵinj: i0.ɵɵInjectorDeclaration<RdPureSelectTokenModule>;
13
+ }
@@ -0,0 +1,6 @@
1
+ export interface ITokenSelectOption {
2
+ value: string;
3
+ name: string;
4
+ disabled?: boolean;
5
+ iconUrl?: string;
6
+ }
@@ -0,0 +1,12 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormItemComponent {
3
+ errorMessage?: string;
4
+ disabled?: boolean;
5
+ label?: string;
6
+ type?: 'select';
7
+ focus?: boolean;
8
+ size?: 'small' | 'normal';
9
+ get isShowSelectIcon(): boolean;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "app-rd-form-item", never, { "errorMessage": "errorMessage"; "disabled": "disabled"; "label": "label"; "type": "type"; "focus": "focus"; "size": "size"; }, {}, never, ["*"], false, never>;
12
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./form-item.component";
3
+ import * as i2 from "@angular/common";
4
+ export declare class FormItemModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormItemModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormItemModule, [typeof i1.FormItemComponent], [typeof i2.CommonModule], [typeof i1.FormItemComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormItemModule>;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rd-outer-component",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
@@ -0,0 +1,6 @@
1
+ <svg width="61" height="68" viewBox="0 0 61 68" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.6865 5.29492L19.2978 22.5046" stroke="#D1D5DB" stroke-width="1.37052"/>
3
+ <path d="M0 9H50.7093V67.9324H10.9642C4.90883 67.9324 0 63.0236 0 56.9682V9Z" fill="#F3F4F6"/>
4
+ <path d="M11.7318 7.5053C11.6338 7.13974 11.2581 6.9228 10.8925 7.02075C10.5269 7.1187 10.31 7.49446 10.4079 7.86002L11.7318 7.5053ZM9.32173 22.3397L9.98364 22.1624L5.9044 6.93844L5.24249 7.1158L4.58058 7.29316L8.65982 22.5171L9.32173 22.3397ZM11.0698 7.68266L10.4079 7.86002L13.9551 21.0982L14.617 20.9209L15.2789 20.7435L11.7318 7.5053L11.0698 7.68266ZM14.5092 4.63278L13.8473 4.81014L14.7341 8.11969L15.396 7.94233L16.0579 7.76497L15.1711 4.45542L14.5092 4.63278ZM12.6788 24.278L12.5014 23.616C11.4048 23.9099 10.2775 23.2591 9.98364 22.1624L9.32173 22.3397L8.65982 22.5171C9.14958 24.3449 11.0283 25.4296 12.8562 24.9399L12.6788 24.278ZM12.6788 24.278L12.8562 24.9399C14.684 24.4501 15.7687 22.5713 15.2789 20.7435L14.617 20.9209L13.9551 21.0982C14.249 22.1949 13.5981 23.3222 12.5014 23.616L12.6788 24.278ZM8.63435 1.24091L8.81171 1.90282C11.0051 1.31511 13.2596 2.61676 13.8473 4.81014L14.5092 4.63278L15.1711 4.45542C14.3875 1.53092 11.3815 -0.204617 8.45699 0.579002L8.63435 1.24091ZM8.63435 1.24091L8.45699 0.579002C5.53249 1.36262 3.79696 4.36866 4.58058 7.29316L5.24249 7.1158L5.9044 6.93844C5.31668 4.74506 6.61833 2.49054 8.81171 1.90282L8.63435 1.24091Z" fill="#D1D5DB"/>
5
+ <path opacity="0.5" d="M60.3027 57.0361C60.3026 63.0913 55.3941 67.9999 49.3389 68H8.22266C14.2779 68 19.1874 63.0914 19.1875 57.0361V52.9248H60.3027V57.0361Z" fill="#367AF6" fill-opacity="0.2"/>
6
+ </svg>
@@ -116,8 +116,8 @@
116
116
 
117
117
  .form-number-item {
118
118
  position: relative;
119
- border-radius: 12px;
120
- padding: 12px 6px;
119
+ border-radius: 4px;
120
+ padding: 12px 16px;
121
121
  background-color: #fff;
122
122
  border: 1px solid #e5e7eb;
123
123
  width: 100%;
@@ -126,8 +126,8 @@
126
126
  .item-label {
127
127
  color: #6b7280;
128
128
  font-size: 12px;
129
- padding: 0 12px;
130
- font-weight: 500;
129
+ // padding: 0 12px;
130
+ font-weight: 600;
131
131
  }
132
132
 
133
133
  .item-content {
@@ -145,6 +145,7 @@
145
145
  line-height: 48px;
146
146
  color: #030712;
147
147
  border: none;
148
+ padding: 4px 0;
148
149
 
149
150
  &:focus,
150
151
  &:active,