@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,56 @@
|
|
|
1
|
+
# geo-alert
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoAlertComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Inline alert banner (success/error/warning/info).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoAlertComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoAlertComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-alert`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`feedback`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Form-level or page-level status messages that stay in layout.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Transient notifications — use geo-toast / GeoToastService.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `type` | See component TS / Storybook Controls |
|
|
31
|
+
| `title` | See component TS / Storybook Controls |
|
|
32
|
+
| `message` | See component TS / Storybook Controls |
|
|
33
|
+
| `closable` | See component TS / Storybook Controls |
|
|
34
|
+
| `visible` | See component TS / Storybook Controls |
|
|
35
|
+
| `showIcon` | See component TS / Storybook Controls |
|
|
36
|
+
|
|
37
|
+
## Outputs
|
|
38
|
+
| Output | Notes |
|
|
39
|
+
|--------|-------|
|
|
40
|
+
| `closed` | EventEmitter |
|
|
41
|
+
|
|
42
|
+
## Example
|
|
43
|
+
```html
|
|
44
|
+
<geo-alert type="success" title="Thành công" message="Đã lưu."></geo-alert>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Source
|
|
48
|
+
`projects/geo-ui/src/lib/figma/geo-alert/geo-alert.component.ts`
|
|
49
|
+
|
|
50
|
+
## Storybook
|
|
51
|
+
GEO / related story for `geo-alert`
|
|
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,54 @@
|
|
|
1
|
+
# geo-back-button
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoBackButtonComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Back navigation control (history or custom click).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoBackButtonComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoBackButtonComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-back-button`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`navigation`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Detail/edit pages that return to a list.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Primary CTA — use geo-button.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `ariaLabel` | See component TS / Storybook Controls |
|
|
31
|
+
| `title` | See component TS / Storybook Controls |
|
|
32
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
33
|
+
| `historyBack` | See component TS / Storybook Controls |
|
|
34
|
+
|
|
35
|
+
## Outputs
|
|
36
|
+
| Output | Notes |
|
|
37
|
+
|--------|-------|
|
|
38
|
+
| `clicked` | EventEmitter |
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
```html
|
|
42
|
+
<geo-back-button (clicked)="goBack()"></geo-back-button>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Source
|
|
46
|
+
`projects/geo-ui/src/lib/figma/geo-back-button/geo-back-button.component.ts`
|
|
47
|
+
|
|
48
|
+
## Storybook
|
|
49
|
+
GEO / related story for `geo-back-button`
|
|
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,52 @@
|
|
|
1
|
+
# geo-breadcrumb
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoBreadcrumbComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Breadcrumb trail; last item active (primary).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoBreadcrumbComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoBreadcrumbComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-breadcrumb`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`navigation`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Page hierarchy under page title.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Primary navigation / sidebar menus.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `items` | See component TS / Storybook Controls |
|
|
31
|
+
|
|
32
|
+
## Outputs
|
|
33
|
+
_None_
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
```html
|
|
37
|
+
<geo-breadcrumb [items]="[
|
|
38
|
+
{ label: 'Trang chủ', link: '/' },
|
|
39
|
+
{ label: 'Chi tiết' }
|
|
40
|
+
]"></geo-breadcrumb>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Source
|
|
44
|
+
`projects/geo-ui/src/lib/figma/geo-breadcrumb/geo-breadcrumb.component.ts`
|
|
45
|
+
|
|
46
|
+
## Storybook
|
|
47
|
+
GEO / related story for `geo-breadcrumb`
|
|
48
|
+
|
|
49
|
+
## Rules for AI
|
|
50
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
51
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
52
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# geo-button
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoButtonComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Primary action button with brand/semantic colors and icons.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoButtonComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoButtonComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-button`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`actions`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
All CTAs, form submit/cancel, toolbar actions.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Do not use raw ant-btn or native button for branded UI.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `appearance` | See component TS / Storybook Controls |
|
|
31
|
+
| `color` | See component TS / Storybook Controls |
|
|
32
|
+
| `icon` | See component TS / Storybook Controls |
|
|
33
|
+
| `iconTheme` | See component TS / Storybook Controls |
|
|
34
|
+
| `iconPlacement` | See component TS / Storybook Controls |
|
|
35
|
+
| `iconOnly` | See component TS / Storybook Controls |
|
|
36
|
+
| `type` | See component TS / Storybook Controls |
|
|
37
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
38
|
+
| `tooltip` | See component TS / Storybook Controls |
|
|
39
|
+
| `tooltipPlacement` | See component TS / Storybook Controls |
|
|
40
|
+
| `active` | See component TS / Storybook Controls |
|
|
41
|
+
| `title` | See component TS / Storybook Controls |
|
|
42
|
+
|
|
43
|
+
## Outputs
|
|
44
|
+
| Output | Notes |
|
|
45
|
+
|--------|-------|
|
|
46
|
+
| `clicked` | EventEmitter |
|
|
47
|
+
|
|
48
|
+
## Example
|
|
49
|
+
```html
|
|
50
|
+
<geo-button appearance="primary" color="brand" icon="plus">Thêm mới</geo-button>
|
|
51
|
+
<geo-button appearance="primary" icon="right" iconPlacement="end">Tiếp theo</geo-button>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Source
|
|
55
|
+
`projects/geo-ui/src/lib/figma/geo-button/geo-button.component.ts`
|
|
56
|
+
|
|
57
|
+
## Storybook
|
|
58
|
+
GEO / related story for `geo-button`
|
|
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.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# geo-checkbox
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoCheckboxComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Checkbox with label; supports CVA / ngModel.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoCheckboxComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoCheckboxComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-checkbox`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Boolean / multi-select options in forms.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Single exclusive choice — use geo-radio.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `label` | See component TS / Storybook Controls |
|
|
31
|
+
| `checked` | See component TS / Storybook Controls |
|
|
32
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
33
|
+
| `indeterminate` | See component TS / Storybook Controls |
|
|
34
|
+
|
|
35
|
+
## Outputs
|
|
36
|
+
| Output | Notes |
|
|
37
|
+
|--------|-------|
|
|
38
|
+
| `checkedChange` | EventEmitter |
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
```html
|
|
42
|
+
<geo-checkbox label="Tôi đồng ý" [(ngModel)]="agreed"></geo-checkbox>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Source
|
|
46
|
+
`projects/geo-ui/src/lib/figma/geo-checkbox/geo-checkbox.component.ts`
|
|
47
|
+
|
|
48
|
+
## Storybook
|
|
49
|
+
GEO / related story for `geo-checkbox`
|
|
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,54 @@
|
|
|
1
|
+
# geo-column-picker
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoColumnPickerComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Column visibility picker for tables (optional persistence).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoColumnPickerComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoColumnPickerComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-column-picker`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`data`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Let users show/hide table columns.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Static tables with fixed columns.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `triggerLabel` | See component TS / Storybook Controls |
|
|
31
|
+
| `hint` | See component TS / Storybook Controls |
|
|
32
|
+
| `items` | See component TS / Storybook Controls |
|
|
33
|
+
| `storageKey` | See component TS / Storybook Controls |
|
|
34
|
+
|
|
35
|
+
## Outputs
|
|
36
|
+
| Output | Notes |
|
|
37
|
+
|--------|-------|
|
|
38
|
+
| `apply` | EventEmitter |
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
```html
|
|
42
|
+
<geo-column-picker [items]="cols" (apply)="onCols($event)"></geo-column-picker>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Source
|
|
46
|
+
`projects/geo-ui/src/lib/figma/geo-table/geo-column-picker/geo-column-picker.component.ts`
|
|
47
|
+
|
|
48
|
+
## Storybook
|
|
49
|
+
GEO / related story for `geo-column-picker`
|
|
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,70 @@
|
|
|
1
|
+
# geo-confirm-modal
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoConfirmModalComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Confirm / danger dialog (destroy actions).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoConfirmModalComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoConfirmModalComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-confirm-modal`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`overlay`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Delete, irreversible actions.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Multi-field forms — use geo-form-modal.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `visible` | See component TS / Storybook Controls |
|
|
31
|
+
| `title` | See component TS / Storybook Controls |
|
|
32
|
+
| `message` | See component TS / Storybook Controls |
|
|
33
|
+
| `highlight` | See component TS / Storybook Controls |
|
|
34
|
+
| `description` | See component TS / Storybook Controls |
|
|
35
|
+
| `cancelText` | See component TS / Storybook Controls |
|
|
36
|
+
| `confirmText` | See component TS / Storybook Controls |
|
|
37
|
+
| `confirmLoading` | See component TS / Storybook Controls |
|
|
38
|
+
| `width` | See component TS / Storybook Controls |
|
|
39
|
+
| `maskClosable` | See component TS / Storybook Controls |
|
|
40
|
+
| `closable` | See component TS / Storybook Controls |
|
|
41
|
+
|
|
42
|
+
## Outputs
|
|
43
|
+
| Output | Notes |
|
|
44
|
+
|--------|-------|
|
|
45
|
+
| `visibleChange` | EventEmitter |
|
|
46
|
+
| `confirm` | EventEmitter |
|
|
47
|
+
| `cancel` | EventEmitter |
|
|
48
|
+
|
|
49
|
+
## Example
|
|
50
|
+
```html
|
|
51
|
+
<geo-confirm-modal
|
|
52
|
+
[visible]="open"
|
|
53
|
+
title="Xóa hồ sơ?"
|
|
54
|
+
message="Hành động không thể hoàn tác."
|
|
55
|
+
confirmText="Xóa"
|
|
56
|
+
(confirm)="onDelete()"
|
|
57
|
+
(visibleChange)="open = $event"
|
|
58
|
+
></geo-confirm-modal>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Source
|
|
62
|
+
`projects/geo-ui/src/lib/figma/geo-confirm-modal/geo-confirm-modal.component.ts`
|
|
63
|
+
|
|
64
|
+
## Storybook
|
|
65
|
+
GEO / related story for `geo-confirm-modal`
|
|
66
|
+
|
|
67
|
+
## Rules for AI
|
|
68
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
69
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
70
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# geo-date-picker
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoDatePickerComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Single date (optional time) picker.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoDatePickerComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoDatePickerComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-date-picker`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
One date field in forms.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Date range — use geo-date-range-picker.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `label` | See component TS / Storybook Controls |
|
|
31
|
+
| `placeholder` | See component TS / Storybook Controls |
|
|
32
|
+
| `format` | See component TS / Storybook Controls |
|
|
33
|
+
| `mode` | See component TS / Storybook Controls |
|
|
34
|
+
| `size` | 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
|
+
| `showToday` | See component TS / Storybook Controls |
|
|
41
|
+
| `showTime` | See component TS / Storybook Controls |
|
|
42
|
+
| `block` | See component TS / Storybook Controls |
|
|
43
|
+
| `width` | See component TS / Storybook Controls |
|
|
44
|
+
| `disabledDate` | See component TS / Storybook Controls |
|
|
45
|
+
|
|
46
|
+
## Outputs
|
|
47
|
+
| Output | Notes |
|
|
48
|
+
|--------|-------|
|
|
49
|
+
| `valueChange` | EventEmitter |
|
|
50
|
+
|
|
51
|
+
## Example
|
|
52
|
+
```html
|
|
53
|
+
<geo-date-picker label="Ngày tạo" [required]="true" [(ngModel)]="date" [block]="true"></geo-date-picker>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Source
|
|
57
|
+
`projects/geo-ui/src/lib/figma/geo-date-picker/geo-date-picker.component.ts`
|
|
58
|
+
|
|
59
|
+
## Storybook
|
|
60
|
+
GEO / related story for `geo-date-picker`
|
|
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,64 @@
|
|
|
1
|
+
# geo-date-range-picker
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoDateRangePickerComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Start–end date range picker.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoDateRangePickerComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoDateRangePickerComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-date-range-picker`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Filters and period selection.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Single date — use geo-date-picker.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `label` | See component TS / Storybook Controls |
|
|
31
|
+
| `placeholder` | See component TS / Storybook Controls |
|
|
32
|
+
| `format` | See component TS / Storybook Controls |
|
|
33
|
+
| `size` | See component TS / Storybook Controls |
|
|
34
|
+
| `disabled` | 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
|
+
| `allowClear` | See component TS / Storybook Controls |
|
|
39
|
+
| `showTime` | See component TS / Storybook Controls |
|
|
40
|
+
| `block` | See component TS / Storybook Controls |
|
|
41
|
+
| `width` | See component TS / Storybook Controls |
|
|
42
|
+
| `disabledDate` | See component TS / Storybook Controls |
|
|
43
|
+
| `separator` | See component TS / Storybook Controls |
|
|
44
|
+
|
|
45
|
+
## Outputs
|
|
46
|
+
| Output | Notes |
|
|
47
|
+
|--------|-------|
|
|
48
|
+
| `valueChange` | EventEmitter |
|
|
49
|
+
|
|
50
|
+
## Example
|
|
51
|
+
```html
|
|
52
|
+
<geo-date-range-picker label="Khoảng thời gian" [(ngModel)]="range" [block]="true"></geo-date-range-picker>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Source
|
|
56
|
+
`projects/geo-ui/src/lib/figma/geo-date-range-picker/geo-date-range-picker.component.ts`
|
|
57
|
+
|
|
58
|
+
## Storybook
|
|
59
|
+
GEO / related story for `geo-date-range-picker`
|
|
60
|
+
|
|
61
|
+
## Rules for AI
|
|
62
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
63
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
64
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# geo-file-picker
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoFilePickerComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Compact file input for forms (button + filename).
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoFilePickerComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoFilePickerComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-file-picker`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`forms`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Single/small file field inside a form row.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Drag-drop multi upload with progress — use geo-upload.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `label` | See component TS / Storybook Controls |
|
|
31
|
+
| `placeholder` | See component TS / Storybook Controls |
|
|
32
|
+
| `buttonText` | See component TS / Storybook Controls |
|
|
33
|
+
| `required` | See component TS / Storybook Controls |
|
|
34
|
+
| `disabled` | See component TS / Storybook Controls |
|
|
35
|
+
| `accept` | See component TS / Storybook Controls |
|
|
36
|
+
| `multiple` | See component TS / Storybook Controls |
|
|
37
|
+
| `error` | See component TS / Storybook Controls |
|
|
38
|
+
| `errorMessage` | See component TS / Storybook Controls |
|
|
39
|
+
| `block` | See component TS / Storybook Controls |
|
|
40
|
+
| `width` | See component TS / Storybook Controls |
|
|
41
|
+
| `selectedName` | See component TS / Storybook Controls |
|
|
42
|
+
|
|
43
|
+
## Outputs
|
|
44
|
+
| Output | Notes |
|
|
45
|
+
|--------|-------|
|
|
46
|
+
| `fileChange` | EventEmitter |
|
|
47
|
+
|
|
48
|
+
## Example
|
|
49
|
+
```html
|
|
50
|
+
<geo-file-picker label="Đính kèm" accept=".pdf,.png" (fileChange)="onFile($event)" [block]="true"></geo-file-picker>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Source
|
|
54
|
+
`projects/geo-ui/src/lib/figma/geo-file-picker/geo-file-picker.component.ts`
|
|
55
|
+
|
|
56
|
+
## Storybook
|
|
57
|
+
GEO / related story for `geo-file-picker`
|
|
58
|
+
|
|
59
|
+
## Rules for AI
|
|
60
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
61
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
62
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# geo-form-modal
|
|
2
|
+
|
|
3
|
+
> AI quick reference for **GeoFormModalComponent**
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
Form modal: fixed header/footer, scrollable body via ng-content.
|
|
7
|
+
|
|
8
|
+
## Import
|
|
9
|
+
```ts
|
|
10
|
+
import { GeoFormModalComponent } from '@geoit/ui';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Standalone component — add to `imports: [GeoFormModalComponent]` of the consuming standalone component/module.
|
|
14
|
+
|
|
15
|
+
## Selector
|
|
16
|
+
`geo-form-modal`
|
|
17
|
+
|
|
18
|
+
## Category
|
|
19
|
+
`overlay`
|
|
20
|
+
|
|
21
|
+
## When to use
|
|
22
|
+
Create/edit dialogs; compose geo-stepper inside body for multi-step.
|
|
23
|
+
|
|
24
|
+
## Do not use when
|
|
25
|
+
Full-page wizards — use geo-step-form-layout.
|
|
26
|
+
|
|
27
|
+
## Inputs
|
|
28
|
+
| Input | Notes |
|
|
29
|
+
|-------|-------|
|
|
30
|
+
| `open` | See component TS / Storybook Controls |
|
|
31
|
+
| `title` | See component TS / Storybook Controls |
|
|
32
|
+
| `titleUppercase` | See component TS / Storybook Controls |
|
|
33
|
+
| `okText` | See component TS / Storybook Controls |
|
|
34
|
+
| `cancelText` | See component TS / Storybook Controls |
|
|
35
|
+
| `cancelIcon` | See component TS / Storybook Controls |
|
|
36
|
+
| `cancelIconPlacement` | See component TS / Storybook Controls |
|
|
37
|
+
| `okIcon` | See component TS / Storybook Controls |
|
|
38
|
+
| `okIconPlacement` | See component TS / Storybook Controls |
|
|
39
|
+
| `secondaryOkText` | See component TS / Storybook Controls |
|
|
40
|
+
| `confirmLoading` | See component TS / Storybook Controls |
|
|
41
|
+
| `okDisabled` | See component TS / Storybook Controls |
|
|
42
|
+
| `readonly` | See component TS / Storybook Controls |
|
|
43
|
+
| `width` | See component TS / Storybook Controls |
|
|
44
|
+
| `closable` | See component TS / Storybook Controls |
|
|
45
|
+
| `mask` | See component TS / Storybook Controls |
|
|
46
|
+
| `maskClosable` | See component TS / Storybook Controls |
|
|
47
|
+
| `keyboard` | See component TS / Storybook Controls |
|
|
48
|
+
| `centered` | See component TS / Storybook Controls |
|
|
49
|
+
| `zIndex` | See component TS / Storybook Controls |
|
|
50
|
+
| `className` | See component TS / Storybook Controls |
|
|
51
|
+
| `wrapClassName` | See component TS / Storybook Controls |
|
|
52
|
+
| `bodyScroll` | See component TS / Storybook Controls |
|
|
53
|
+
| `bodyMaxHeight` | See component TS / Storybook Controls |
|
|
54
|
+
|
|
55
|
+
## Outputs
|
|
56
|
+
| Output | Notes |
|
|
57
|
+
|--------|-------|
|
|
58
|
+
| `openChange` | EventEmitter |
|
|
59
|
+
| `ok` | EventEmitter |
|
|
60
|
+
| `secondaryOk` | EventEmitter |
|
|
61
|
+
| `cancel` | EventEmitter |
|
|
62
|
+
| `afterOpen` | EventEmitter |
|
|
63
|
+
| `afterClose` | EventEmitter |
|
|
64
|
+
|
|
65
|
+
## Example
|
|
66
|
+
```html
|
|
67
|
+
<geo-form-modal
|
|
68
|
+
[open]="open"
|
|
69
|
+
title="Thêm mới"
|
|
70
|
+
cancelText="Hủy bỏ"
|
|
71
|
+
okText="Lưu"
|
|
72
|
+
(openChange)="open = $event"
|
|
73
|
+
(ok)="save()"
|
|
74
|
+
>
|
|
75
|
+
<geo-input label="Tên" [required]="true" [block]="true" [(ngModel)]="name"></geo-input>
|
|
76
|
+
</geo-form-modal>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Source
|
|
80
|
+
`projects/geo-ui/src/lib/figma/geo-form-modal/geo-form-modal.component.ts`
|
|
81
|
+
|
|
82
|
+
## Storybook
|
|
83
|
+
GEO / related story for `geo-form-modal`
|
|
84
|
+
|
|
85
|
+
## Rules for AI
|
|
86
|
+
- Prefer this component over raw ng-zorro / HTML equivalents for the same UI role.
|
|
87
|
+
- Use design tokens (`var(--geo-*)`) — never hardcode brand colors or radius.
|
|
88
|
+
- Match props to Storybook Controls / this doc; do not invent unsupported inputs.
|