@geoit/ui 0.0.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/AGENTS.md +25 -0
- package/README.md +46 -0
- package/ai/AGENTS.md +86 -0
- package/ai/README.md +44 -0
- package/ai/catalog.json +882 -0
- package/ai/components/geo-alert.md +56 -0
- package/ai/components/geo-back-button.md +54 -0
- package/ai/components/geo-breadcrumb.md +52 -0
- package/ai/components/geo-button.md +63 -0
- package/ai/components/geo-checkbox.md +54 -0
- package/ai/components/geo-column-picker.md +54 -0
- package/ai/components/geo-confirm-modal.md +70 -0
- package/ai/components/geo-date-picker.md +65 -0
- package/ai/components/geo-date-range-picker.md +64 -0
- package/ai/components/geo-file-picker.md +62 -0
- package/ai/components/geo-form-modal.md +88 -0
- package/ai/components/geo-icon.md +53 -0
- package/ai/components/geo-input.md +65 -0
- package/ai/components/geo-page-title.md +53 -0
- package/ai/components/geo-pagination.md +59 -0
- package/ai/components/geo-radio.md +67 -0
- package/ai/components/geo-row-actions.md +54 -0
- package/ai/components/geo-select.md +68 -0
- package/ai/components/geo-slider.md +56 -0
- package/ai/components/geo-status-tag.md +51 -0
- package/ai/components/geo-step-form-layout.md +81 -0
- package/ai/components/geo-stepper.md +63 -0
- package/ai/components/geo-table-filter.md +65 -0
- package/ai/components/geo-table-pagination.md +59 -0
- package/ai/components/geo-table-toolbar.md +64 -0
- package/ai/components/geo-table.md +98 -0
- package/ai/components/geo-tabs.md +62 -0
- package/ai/components/geo-textarea.md +59 -0
- package/ai/components/geo-toast.md +61 -0
- package/ai/components/geo-tree.md +58 -0
- package/ai/components/geo-typography.md +57 -0
- package/ai/components/geo-upload.md +78 -0
- package/ai/recipes.md +111 -0
- package/esm2022/geoit-ui.mjs +5 -0
- package/esm2022/lib/figma/geo-alert/geo-alert.component.mjs +58 -0
- package/esm2022/lib/figma/geo-alert/geo-alert.types.mjs +7 -0
- package/esm2022/lib/figma/geo-back-button/geo-back-button.component.mjs +48 -0
- package/esm2022/lib/figma/geo-breadcrumb/geo-breadcrumb.component.mjs +33 -0
- package/esm2022/lib/figma/geo-breadcrumb/geo-breadcrumb.types.mjs +2 -0
- package/esm2022/lib/figma/geo-button/geo-button.component.mjs +77 -0
- package/esm2022/lib/figma/geo-button/geo-button.types.mjs +2 -0
- package/esm2022/lib/figma/geo-checkbox/geo-checkbox.component.mjs +34 -0
- package/esm2022/lib/figma/geo-confirm-modal/geo-confirm-modal.component.mjs +76 -0
- package/esm2022/lib/figma/geo-confirm-modal/geo-confirm-modal.types.mjs +2 -0
- package/esm2022/lib/figma/geo-date-picker/geo-date-picker.component.mjs +119 -0
- package/esm2022/lib/figma/geo-date-picker/geo-date-picker.types.mjs +2 -0
- package/esm2022/lib/figma/geo-date-range-picker/geo-date-range-picker.component.mjs +116 -0
- package/esm2022/lib/figma/geo-date-range-picker/geo-date-range-picker.types.mjs +2 -0
- package/esm2022/lib/figma/geo-file-picker/geo-file-picker.component.mjs +145 -0
- package/esm2022/lib/figma/geo-file-picker/geo-file-picker.types.mjs +2 -0
- package/esm2022/lib/figma/geo-form-modal/geo-form-modal.component.mjs +153 -0
- package/esm2022/lib/figma/geo-icon/geo-icon.component.mjs +51 -0
- package/esm2022/lib/figma/geo-icon/geo-icon.types.mjs +8 -0
- package/esm2022/lib/figma/geo-input/geo-input.component.mjs +118 -0
- package/esm2022/lib/figma/geo-page-title/geo-page-title.component.mjs +51 -0
- package/esm2022/lib/figma/geo-pagination/geo-pagination.component.mjs +54 -0
- package/esm2022/lib/figma/geo-radio/geo-radio.component.mjs +95 -0
- package/esm2022/lib/figma/geo-radio/geo-radio.types.mjs +2 -0
- package/esm2022/lib/figma/geo-select/geo-select.component.mjs +113 -0
- package/esm2022/lib/figma/geo-select/geo-select.types.mjs +2 -0
- package/esm2022/lib/figma/geo-slider/geo-slider.component.mjs +43 -0
- package/esm2022/lib/figma/geo-status-tag/geo-status-tag.component.mjs +62 -0
- package/esm2022/lib/figma/geo-status-tag/geo-status-tag.types.mjs +30 -0
- package/esm2022/lib/figma/geo-step-form-layout/geo-step-form-layout.component.mjs +157 -0
- package/esm2022/lib/figma/geo-step-form-layout/geo-step-form-layout.types.mjs +2 -0
- package/esm2022/lib/figma/geo-stepper/geo-stepper.component.mjs +77 -0
- package/esm2022/lib/figma/geo-stepper/geo-stepper.types.mjs +2 -0
- package/esm2022/lib/figma/geo-table/geo-column-picker/geo-column-picker.component.mjs +65 -0
- package/esm2022/lib/figma/geo-table/geo-column-picker/geo-column-picker.storage.mjs +31 -0
- package/esm2022/lib/figma/geo-table/geo-column-picker/geo-column-picker.types.mjs +2 -0
- package/esm2022/lib/figma/geo-table/geo-row-actions/geo-row-actions.component.mjs +64 -0
- package/esm2022/lib/figma/geo-table/geo-row-actions/geo-row-actions.types.mjs +24 -0
- package/esm2022/lib/figma/geo-table/geo-table-filter/geo-table-filter.component.mjs +195 -0
- package/esm2022/lib/figma/geo-table/geo-table-pagination/geo-table-pagination.component.mjs +118 -0
- package/esm2022/lib/figma/geo-table/geo-table-toolbar/geo-table-toolbar.component.mjs +68 -0
- package/esm2022/lib/figma/geo-table/geo-table.component.mjs +381 -0
- package/esm2022/lib/figma/geo-table/geo-table.types.mjs +4 -0
- package/esm2022/lib/figma/geo-tabs/geo-tabs.component.mjs +94 -0
- package/esm2022/lib/figma/geo-tabs/geo-tabs.types.mjs +2 -0
- package/esm2022/lib/figma/geo-textarea/geo-textarea.component.mjs +85 -0
- package/esm2022/lib/figma/geo-toast/geo-toast.component.mjs +57 -0
- package/esm2022/lib/figma/geo-toast/geo-toast.service.mjs +116 -0
- package/esm2022/lib/figma/geo-toast/geo-toast.types.mjs +13 -0
- package/esm2022/lib/figma/geo-tree/geo-tree.component.mjs +52 -0
- package/esm2022/lib/figma/geo-tree/geo-tree.types.mjs +2 -0
- package/esm2022/lib/figma/geo-typography/geo-typography.component.mjs +112 -0
- package/esm2022/lib/figma/geo-typography/geo-typography.types.mjs +96 -0
- package/esm2022/lib/figma/geo-upload/geo-upload.component.mjs +218 -0
- package/esm2022/lib/figma/geo-upload/geo-upload.types.mjs +30 -0
- package/esm2022/lib/figma/index.mjs +56 -0
- package/esm2022/lib/ng-zorro/ng-zorro-antd.module.mjs +293 -0
- package/esm2022/lib/styles/tokens.mjs +144 -0
- package/esm2022/public-api.mjs +7 -0
- package/fesm2022/geoit-ui.mjs +3805 -0
- package/fesm2022/geoit-ui.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/figma/geo-alert/geo-alert.component.d.ts +17 -0
- package/lib/figma/geo-alert/geo-alert.types.d.ts +2 -0
- package/lib/figma/geo-back-button/geo-back-button.component.d.ts +18 -0
- package/lib/figma/geo-breadcrumb/geo-breadcrumb.component.d.ts +12 -0
- package/lib/figma/geo-breadcrumb/geo-breadcrumb.types.d.ts +10 -0
- package/lib/figma/geo-button/geo-button.component.d.ts +27 -0
- package/lib/figma/geo-button/geo-button.types.d.ts +4 -0
- package/lib/figma/geo-checkbox/geo-checkbox.component.d.ts +12 -0
- package/lib/figma/geo-confirm-modal/geo-confirm-modal.component.d.ts +24 -0
- package/lib/figma/geo-confirm-modal/geo-confirm-modal.types.d.ts +5 -0
- package/lib/figma/geo-date-picker/geo-date-picker.component.d.ts +35 -0
- package/lib/figma/geo-date-picker/geo-date-picker.types.d.ts +2 -0
- package/lib/figma/geo-date-range-picker/geo-date-range-picker.component.d.ts +34 -0
- package/lib/figma/geo-date-range-picker/geo-date-range-picker.types.d.ts +2 -0
- package/lib/figma/geo-file-picker/geo-file-picker.component.d.ts +39 -0
- package/lib/figma/geo-file-picker/geo-file-picker.types.d.ts +4 -0
- package/lib/figma/geo-form-modal/geo-form-modal.component.d.ts +57 -0
- package/lib/figma/geo-icon/geo-icon.component.d.ts +19 -0
- package/lib/figma/geo-icon/geo-icon.types.d.ts +3 -0
- package/lib/figma/geo-input/geo-input.component.d.ts +37 -0
- package/lib/figma/geo-page-title/geo-page-title.component.d.ts +22 -0
- package/lib/figma/geo-pagination/geo-pagination.component.d.ts +21 -0
- package/lib/figma/geo-radio/geo-radio.component.d.ts +31 -0
- package/lib/figma/geo-radio/geo-radio.types.d.ts +9 -0
- package/lib/figma/geo-select/geo-select.component.d.ts +33 -0
- package/lib/figma/geo-select/geo-select.types.d.ts +7 -0
- package/lib/figma/geo-slider/geo-slider.component.d.ts +17 -0
- package/lib/figma/geo-status-tag/geo-status-tag.component.d.ts +18 -0
- package/lib/figma/geo-status-tag/geo-status-tag.types.d.ts +13 -0
- package/lib/figma/geo-step-form-layout/geo-step-form-layout.component.d.ts +67 -0
- package/lib/figma/geo-step-form-layout/geo-step-form-layout.types.d.ts +9 -0
- package/lib/figma/geo-stepper/geo-stepper.component.d.ts +42 -0
- package/lib/figma/geo-stepper/geo-stepper.types.d.ts +9 -0
- package/lib/figma/geo-table/geo-column-picker/geo-column-picker.component.d.ts +20 -0
- package/lib/figma/geo-table/geo-column-picker/geo-column-picker.storage.d.ts +5 -0
- package/lib/figma/geo-table/geo-column-picker/geo-column-picker.types.d.ts +17 -0
- package/lib/figma/geo-table/geo-row-actions/geo-row-actions.component.d.ts +21 -0
- package/lib/figma/geo-table/geo-row-actions/geo-row-actions.types.d.ts +13 -0
- package/lib/figma/geo-table/geo-table-filter/geo-table-filter.component.d.ts +75 -0
- package/lib/figma/geo-table/geo-table-pagination/geo-table-pagination.component.d.ts +33 -0
- package/lib/figma/geo-table/geo-table-toolbar/geo-table-toolbar.component.d.ts +24 -0
- package/lib/figma/geo-table/geo-table.component.d.ts +113 -0
- package/lib/figma/geo-table/geo-table.types.d.ts +47 -0
- package/lib/figma/geo-tabs/geo-tabs.component.d.ts +31 -0
- package/lib/figma/geo-tabs/geo-tabs.types.d.ts +7 -0
- package/lib/figma/geo-textarea/geo-textarea.component.d.ts +27 -0
- package/lib/figma/geo-toast/geo-toast.component.d.ts +23 -0
- package/lib/figma/geo-toast/geo-toast.service.d.ts +33 -0
- package/lib/figma/geo-toast/geo-toast.types.d.ts +45 -0
- package/lib/figma/geo-tree/geo-tree.component.d.ts +23 -0
- package/lib/figma/geo-tree/geo-tree.types.d.ts +12 -0
- package/lib/figma/geo-typography/geo-typography.component.d.ts +35 -0
- package/lib/figma/geo-typography/geo-typography.types.d.ts +12 -0
- package/lib/figma/geo-upload/geo-upload.component.d.ts +59 -0
- package/lib/figma/geo-upload/geo-upload.types.d.ts +13 -0
- package/lib/figma/index.d.ts +55 -0
- package/lib/ng-zorro/ng-zorro-antd.module.d.ts +76 -0
- package/lib/styles/tokens.d.ts +184 -0
- package/package.json +38 -0
- package/public-api.d.ts +3 -0
- package/src/lib/styles/design-tokens.scss +143 -0
- package/src/lib/styles/geo-toast-notification.scss +129 -0
- package/src/lib/styles/scrollbar.scss +38 -0
- package/src/lib/styles/theme.scss +153 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# geo-icon
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoIconComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Ant Design icon wrapper with GEO size/color tokens.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoIconComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoIconComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-icon`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`display`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Standalone icons; buttons usually use geo-button [icon].
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Do not hardcode icon hex colors — use color token names.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `type` | See component TS / Storybook Controls |
|
|
31
|
+
| `theme` | See component TS / Storybook Controls |
|
|
32
|
+
| `spin` | See component TS / Storybook Controls |
|
|
33
|
+
| `size` | See component TS / Storybook Controls |
|
|
34
|
+
| `color` | See component TS / Storybook Controls |
|
|
35
|
+
|
|
36
|
+
## Outputs
|
|
37
|
+
_None_
|
|
38
|
+
|
|
39
|
+
## Example
|
|
40
|
+
```html
|
|
41
|
+
<geo-icon type="search" size="md" color="primary"></geo-icon>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Source
|
|
45
|
+
`projects/geo-ui/src/lib/figma/geo-icon/geo-icon.component.ts`
|
|
46
|
+
|
|
47
|
+
## Storybook
|
|
48
|
+
GEO / related story for `geo-icon`
|
|
49
|
+
|
|
50
|
+
## Rules for AI
|
|
51
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
52
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
53
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# geo-input
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoInputComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Text input with label, validation, icons; CVA/ngModel.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoInputComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoInputComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-input`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Default text fields in forms.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Long text — use geo-textarea; select options — use geo-select.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `label` | See component TS / Storybook Controls |
|
|
31
|
+
| `placeholder` | See component TS / Storybook Controls |
|
|
32
|
+
| `type` | See component TS / Storybook Controls |
|
|
33
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
34
|
+
| `readonly` | See component TS / Storybook Controls |
|
|
35
|
+
| `required` | See component TS / Storybook Controls |
|
|
36
|
+
| `error` | See component TS / Storybook Controls |
|
|
37
|
+
| `errorMessage` | See component TS / Storybook Controls |
|
|
38
|
+
| `maxlength` | See component TS / Storybook Controls |
|
|
39
|
+
| `prefixIcon` | See component TS / Storybook Controls |
|
|
40
|
+
| `suffixIcon` | See component TS / Storybook Controls |
|
|
41
|
+
| `allowClear` | See component TS / Storybook Controls |
|
|
42
|
+
| `block` | See component TS / Storybook Controls |
|
|
43
|
+
| `width` | See component TS / Storybook Controls |
|
|
44
|
+
|
|
45
|
+
## Outputs
|
|
46
|
+
| Output | Notes |
|
|
47
|
+
|--------|-------|
|
|
48
|
+
| `valueChange` | EventEmitter |
|
|
49
|
+
| `enterPressed` | EventEmitter |
|
|
50
|
+
|
|
51
|
+
## Example
|
|
52
|
+
```html
|
|
53
|
+
<geo-input label="Họ tên" [required]="true" [block]="true" [(ngModel)]="name"></geo-input>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Source
|
|
57
|
+
`projects/geo-ui/src/lib/figma/geo-input/geo-input.component.ts`
|
|
58
|
+
|
|
59
|
+
## Storybook
|
|
60
|
+
GEO / related story for `geo-input`
|
|
61
|
+
|
|
62
|
+
## Rules for AI
|
|
63
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
64
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
65
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# geo-page-title
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoPageTitleComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Page title (uppercase) with short primary accent underline; uses geo-typography.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoPageTitleComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoPageTitleComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-page-title`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`display`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Top of detail/list pages, often under breadcrumb.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Modal titles — geo-form-modal has its own title.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `title` | See component TS / Storybook Controls |
|
|
31
|
+
| `uppercase` | See component TS / Storybook Controls |
|
|
32
|
+
| `accentWidth` | See component TS / Storybook Controls |
|
|
33
|
+
| `accentHeight` | See component TS / Storybook Controls |
|
|
34
|
+
| `level` | See component TS / Storybook Controls |
|
|
35
|
+
|
|
36
|
+
## Outputs
|
|
37
|
+
_None_
|
|
38
|
+
|
|
39
|
+
## Example
|
|
40
|
+
```html
|
|
41
|
+
<geo-page-title title="Thông tin chi tiết hồ sơ" [level]="3"></geo-page-title>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Source
|
|
45
|
+
`projects/geo-ui/src/lib/figma/geo-page-title/geo-page-title.component.ts`
|
|
46
|
+
|
|
47
|
+
## Storybook
|
|
48
|
+
GEO / related story for `geo-page-title`
|
|
49
|
+
|
|
50
|
+
## Rules for AI
|
|
51
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
52
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
53
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# geo-pagination
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoPaginationComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Standalone pagination control.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoPaginationComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoPaginationComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-pagination`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`navigation`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Paging outside geo-table.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Inside tables prefer geo-table / geo-table-pagination.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `pageIndex` | See component TS / Storybook Controls |
|
|
31
|
+
| `pageSize` | See component TS / Storybook Controls |
|
|
32
|
+
| `total` | See component TS / Storybook Controls |
|
|
33
|
+
| `size` | See component TS / Storybook Controls |
|
|
34
|
+
| `simple` | See component TS / Storybook Controls |
|
|
35
|
+
| `hideOnSinglePage` | See component TS / Storybook Controls |
|
|
36
|
+
| `showSizeChanger` | See component TS / Storybook Controls |
|
|
37
|
+
| `pageSizeOptions` | See component TS / Storybook Controls |
|
|
38
|
+
|
|
39
|
+
## Outputs
|
|
40
|
+
| Output | Notes |
|
|
41
|
+
|--------|-------|
|
|
42
|
+
| `pageIndexChange` | EventEmitter |
|
|
43
|
+
| `pageSizeChange` | EventEmitter |
|
|
44
|
+
|
|
45
|
+
## Example
|
|
46
|
+
```html
|
|
47
|
+
<geo-pagination [pageIndex]="1" [pageSize]="10" [total]="100" (pageIndexChange)="onPage($event)"></geo-pagination>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Source
|
|
51
|
+
`projects/geo-ui/src/lib/figma/geo-pagination/geo-pagination.component.ts`
|
|
52
|
+
|
|
53
|
+
## Storybook
|
|
54
|
+
GEO / related story for `geo-pagination`
|
|
55
|
+
|
|
56
|
+
## Rules for AI
|
|
57
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
58
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
59
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# geo-radio
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoRadioComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Radio group (horizontal/vertical or button style).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoRadioComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoRadioComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-radio`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Exclusive choice among few options.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Many options — use geo-select.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `options` | See component TS / Storybook Controls |
|
|
31
|
+
| `label` | See component TS / Storybook Controls |
|
|
32
|
+
| `size` | See component TS / Storybook Controls |
|
|
33
|
+
| `layout` | See component TS / Storybook Controls |
|
|
34
|
+
| `buttonStyle` | See component TS / Storybook Controls |
|
|
35
|
+
| `buttonAppearance` | See component TS / Storybook Controls |
|
|
36
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
37
|
+
| `required` | See component TS / Storybook Controls |
|
|
38
|
+
| `error` | See component TS / Storybook Controls |
|
|
39
|
+
| `errorMessage` | See component TS / Storybook Controls |
|
|
40
|
+
| `block` | See component TS / Storybook Controls |
|
|
41
|
+
|
|
42
|
+
## Outputs
|
|
43
|
+
| Output | Notes |
|
|
44
|
+
|--------|-------|
|
|
45
|
+
| `valueChange` | EventEmitter |
|
|
46
|
+
|
|
47
|
+
## Example
|
|
48
|
+
```html
|
|
49
|
+
<geo-radio
|
|
50
|
+
label="Loại yêu cầu"
|
|
51
|
+
layout="vertical"
|
|
52
|
+
[options]="[{ label: 'A', value: 'a' }, { label: 'B', value: 'b' }]"
|
|
53
|
+
[(ngModel)]="type"
|
|
54
|
+
[block]="true"
|
|
55
|
+
></geo-radio>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Source
|
|
59
|
+
`projects/geo-ui/src/lib/figma/geo-radio/geo-radio.component.ts`
|
|
60
|
+
|
|
61
|
+
## Storybook
|
|
62
|
+
GEO / related story for `geo-radio`
|
|
63
|
+
|
|
64
|
+
## Rules for AI
|
|
65
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
66
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
67
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# geo-row-actions
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoRowActionsComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Row action icons/menu (edit, more, custom).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoRowActionsComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoRowActionsComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-row-actions`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`data`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Actions column inside geo-table.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Page-level CTAs — use geo-button.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `actions` | See component TS / Storybook Controls |
|
|
31
|
+
| `primaryActionKey` | See component TS / Storybook Controls |
|
|
32
|
+
|
|
33
|
+
## Outputs
|
|
34
|
+
| Output | Notes |
|
|
35
|
+
|--------|-------|
|
|
36
|
+
| `actionClick` | EventEmitter |
|
|
37
|
+
| `edit` | EventEmitter |
|
|
38
|
+
| `more` | EventEmitter |
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
```html
|
|
42
|
+
<geo-row-actions [actions]="actions" (actionClick)="onAction($event)"></geo-row-actions>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Source
|
|
46
|
+
`projects/geo-ui/src/lib/figma/geo-table/geo-row-actions/geo-row-actions.component.ts`
|
|
47
|
+
|
|
48
|
+
## Storybook
|
|
49
|
+
GEO / related story for `geo-row-actions`
|
|
50
|
+
|
|
51
|
+
## Rules for AI
|
|
52
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
53
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
54
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# geo-select
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoSelectComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Select / multi-select dropdown.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoSelectComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoSelectComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-select`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Choosing from a list of options.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
2–3 exclusive options may use geo-radio instead.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `options` | See component TS / Storybook Controls |
|
|
31
|
+
| `label` | See component TS / Storybook Controls |
|
|
32
|
+
| `placeholder` | See component TS / Storybook Controls |
|
|
33
|
+
| `size` | See component TS / Storybook Controls |
|
|
34
|
+
| `mode` | See component TS / Storybook Controls |
|
|
35
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
36
|
+
| `required` | See component TS / Storybook Controls |
|
|
37
|
+
| `error` | See component TS / Storybook Controls |
|
|
38
|
+
| `errorMessage` | See component TS / Storybook Controls |
|
|
39
|
+
| `allowClear` | See component TS / Storybook Controls |
|
|
40
|
+
| `showSearch` | See component TS / Storybook Controls |
|
|
41
|
+
| `block` | See component TS / Storybook Controls |
|
|
42
|
+
| `width` | See component TS / Storybook Controls |
|
|
43
|
+
|
|
44
|
+
## Outputs
|
|
45
|
+
| Output | Notes |
|
|
46
|
+
|--------|-------|
|
|
47
|
+
| `valueChange` | EventEmitter |
|
|
48
|
+
|
|
49
|
+
## Example
|
|
50
|
+
```html
|
|
51
|
+
<geo-select
|
|
52
|
+
label="Trạng thái"
|
|
53
|
+
[options]="[{ label: 'Active', value: 1 }, { label: 'Inactive', value: 0 }]"
|
|
54
|
+
[(ngModel)]="status"
|
|
55
|
+
[block]="true"
|
|
56
|
+
></geo-select>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Source
|
|
60
|
+
`projects/geo-ui/src/lib/figma/geo-select/geo-select.component.ts`
|
|
61
|
+
|
|
62
|
+
## Storybook
|
|
63
|
+
GEO / related story for `geo-select`
|
|
64
|
+
|
|
65
|
+
## Rules for AI
|
|
66
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
67
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
68
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# geo-slider
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoSliderComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Numeric range slider.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoSliderComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoSliderComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-slider`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Continuous numeric value in a range.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Discrete small sets — use select/radio.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `value` | See component TS / Storybook Controls |
|
|
31
|
+
| `min` | See component TS / Storybook Controls |
|
|
32
|
+
| `max` | See component TS / Storybook Controls |
|
|
33
|
+
| `step` | See component TS / Storybook Controls |
|
|
34
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
35
|
+
| `tipFormatter` | See component TS / Storybook Controls |
|
|
36
|
+
|
|
37
|
+
## Outputs
|
|
38
|
+
| Output | Notes |
|
|
39
|
+
|--------|-------|
|
|
40
|
+
| `valueChange` | EventEmitter |
|
|
41
|
+
|
|
42
|
+
## Example
|
|
43
|
+
```html
|
|
44
|
+
<geo-slider [min]="0" [max]="100" [(ngModel)]="percent"></geo-slider>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Source
|
|
48
|
+
`projects/geo-ui/src/lib/figma/geo-slider/geo-slider.component.ts`
|
|
49
|
+
|
|
50
|
+
## Storybook
|
|
51
|
+
GEO / related story for `geo-slider`
|
|
52
|
+
|
|
53
|
+
## Rules for AI
|
|
54
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
55
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
56
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# geo-status-tag
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoStatusTagComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Pill status tag with optional dot (success/error/warning/info/teal/…).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoStatusTagComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoStatusTagComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-status-tag`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`display`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Status in tables, cards, lists.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Clickable filters — use button/tabs.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `status` | See component TS / Storybook Controls |
|
|
31
|
+
| `label` | See component TS / Storybook Controls |
|
|
32
|
+
| `showDot` | See component TS / Storybook Controls |
|
|
33
|
+
|
|
34
|
+
## Outputs
|
|
35
|
+
_None_
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
```html
|
|
39
|
+
<geo-status-tag status="success" label="Hoạt động"></geo-status-tag>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Source
|
|
43
|
+
`projects/geo-ui/src/lib/figma/geo-status-tag/geo-status-tag.component.ts`
|
|
44
|
+
|
|
45
|
+
## Storybook
|
|
46
|
+
GEO / related story for `geo-status-tag`
|
|
47
|
+
|
|
48
|
+
## Rules for AI
|
|
49
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
50
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
51
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# geo-step-form-layout
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoStepFormLayoutComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Full-page multi-step form: vertical stepper + content card + footer actions.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoStepFormLayoutComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoStepFormLayoutComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-step-form-layout`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`layout`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Long registration / create wizards as a page.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Dialogs — use geo-form-modal + geo-stepper.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `steps` | See component TS / Storybook Controls |
|
|
31
|
+
| `activeIndex` | See component TS / Storybook Controls |
|
|
32
|
+
| `title` | See component TS / Storybook Controls |
|
|
33
|
+
| `clickableSteps` | See component TS / Storybook Controls |
|
|
34
|
+
| `showScrollButtons` | See component TS / Storybook Controls |
|
|
35
|
+
| `showCancel` | See component TS / Storybook Controls |
|
|
36
|
+
| `showPrevious` | See component TS / Storybook Controls |
|
|
37
|
+
| `showSave` | See component TS / Storybook Controls |
|
|
38
|
+
| `showNext` | See component TS / Storybook Controls |
|
|
39
|
+
| `cancelLabel` | See component TS / Storybook Controls |
|
|
40
|
+
| `previousLabel` | See component TS / Storybook Controls |
|
|
41
|
+
| `saveLabel` | See component TS / Storybook Controls |
|
|
42
|
+
| `nextLabel` | See component TS / Storybook Controls |
|
|
43
|
+
| `finishLabel` | See component TS / Storybook Controls |
|
|
44
|
+
| `saveLoading` | See component TS / Storybook Controls |
|
|
45
|
+
| `nextLoading` | See component TS / Storybook Controls |
|
|
46
|
+
| `hideDefaultFooter` | See component TS / Storybook Controls |
|
|
47
|
+
|
|
48
|
+
## Outputs
|
|
49
|
+
| Output | Notes |
|
|
50
|
+
|--------|-------|
|
|
51
|
+
| `activeIndexChange` | EventEmitter |
|
|
52
|
+
| `stepSelect` | EventEmitter |
|
|
53
|
+
| `cancel` | EventEmitter |
|
|
54
|
+
| `previous` | EventEmitter |
|
|
55
|
+
| `save` | EventEmitter |
|
|
56
|
+
| `next` | EventEmitter |
|
|
57
|
+
|
|
58
|
+
## Example
|
|
59
|
+
```html
|
|
60
|
+
<geo-step-form-layout
|
|
61
|
+
title="Thêm mới"
|
|
62
|
+
[steps]="steps"
|
|
63
|
+
[activeIndex]="i"
|
|
64
|
+
(next)="goNext()"
|
|
65
|
+
(previous)="goPrev()"
|
|
66
|
+
(cancel)="cancel()"
|
|
67
|
+
>
|
|
68
|
+
<!-- step content -->
|
|
69
|
+
</geo-step-form-layout>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Source
|
|
73
|
+
`projects/geo-ui/src/lib/figma/geo-step-form-layout/geo-step-form-layout.component.ts`
|
|
74
|
+
|
|
75
|
+
## Storybook
|
|
76
|
+
GEO / related story for `geo-step-form-layout`
|
|
77
|
+
|
|
78
|
+
## Rules for AI
|
|
79
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
80
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
81
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# geo-stepper
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoStepperComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Steps indicator (horizontal default). Active=primary, completed=success+check.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoStepperComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoStepperComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-stepper`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`navigation`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Multi-step flows; place inside geo-form-modal body or pages.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Tabs for peer sections — use geo-tabs.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `steps` | See component TS / Storybook Controls |
|
|
31
|
+
| `activeIndex` | See component TS / Storybook Controls |
|
|
32
|
+
| `orientation` | See component TS / Storybook Controls |
|
|
33
|
+
| `clickable` | See component TS / Storybook Controls |
|
|
34
|
+
|
|
35
|
+
## Outputs
|
|
36
|
+
| Output | Notes |
|
|
37
|
+
|--------|-------|
|
|
38
|
+
| `activeIndexChange` | EventEmitter |
|
|
39
|
+
| `stepSelect` | EventEmitter |
|
|
40
|
+
|
|
41
|
+
## Example
|
|
42
|
+
```html
|
|
43
|
+
<geo-stepper
|
|
44
|
+
[steps]="[
|
|
45
|
+
{ key: 'a', label: '1. Thông tin' },
|
|
46
|
+
{ key: 'b', label: '2. Xác nhận' }
|
|
47
|
+
]"
|
|
48
|
+
[activeIndex]="0"
|
|
49
|
+
orientation="horizontal"
|
|
50
|
+
[clickable]="false"
|
|
51
|
+
></geo-stepper>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Source
|
|
55
|
+
`projects/geo-ui/src/lib/figma/geo-stepper/geo-stepper.component.ts`
|
|
56
|
+
|
|
57
|
+
## Storybook
|
|
58
|
+
GEO / related story for `geo-stepper`
|
|
59
|
+
|
|
60
|
+
## Rules for AI
|
|
61
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
62
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
63
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|