@agrotools1/at-components1 1.1.1 → 1.1.2-beta.0
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/README.md +71 -71
- package/dist/Accordion/Accordion.vue.js +81 -0
- package/dist/Accordion/Accordion.vue2.js +72 -0
- package/dist/Avatar/Avatar.vue.js +26 -0
- package/dist/Avatar/Avatar.vue2.js +58 -0
- package/dist/Button/Button.vue.js +30 -0
- package/dist/Button/Button.vue2.js +43 -0
- package/dist/CardWithInsights/CardWithInsights.vue.js +60 -0
- package/dist/CardWithInsights/CardWithInsights.vue2.js +32 -0
- package/dist/Checkbox/Checkbox.vue.js +38 -0
- package/dist/Checkbox/Checkbox.vue2.js +73 -0
- package/dist/Checkbox/img/checkmarck.svg.js +4 -0
- package/dist/ColorPicker/ColorPicker.Saturation.vue.js +30 -0
- package/dist/ColorPicker/ColorPicker.Saturation.vue2.js +82 -0
- package/dist/ColorPicker/ColorPicker.vue.js +88 -0
- package/dist/ColorPicker/ColorPicker.vue2.js +180 -0
- package/dist/DataTable/Column/Column.vue.js +37 -0
- package/dist/DataTable/Column/Column.vue2.js +40 -0
- package/dist/DataTable/Column/imgs/filter.svg.js +4 -0
- package/dist/DataTable/Counters/Counters.vue.js +44 -0
- package/dist/DataTable/Counters/Counters.vue2.js +70 -0
- package/dist/DataTable/Counters/imgs/close.svg.js +4 -0
- package/dist/DataTable/DataTable.vue.js +130 -0
- package/dist/DataTable/DataTable.vue2.js +189 -0
- package/dist/DataTable/index.js +11 -0
- package/dist/DatePicker/DatePicker.helper.js +99 -0
- package/dist/DatePicker/DatePicker.vue.js +123 -0
- package/dist/DatePicker/DatePicker.vue2.js +237 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.helper.js +58 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue.js +34 -0
- package/dist/DatePicker/DatePickerCalendar/DatePickerCalendar.vue2.js +59 -0
- package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue.js +50 -0
- package/dist/DatePicker/DatePickerHeader/DatePickerHeader.vue2.js +47 -0
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue.js +20 -0
- package/dist/DatePicker/DatePickerListSelector/DatePickerListSelector.vue2.js +89 -0
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.d.ts +2 -0
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.d.ts.map +1 -1
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue.js +73 -0
- package/dist/DatePicker/DatePickerTime/DatePickerTime.vue2.js +71 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.d.ts +16 -16
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue.js +151 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.vue2.js +84 -0
- package/dist/Dropdown/Checklist/draggable.js +68 -0
- package/dist/Dropdown/Dropdown.core.vue.js +47 -0
- package/dist/Dropdown/Dropdown.core.vue2.js +112 -0
- package/dist/Dropdown/DropdownContent/DropdownContent.vue.js +10 -0
- package/dist/Dropdown/DropdownContent/DropdownContent.vue2.js +9 -0
- package/dist/Faq/Faq.vue.js +41 -0
- package/dist/Faq/Faq.vue2.js +41 -0
- package/dist/Faq/FaqItem/FaqItem.vue.js +56 -0
- package/dist/Faq/FaqItem/FaqItem.vue2.js +32 -0
- package/dist/Filter/Filter.vue.js +222 -0
- package/dist/Filter/Filter.vue2.js +129 -0
- package/dist/Icons/icons.d.ts +2 -0
- package/dist/Icons/icons.d.ts.map +1 -1
- package/dist/Icons/icons.js +26 -0
- package/dist/Illustration/Illustration.js +127 -0
- package/dist/Illustration/Illustration.vue.js +17 -0
- package/dist/Illustration/Illustration.vue2.js +32 -0
- package/dist/Input/Input.core.vue.d.ts +2 -0
- package/dist/Input/Input.core.vue.d.ts.map +1 -1
- package/dist/Input/Input.core.vue.js +120 -0
- package/dist/Input/Input.core.vue2.js +239 -0
- package/dist/Input/Text-area.vue.d.ts +2 -0
- package/dist/Input/Text-area.vue.d.ts.map +1 -1
- package/dist/Input/Text-area.vue.js +16 -0
- package/dist/Input/Text-area.vue2.js +14 -0
- package/dist/Input/imgs/error.svg.js +4 -0
- package/dist/Input/index.d.ts +4 -0
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Input/index.js +9 -0
- package/dist/Legend/Legend.vue.js +60 -0
- package/dist/Legend/Legend.vue2.js +51 -0
- package/dist/List/components/List.vue.d.ts +4 -4
- package/dist/List/components/List.vue.js +86 -0
- package/dist/List/components/List.vue2.js +92 -0
- package/dist/Loading/Loading.vue.js +21 -0
- package/dist/Loading/Loading.vue2.js +16 -0
- package/dist/Menu/Menu.vue.d.ts +8 -4
- package/dist/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/Menu/Menu.vue.js +185 -0
- package/dist/Menu/Menu.vue2.js +85 -0
- package/dist/Menu/assets/agrotools.svg.js +4 -0
- package/dist/Menu/assets/at.svg.js +4 -0
- package/dist/Modal/Modal.vue.js +127 -0
- package/dist/Modal/Modal.vue2.js +77 -0
- package/dist/Modal/images/cross.svg.js +4 -0
- package/dist/Notifications/Notification/Notification.vue.js +59 -0
- package/dist/Notifications/Notification/Notification.vue2.js +78 -0
- package/dist/Notifications/Notifications.vue.js +55 -0
- package/dist/Notifications/Notifications.vue2.js +56 -0
- package/dist/Paginator/Paginator.vue.js +119 -0
- package/dist/Paginator/Paginator.vue2.js +110 -0
- package/dist/Paginator/imgs/double-left-arrow.svg.js +4 -0
- package/dist/Paginator/imgs/double-right-arrow.svg.js +4 -0
- package/dist/Paginator/imgs/left-arrow.svg.js +4 -0
- package/dist/Paginator/imgs/right-arrow.svg.js +4 -0
- package/dist/ProgressBar/ProgressBar.vue.js +84 -0
- package/dist/ProgressBar/ProgressBar.vue2.js +83 -0
- package/dist/RadioButton/RadioButton.vue.js +46 -0
- package/dist/RadioButton/RadioButton.vue2.js +57 -0
- package/dist/Search/Search.vue.d.ts +6 -4
- package/dist/Search/Search.vue.d.ts.map +1 -1
- package/dist/Search/Search.vue.js +53 -0
- package/dist/Search/Search.vue2.js +144 -0
- package/dist/Select/Item/Item.vue.js +52 -0
- package/dist/Select/Item/Item.vue2.js +62 -0
- package/dist/Select/Multiple/Select.multiple.vue.d.ts +2 -0
- package/dist/Select/Multiple/Select.multiple.vue.d.ts.map +1 -1
- package/dist/Select/Multiple/Select.multiple.vue.js +59 -0
- package/dist/Select/Multiple/Select.multiple.vue2.js +137 -0
- package/dist/Select/Select.core.vue.d.ts +2 -0
- package/dist/Select/Select.core.vue.d.ts.map +1 -1
- package/dist/Select/Select.core.vue.js +52 -0
- package/dist/Select/Select.core.vue2.js +140 -0
- package/dist/Select/Single/Select.single.vue.d.ts +2 -0
- package/dist/Select/Single/Select.single.vue.d.ts.map +1 -1
- package/dist/Select/Single/Select.single.vue.js +74 -0
- package/dist/Select/Single/Select.single.vue2.js +160 -0
- package/dist/Select/imgs/indicator.svg.js +4 -0
- package/dist/Select/index.d.ts +4 -0
- package/dist/Select/index.d.ts.map +1 -1
- package/dist/Select/index.js +9 -0
- package/dist/Skeleton/Skeleton.vue.js +16 -0
- package/dist/Skeleton/Skeleton.vue2.js +19 -0
- package/dist/Stepper/Stepper.vue.js +110 -0
- package/dist/Stepper/Stepper.vue2.js +109 -0
- package/dist/TableConfig/TableConfig.vue.d.ts +20 -20
- package/dist/TableConfig/TableConfig.vue.js +72 -0
- package/dist/TableConfig/TableConfig.vue2.js +108 -0
- package/dist/Tabs/Tab/Tab.vue.d.ts +1 -1
- package/dist/Tabs/Tab/Tab.vue.js +7 -0
- package/dist/Tabs/Tab/Tab.vue2.js +62 -0
- package/dist/Tabs/Tabs.vue.d.ts +1 -1
- package/dist/Tabs/Tabs.vue.js +44 -0
- package/dist/Tabs/Tabs.vue2.js +63 -0
- package/dist/Tag/Tag.vue.js +37 -0
- package/dist/Tag/Tag.vue2.js +86 -0
- package/dist/Tipograph/Paragraph/Paragraph.vue.js +18 -0
- package/dist/Tipograph/Paragraph/Paragraph.vue2.js +21 -0
- package/dist/Tipograph/Title/Title.vue.js +18 -0
- package/dist/Tipograph/Title/Title.vue2.js +21 -0
- package/dist/Tipograph/index.js +9 -0
- package/dist/Toggle/Toggle.vue.js +30 -0
- package/dist/Toggle/Toggle.vue2.js +53 -0
- package/dist/Tooltip/Tooltip.vue.js +66 -0
- package/dist/Tooltip/Tooltip.vue2.js +234 -0
- package/dist/Upload/MultipleUpload/MultipleUpload.vue.d.ts.map +1 -1
- package/dist/Upload/MultipleUpload/MultipleUpload.vue.js +58 -0
- package/dist/Upload/MultipleUpload/MultipleUpload.vue2.js +198 -0
- package/dist/Upload/SingleUpload/SingleUpload.vue.d.ts.map +1 -1
- package/dist/Upload/SingleUpload/SingleUpload.vue.js +51 -0
- package/dist/Upload/SingleUpload/SingleUpload.vue2.js +156 -0
- package/dist/Upload/Upload.vue.d.ts.map +1 -1
- package/dist/Upload/Upload.vue.js +57 -0
- package/dist/Upload/Upload.vue2.js +118 -0
- package/dist/Upload/UploaderHeader/UploaderHeader.vue.js +30 -0
- package/dist/Upload/UploaderHeader/UploaderHeader.vue2.js +51 -0
- package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue.js +31 -0
- package/dist/Upload/UploaderInfoProgress/UploaderInfoProgress.vue2.js +34 -0
- package/dist/Upload/UploaderInput/UploaderInput.vue.js +63 -0
- package/dist/Upload/UploaderInput/UploaderInput.vue2.js +63 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/illustrations/renovabio/biomass.svg.js +4 -0
- package/dist/assets/illustrations/renovabio/volume.svg.js +4 -0
- package/dist/assets/illustrations/system/add-file.svg.js +4 -0
- package/dist/assets/illustrations/system/cloud-connection.svg.js +4 -0
- package/dist/assets/illustrations/system/cloud-download.svg.js +4 -0
- package/dist/assets/illustrations/system/cloud-upload.svg.js +4 -0
- package/dist/assets/illustrations/system/corrupted-file.svg.js +4 -0
- package/dist/assets/illustrations/system/dynamic-production.svg.js +4 -0
- package/dist/assets/illustrations/system/empty-box.svg.js +4 -0
- package/dist/assets/illustrations/system/empty-folder-2.svg.js +4 -0
- package/dist/assets/illustrations/system/empty-folder.svg.js +4 -0
- package/dist/assets/illustrations/system/empty.svg.js +4 -0
- package/dist/assets/illustrations/system/error-illustration.svg.js +4 -0
- package/dist/assets/illustrations/system/error.svg.js +4 -0
- package/dist/assets/illustrations/system/file-backup-2.svg.js +4 -0
- package/dist/assets/illustrations/system/file-backup.svg.js +4 -0
- package/dist/assets/illustrations/system/filtering-upload.svg.js +4 -0
- package/dist/assets/illustrations/system/flight.svg.js +4 -0
- package/dist/assets/illustrations/system/fly.svg.js +4 -0
- package/dist/assets/illustrations/system/movies.svg.js +4 -0
- package/dist/assets/illustrations/system/multimedia.svg.js +4 -0
- package/dist/assets/illustrations/system/notification-bell.svg.js +4 -0
- package/dist/assets/illustrations/system/page-2.svg.js +4 -0
- package/dist/assets/illustrations/system/page.svg.js +4 -0
- package/dist/assets/illustrations/system/photos.svg.js +4 -0
- package/dist/assets/illustrations/system/recycle-bin.svg.js +4 -0
- package/dist/assets/illustrations/system/rocket-launch.svg.js +4 -0
- package/dist/assets/illustrations/system/search-territory.svg.js +4 -0
- package/dist/assets/illustrations/system/signal.svg.js +4 -0
- package/dist/assets/illustrations/system/siren.svg.js +4 -0
- package/dist/assets/illustrations/system/wrong.svg.js +4 -0
- package/dist/assets/illustrations/tools/advanced-analysis.svg.js +4 -0
- package/dist/assets/illustrations/tools/agriculture.svg.js +4 -0
- package/dist/assets/illustrations/tools/alert-center.svg.js +4 -0
- package/dist/assets/illustrations/tools/area.svg.js +4 -0
- package/dist/assets/illustrations/tools/at-insights.svg.js +4 -0
- package/dist/assets/illustrations/tools/conservation-unit.svg.js +4 -0
- package/dist/assets/illustrations/tools/credit.svg.js +4 -0
- package/dist/assets/illustrations/tools/deforestation.svg.js +4 -0
- package/dist/assets/illustrations/tools/distance-proximity-rivers.svg.js +4 -0
- package/dist/assets/illustrations/tools/estimated-productivity-penalty.svg.js +4 -0
- package/dist/assets/illustrations/tools/extract.svg.js +4 -0
- package/dist/assets/illustrations/tools/farm.svg.js +4 -0
- package/dist/assets/illustrations/tools/geographical-consultation-municipalities.svg.js +4 -0
- package/dist/assets/illustrations/tools/gix.svg.js +4 -0
- package/dist/assets/illustrations/tools/inapto.svg.js +4 -0
- package/dist/assets/illustrations/tools/insurance.svg.js +4 -0
- package/dist/assets/illustrations/tools/land-appreciation.svg.js +4 -0
- package/dist/assets/illustrations/tools/lockdown.svg.js +4 -0
- package/dist/assets/illustrations/tools/map.svg.js +4 -0
- package/dist/assets/illustrations/tools/pasture.svg.js +4 -0
- package/dist/assets/illustrations/tools/rating-2.svg.js +4 -0
- package/dist/assets/illustrations/tools/rating.svg.js +4 -0
- package/dist/assets/illustrations/tools/recurrence.svg.js +4 -0
- package/dist/assets/illustrations/tools/refrigerators.svg.js +4 -0
- package/dist/assets/illustrations/tools/settings.svg.js +4 -0
- package/dist/assets/illustrations/tools/socio-environmental-analysis.svg.js +4 -0
- package/dist/assets/illustrations/tools/soil-use.svg.js +4 -0
- package/dist/assets/illustrations/tools/storm.svg.js +4 -0
- package/dist/assets/illustrations/tools/territory-details.svg.js +4 -0
- package/dist/assets/illustrations/tools/timeline.svg.js +4 -0
- package/dist/at-components1.css +1 -0
- package/dist/composables/useBootstrapWrapper.js +7 -0
- package/dist/index.css +1 -3
- package/dist/index.js +68 -16654
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
# At Components
|
|
2
|
-
|
|
3
|
-
Uma biblioteca abrangente de componentes Vue 3 para aplicações da Nova Plataforma da Agrotools.
|
|
4
|
-
Esta biblioteca fornece uma coleção de componentes de UI reutilizáveis construídos com as melhores práticas modernas, focando em acessibilidade, personalização e experiência do desenvolvedor.
|
|
5
|
-
|
|
6
|
-
## Instalação
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
pnpm install @agrotools1/at-components
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Recursos
|
|
13
|
-
|
|
14
|
-
- 🚀 **Componentes Vue 3** - Construídos exclusivamente para Vue 3 com suporte a TypeScript
|
|
15
|
-
- 🎨 **Personalizável** - Opções de estilização flexíveis com Tailwind CSS e SCSS
|
|
16
|
-
- ♿ **Acessível** - Componentes seguem as diretrizes WAI-ARIA
|
|
17
|
-
- 📚 **Bem Documentado** - Documentação abrangente com exemplos
|
|
18
|
-
- 🧪 **Integração com Storybook** - Demonstrações interativas de componentes
|
|
19
|
-
- 🔄 **Componentes Controlados** - Suporte para v-model e controle programático
|
|
20
|
-
|
|
21
|
-
## Uso
|
|
22
|
-
|
|
23
|
-
Importe e use componentes em sua aplicação Vue:
|
|
24
|
-
|
|
25
|
-
```vue
|
|
26
|
-
<template>
|
|
27
|
-
<AtAccordion type="single" collapsible>
|
|
28
|
-
<AtAccordionItem value="item-1">
|
|
29
|
-
<AtAccordionTrigger>Seção 1</AtAccordionTrigger>
|
|
30
|
-
<AtAccordionContent>
|
|
31
|
-
Este é o conteúdo da seção 1.
|
|
32
|
-
</AtAccordionContent>
|
|
33
|
-
</AtAccordionItem>
|
|
34
|
-
</AtAccordion>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script setup>
|
|
38
|
-
import {
|
|
39
|
-
AtAccordion,
|
|
40
|
-
AtAccordionItem,
|
|
41
|
-
AtAccordionTrigger,
|
|
42
|
-
AtAccordionContent
|
|
43
|
-
} from '@agrotools1/at-components';
|
|
44
|
-
</script>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Documentação de Componentes
|
|
48
|
-
|
|
49
|
-
Cada componente inclui documentação abrangente com:
|
|
50
|
-
|
|
51
|
-
- API de props e eventos
|
|
52
|
-
- Exemplos de uso
|
|
53
|
-
- Variações e opções de personalização
|
|
54
|
-
- Trechos de código
|
|
55
|
-
|
|
56
|
-
## Dependências
|
|
57
|
-
|
|
58
|
-
A biblioteca utiliza estas tecnologias principais:
|
|
59
|
-
|
|
60
|
-
- [Vue 3](https://vuejs.org/)
|
|
61
|
-
- [Tailwind CSS](https://tailwindcss.com/)
|
|
62
|
-
- [reka-ui](https://reka-ui.io/)
|
|
63
|
-
- [@agrotools1/at-icons](https://www.npmjs.com/package/@agrotools1/at-icons)
|
|
64
|
-
|
|
65
|
-
## Desenvolvimento
|
|
66
|
-
|
|
67
|
-
Este pacote é parte do monorepo da Agrotools. Para contribuir:
|
|
68
|
-
|
|
69
|
-
1. Clone o repositório
|
|
70
|
-
2. Instale dependências com `pnpm install`
|
|
71
|
-
3. Construa a biblioteca com `pnpm build`
|
|
1
|
+
# At Components
|
|
2
|
+
|
|
3
|
+
Uma biblioteca abrangente de componentes Vue 3 para aplicações da Nova Plataforma da Agrotools.
|
|
4
|
+
Esta biblioteca fornece uma coleção de componentes de UI reutilizáveis construídos com as melhores práticas modernas, focando em acessibilidade, personalização e experiência do desenvolvedor.
|
|
5
|
+
|
|
6
|
+
## Instalação
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pnpm install @agrotools1/at-components
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Recursos
|
|
13
|
+
|
|
14
|
+
- 🚀 **Componentes Vue 3** - Construídos exclusivamente para Vue 3 com suporte a TypeScript
|
|
15
|
+
- 🎨 **Personalizável** - Opções de estilização flexíveis com Tailwind CSS e SCSS
|
|
16
|
+
- ♿ **Acessível** - Componentes seguem as diretrizes WAI-ARIA
|
|
17
|
+
- 📚 **Bem Documentado** - Documentação abrangente com exemplos
|
|
18
|
+
- 🧪 **Integração com Storybook** - Demonstrações interativas de componentes
|
|
19
|
+
- 🔄 **Componentes Controlados** - Suporte para v-model e controle programático
|
|
20
|
+
|
|
21
|
+
## Uso
|
|
22
|
+
|
|
23
|
+
Importe e use componentes em sua aplicação Vue:
|
|
24
|
+
|
|
25
|
+
```vue
|
|
26
|
+
<template>
|
|
27
|
+
<AtAccordion type="single" collapsible>
|
|
28
|
+
<AtAccordionItem value="item-1">
|
|
29
|
+
<AtAccordionTrigger>Seção 1</AtAccordionTrigger>
|
|
30
|
+
<AtAccordionContent>
|
|
31
|
+
Este é o conteúdo da seção 1.
|
|
32
|
+
</AtAccordionContent>
|
|
33
|
+
</AtAccordionItem>
|
|
34
|
+
</AtAccordion>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup>
|
|
38
|
+
import {
|
|
39
|
+
AtAccordion,
|
|
40
|
+
AtAccordionItem,
|
|
41
|
+
AtAccordionTrigger,
|
|
42
|
+
AtAccordionContent
|
|
43
|
+
} from '@agrotools1/at-components';
|
|
44
|
+
</script>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Documentação de Componentes
|
|
48
|
+
|
|
49
|
+
Cada componente inclui documentação abrangente com:
|
|
50
|
+
|
|
51
|
+
- API de props e eventos
|
|
52
|
+
- Exemplos de uso
|
|
53
|
+
- Variações e opções de personalização
|
|
54
|
+
- Trechos de código
|
|
55
|
+
|
|
56
|
+
## Dependências
|
|
57
|
+
|
|
58
|
+
A biblioteca utiliza estas tecnologias principais:
|
|
59
|
+
|
|
60
|
+
- [Vue 3](https://vuejs.org/)
|
|
61
|
+
- [Tailwind CSS](https://tailwindcss.com/)
|
|
62
|
+
- [reka-ui](https://reka-ui.io/)
|
|
63
|
+
- [@agrotools1/at-icons](https://www.npmjs.com/package/@agrotools1/at-icons)
|
|
64
|
+
|
|
65
|
+
## Desenvolvimento
|
|
66
|
+
|
|
67
|
+
Este pacote é parte do monorepo da Agrotools. Para contribuir:
|
|
68
|
+
|
|
69
|
+
1. Clone o repositório
|
|
70
|
+
2. Instale dependências com `pnpm install`
|
|
71
|
+
3. Construa a biblioteca com `pnpm build`
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import v from "./Accordion.vue2.js";
|
|
2
|
+
import { resolveComponent as t, createElementBlock as c, openBlock as o, createCommentVNode as n, createElementVNode as r, normalizeClass as a, createBlock as i, createVNode as C, withCtx as _, createTextVNode as S, toDisplayString as I, withModifiers as g, normalizeStyle as h, renderSlot as l } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import $ from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const T = { class: "d-block w-100 at-accordion" }, z = ["aria-expanded"], b = { class: "flex-grow-1" }, w = {
|
|
6
|
+
ref: "buttonRef",
|
|
7
|
+
as: "button",
|
|
8
|
+
class: "at-accordion-button ms-2"
|
|
9
|
+
}, M = ["data-state"];
|
|
10
|
+
function N(e, s, O, V, B, D) {
|
|
11
|
+
const d = t("AtCircleMinusSolidIcon"), p = t("AtCheckCircleSolidIcon"), m = t("AtWarningSolidIcon"), u = t("AtCircleXMarkSolidIcon"), f = t("AtTitle"), k = t("AtAngleUpSolidIcon"), y = t("AtAngleDownSolidIcon");
|
|
12
|
+
return o(), c("div", T, [
|
|
13
|
+
e.isInformative ? (o(), c("div", {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: a(["d-flex align-items-center justify-content-center at-accordion-header", [`at-accordion-header-${e.$props.informativeType}`]])
|
|
16
|
+
}, [
|
|
17
|
+
e.informativeType === "default" ? (o(), i(d, {
|
|
18
|
+
key: 0,
|
|
19
|
+
size: "20",
|
|
20
|
+
class: "me-2"
|
|
21
|
+
})) : n("", !0),
|
|
22
|
+
e.informativeType === "success" ? (o(), i(p, {
|
|
23
|
+
key: 1,
|
|
24
|
+
size: "20",
|
|
25
|
+
class: "me-2"
|
|
26
|
+
})) : n("", !0),
|
|
27
|
+
e.informativeType === "alert" ? (o(), i(m, {
|
|
28
|
+
key: 2,
|
|
29
|
+
size: "20",
|
|
30
|
+
class: "me-2"
|
|
31
|
+
})) : n("", !0),
|
|
32
|
+
e.informativeType === "error" ? (o(), i(u, {
|
|
33
|
+
key: 3,
|
|
34
|
+
size: "20",
|
|
35
|
+
class: "me-2"
|
|
36
|
+
})) : n("", !0),
|
|
37
|
+
C(f, {
|
|
38
|
+
as: "h6",
|
|
39
|
+
bold: !0,
|
|
40
|
+
class: "m-0"
|
|
41
|
+
}, {
|
|
42
|
+
default: _(() => [
|
|
43
|
+
S(I(e.informativeTitle), 1)
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
})
|
|
47
|
+
], 2)) : n("", !0),
|
|
48
|
+
r("div", {
|
|
49
|
+
class: a(["d-flex align-items-center at-accordion-title px-3 py-2", [`at-accordion-title-${e.$props.titleType}`]]),
|
|
50
|
+
style: h({ backgroundColor: e.$props.titleColor ?? "", cursor: "pointer" }),
|
|
51
|
+
"aria-expanded": e.isOpen,
|
|
52
|
+
onClick: s[0] || (s[0] = g((...A) => e.onClick && e.onClick(...A), ["stop", "prevent"]))
|
|
53
|
+
}, [
|
|
54
|
+
r("div", b, [
|
|
55
|
+
l(e.$slots, "title", {}, void 0, !0)
|
|
56
|
+
]),
|
|
57
|
+
r("div", w, [
|
|
58
|
+
e.isOpen ? (o(), i(k, {
|
|
59
|
+
key: 0,
|
|
60
|
+
size: "24",
|
|
61
|
+
color: "#161617"
|
|
62
|
+
})) : n("", !0),
|
|
63
|
+
e.isOpen ? n("", !0) : (o(), i(y, {
|
|
64
|
+
key: 1,
|
|
65
|
+
size: "24",
|
|
66
|
+
color: "#161617"
|
|
67
|
+
}))
|
|
68
|
+
], 512)
|
|
69
|
+
], 14, z),
|
|
70
|
+
r("div", {
|
|
71
|
+
"data-state": e.isOpen ? "open" : "close",
|
|
72
|
+
class: "at-accordion-body"
|
|
73
|
+
}, [
|
|
74
|
+
l(e.$slots, "content", {}, void 0, !0)
|
|
75
|
+
], 8, M)
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
const j = /* @__PURE__ */ $(v, [["render", N], ["__scopeId", "data-v-72d9e4a4"]]);
|
|
79
|
+
export {
|
|
80
|
+
j as default
|
|
81
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AtCircleMinusSolidIcon as r, AtCircleXMarkSolidIcon as u, AtWarningSolidIcon as d, AtCheckCircleSolidIcon as f, AtAngleDownSolidIcon as p, AtAngleUpSolidIcon as s } from "@agrotools1/at-icons";
|
|
2
|
+
import { defineComponent as c, ref as l, watch as m } from "vue";
|
|
3
|
+
import { AtTipograph as A } from "../Tipograph/index.js";
|
|
4
|
+
const g = c({
|
|
5
|
+
name: "AtAccordion",
|
|
6
|
+
components: {
|
|
7
|
+
AtAngleUpSolidIcon: s,
|
|
8
|
+
AtAngleDownSolidIcon: p,
|
|
9
|
+
AtTitle: A.Title,
|
|
10
|
+
AtCheckCircleSolidIcon: f,
|
|
11
|
+
AtWarningSolidIcon: d,
|
|
12
|
+
AtCircleXMarkSolidIcon: u,
|
|
13
|
+
AtCircleMinusSolidIcon: r
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
isInformative: {
|
|
17
|
+
required: !0,
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
informativeType: {
|
|
22
|
+
required: !1,
|
|
23
|
+
type: String,
|
|
24
|
+
default: "default"
|
|
25
|
+
},
|
|
26
|
+
informativeTitle: {
|
|
27
|
+
required: !1,
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
titleType: {
|
|
32
|
+
required: !1,
|
|
33
|
+
type: String,
|
|
34
|
+
default: "default"
|
|
35
|
+
},
|
|
36
|
+
titleColor: {
|
|
37
|
+
required: !1,
|
|
38
|
+
type: String,
|
|
39
|
+
default: void 0
|
|
40
|
+
},
|
|
41
|
+
defaultValue: {
|
|
42
|
+
required: !1,
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
isOpen: {
|
|
47
|
+
required: !1,
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: void 0
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
emits: ["update:isOpen"],
|
|
53
|
+
setup(t, i) {
|
|
54
|
+
const o = l(null), e = l(t.defaultValue), a = () => {
|
|
55
|
+
e.value = !e.value, i.emit("update:isOpen", e.value);
|
|
56
|
+
};
|
|
57
|
+
return m(
|
|
58
|
+
() => t.isOpen,
|
|
59
|
+
(n) => {
|
|
60
|
+
e.value = n ?? !1, i.emit("update:isOpen", e.value);
|
|
61
|
+
},
|
|
62
|
+
{ immediate: !0 }
|
|
63
|
+
), {
|
|
64
|
+
isOpen: e,
|
|
65
|
+
buttonRef: o,
|
|
66
|
+
onClick: a
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
g as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import a from "./Avatar.vue2.js";
|
|
2
|
+
import { createElementBlock as t, openBlock as o, normalizeStyle as s, renderSlot as i, toDisplayString as r } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import l from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const n = ["aria-label"], d = ["src"], m = ["data-size"];
|
|
6
|
+
function p(e, f, c, h, u, z) {
|
|
7
|
+
return o(), t("div", {
|
|
8
|
+
style: s({ width: e.slotSize, height: e.slotSize }),
|
|
9
|
+
"aria-label": e.text
|
|
10
|
+
}, [
|
|
11
|
+
e.imgBase64 ? (o(), t("img", {
|
|
12
|
+
key: 0,
|
|
13
|
+
src: e.imgBase64,
|
|
14
|
+
alt: "User image"
|
|
15
|
+
}, null, 8, d)) : e.withIcon ? i(e.$slots, "default", { key: 1 }, void 0, !0) : (o(), t("span", {
|
|
16
|
+
key: 2,
|
|
17
|
+
"data-size": e.size,
|
|
18
|
+
class: "username-slot",
|
|
19
|
+
style: s({ fontSize: e.fontSize })
|
|
20
|
+
}, r(e.text), 13, m))
|
|
21
|
+
], 12, n);
|
|
22
|
+
}
|
|
23
|
+
const k = /* @__PURE__ */ l(a, [["render", p], ["__scopeId", "data-v-14b9bfaf"]]);
|
|
24
|
+
export {
|
|
25
|
+
k as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as f, computed as n } from "vue";
|
|
2
|
+
const p = f({
|
|
3
|
+
name: "AtAvatar",
|
|
4
|
+
props: {
|
|
5
|
+
imgBase64: {
|
|
6
|
+
required: !1,
|
|
7
|
+
type: String,
|
|
8
|
+
default: null,
|
|
9
|
+
validator: (e) => typeof e == "string"
|
|
10
|
+
},
|
|
11
|
+
withIcon: {
|
|
12
|
+
required: !1,
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1,
|
|
15
|
+
validator: (e) => typeof e == "boolean"
|
|
16
|
+
},
|
|
17
|
+
username: {
|
|
18
|
+
required: !0,
|
|
19
|
+
type: String,
|
|
20
|
+
default: null,
|
|
21
|
+
validator: (e) => typeof e == "string"
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
required: !1,
|
|
25
|
+
type: String,
|
|
26
|
+
default: "M",
|
|
27
|
+
validator: (e) => typeof e == "string" && ["P", "M", "G"].includes(e)
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(e) {
|
|
31
|
+
const s = n(() => {
|
|
32
|
+
switch (e.size) {
|
|
33
|
+
case "P":
|
|
34
|
+
return 24;
|
|
35
|
+
case "M":
|
|
36
|
+
return 32;
|
|
37
|
+
case "G":
|
|
38
|
+
return 44;
|
|
39
|
+
default:
|
|
40
|
+
return 32;
|
|
41
|
+
}
|
|
42
|
+
}), a = n(() => `${s.value / 2}px`), i = () => {
|
|
43
|
+
if (e.username.length) {
|
|
44
|
+
const t = e.username.split(" "), o = t[0], r = t == null ? void 0 : t[1], l = o[0], u = (r == null ? void 0 : r[0]) || "";
|
|
45
|
+
return `${l}${u}`.toUpperCase();
|
|
46
|
+
}
|
|
47
|
+
return "";
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
slotSize: n(() => `${s.value}px`),
|
|
51
|
+
fontSize: a,
|
|
52
|
+
text: i()
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
p as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import r from "./Button.vue2.js";
|
|
2
|
+
import { createBlock as i, openBlock as t, resolveDynamicComponent as o, normalizeClass as a, normalizeStyle as n, withCtx as s, renderSlot as l, createElementBlock as d, createCommentVNode as m } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import p from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
function u(e, b, f, h, y, c) {
|
|
6
|
+
return t(), i(o(e.tagName), {
|
|
7
|
+
href: e.href,
|
|
8
|
+
target: e.targetAttribute,
|
|
9
|
+
style: n({ width: e.size.width, pointerEvents: e.isLoading ? "none" : "auto" }),
|
|
10
|
+
class: a(["at-button", [e.variant, { "is-disabled": e.disabled, "only-icon": e.onlyIcon, "link-button": e.link }]]),
|
|
11
|
+
disabled: e.disabled,
|
|
12
|
+
role: "button",
|
|
13
|
+
"aria-disabled": e.disabled
|
|
14
|
+
}, {
|
|
15
|
+
default: s(() => [
|
|
16
|
+
l(e.$slots, "default", {}, void 0, !0),
|
|
17
|
+
e.isLoading ? (t(), d("div", {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: a(["spinner-border", e.variant === "primary" ? "text-white" : "text-primary"]),
|
|
20
|
+
role: "status",
|
|
21
|
+
style: { width: "1.25rem", height: "1.25rem", "margin-left": "4px" }
|
|
22
|
+
}, null, 2)) : m("", !0)
|
|
23
|
+
]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 8, ["href", "target", "style", "class", "disabled", "aria-disabled"]);
|
|
26
|
+
}
|
|
27
|
+
const $ = /* @__PURE__ */ p(r, [["render", u], ["__scopeId", "data-v-8ca0b6aa"]]);
|
|
28
|
+
export {
|
|
29
|
+
$ as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as o, computed as t } from "vue";
|
|
2
|
+
const f = o({
|
|
3
|
+
name: "AtButton",
|
|
4
|
+
props: {
|
|
5
|
+
variant: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "primary"
|
|
8
|
+
},
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => ({
|
|
16
|
+
width: "max-content"
|
|
17
|
+
})
|
|
18
|
+
},
|
|
19
|
+
onlyIcon: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
href: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
link: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
isLoading: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(e) {
|
|
37
|
+
const a = t(() => e.href && !e.disabled ? "a" : "button"), n = t(() => e.href ? "_blank" : void 0);
|
|
38
|
+
return { tagName: a, targetAttribute: n };
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
f as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import u from "./CardWithInsights.vue2.js";
|
|
2
|
+
import { resolveComponent as n, createElementBlock as e, openBlock as i, normalizeStyle as h, Fragment as p, renderList as _, createVNode as o, createElementVNode as r, toDisplayString as l, withCtx as g, createTextVNode as f } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const v = { class: "insight-container" }, y = { class: "circle-question-container" }, k = ["onClick"], C = {
|
|
7
|
+
key: 0,
|
|
8
|
+
id: "insight-value",
|
|
9
|
+
class: "insight-value"
|
|
10
|
+
}, I = {
|
|
11
|
+
key: 1,
|
|
12
|
+
id: "insight-value",
|
|
13
|
+
class: "insight-value"
|
|
14
|
+
};
|
|
15
|
+
function A(s, $, w, x, S, V) {
|
|
16
|
+
const a = n("AtIllustration"), c = n("AtCircleQuestionSolidIcon"), d = n("AtParagraph");
|
|
17
|
+
return i(), e("div", {
|
|
18
|
+
class: "card-with-insights-container",
|
|
19
|
+
style: h({
|
|
20
|
+
width: s.$props.fullWidth === !0 ? "100%" : "max-content",
|
|
21
|
+
justifyContent: s.$props.fullWidth === !0 ? "space-between" : "flex-start"
|
|
22
|
+
})
|
|
23
|
+
}, [
|
|
24
|
+
(i(!0), e(p, null, _(s.insightsList, (t) => (i(), e("div", {
|
|
25
|
+
key: t.index,
|
|
26
|
+
class: "card-with-insights-list"
|
|
27
|
+
}, [
|
|
28
|
+
o(a, {
|
|
29
|
+
illustration: t.image
|
|
30
|
+
}, null, 8, ["illustration"]),
|
|
31
|
+
r("div", v, [
|
|
32
|
+
r("div", y, [
|
|
33
|
+
r("div", {
|
|
34
|
+
class: "circle-question-icon",
|
|
35
|
+
onClick: t.myFunction
|
|
36
|
+
}, [
|
|
37
|
+
o(c, {
|
|
38
|
+
size: "16",
|
|
39
|
+
color: "var(--at-dark-grey)"
|
|
40
|
+
})
|
|
41
|
+
], 8, k)
|
|
42
|
+
]),
|
|
43
|
+
t.title ? (i(), e("h3", I, l(t.title), 1)) : (i(), e("h3", C, l(s.renderInsightValue(t.value)), 1)),
|
|
44
|
+
o(d, {
|
|
45
|
+
size: "p2",
|
|
46
|
+
class: "gray-text"
|
|
47
|
+
}, {
|
|
48
|
+
default: g(() => [
|
|
49
|
+
f(l(t.insightTitle), 1)
|
|
50
|
+
]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, 1024)
|
|
53
|
+
])
|
|
54
|
+
]))), 128))
|
|
55
|
+
], 4);
|
|
56
|
+
}
|
|
57
|
+
const E = /* @__PURE__ */ m(u, [["render", A], ["__scopeId", "data-v-c890f567"]]);
|
|
58
|
+
export {
|
|
59
|
+
E as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AtCircleQuestionSolidIcon as i } from "@agrotools1/at-icons";
|
|
2
|
+
import { defineComponent as s } from "vue";
|
|
3
|
+
import l from "../Illustration/Illustration.vue.js";
|
|
4
|
+
import { AtTipograph as p } from "../Tipograph/index.js";
|
|
5
|
+
const c = s({
|
|
6
|
+
name: "AtCardWithInsights",
|
|
7
|
+
components: {
|
|
8
|
+
AtParagraph: p.Paragraph,
|
|
9
|
+
AtIllustration: l,
|
|
10
|
+
AtCircleQuestionSolidIcon: i
|
|
11
|
+
},
|
|
12
|
+
props: {
|
|
13
|
+
insightsList: {
|
|
14
|
+
type: Array,
|
|
15
|
+
required: !0,
|
|
16
|
+
validator: (r) => Array.isArray(r) && r.every((e) => typeof e == "object")
|
|
17
|
+
},
|
|
18
|
+
fullWidth: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
required: !1,
|
|
21
|
+
default: !1,
|
|
22
|
+
validator: (r) => typeof r == "boolean"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup() {
|
|
26
|
+
const e = (t) => t % 1 !== 0, n = (t) => t.toFixed(2), o = (t) => t < 0 ? 0 : t, a = (t) => t > 1e9 ? 1e9 : t;
|
|
27
|
+
return { renderInsightValue: (t) => t === void 0 ? 0 : (t = a(t), e(t) ? n(t) : o(t)), handleFloatValue: n };
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
c as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import r from "./Checkbox.vue2.js";
|
|
2
|
+
import { createElementBlock as d, openBlock as t, Fragment as i, createElementVNode as o, mergeProps as a, createCommentVNode as s, normalizeStyle as c } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import n from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const l = ["aria-checked", "disabled"], h = ["src"], u = ["checked", "disabled"];
|
|
6
|
+
function m(e, p, b, k, f, y) {
|
|
7
|
+
return t(), d(i, null, [
|
|
8
|
+
o("button", a({ ref: "buttonRef" }, e.$attrs, {
|
|
9
|
+
type: "button",
|
|
10
|
+
role: "checkbox",
|
|
11
|
+
"aria-checked": e.isCheckedValue,
|
|
12
|
+
disabled: e.disabled,
|
|
13
|
+
style: {
|
|
14
|
+
width: e.computedSize,
|
|
15
|
+
height: e.computedSize,
|
|
16
|
+
borderRadius: e.borderRadius
|
|
17
|
+
}
|
|
18
|
+
}), [
|
|
19
|
+
e.isCheckedValue ? (t(), d("img", {
|
|
20
|
+
key: 0,
|
|
21
|
+
src: e.checkmarck
|
|
22
|
+
}, null, 8, h)) : s("", !0)
|
|
23
|
+
], 16, l),
|
|
24
|
+
o("input", {
|
|
25
|
+
ref: "inputRef",
|
|
26
|
+
tabindex: "-1",
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
type: "checkbox",
|
|
29
|
+
checked: e.isCheckedValue,
|
|
30
|
+
disabled: e.disabled,
|
|
31
|
+
style: c({ width: e.size, height: e.size })
|
|
32
|
+
}, null, 12, u)
|
|
33
|
+
], 64);
|
|
34
|
+
}
|
|
35
|
+
const $ = /* @__PURE__ */ n(r, [["render", m], ["__scopeId", "data-v-d122cadf"]]);
|
|
36
|
+
export {
|
|
37
|
+
$ as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineComponent as s, ref as i, computed as n, onMounted as y, onBeforeUnmount as b } from "vue";
|
|
2
|
+
import V from "./img/checkmarck.svg.js";
|
|
3
|
+
const A = s({
|
|
4
|
+
name: "AtCheckbox",
|
|
5
|
+
props: {
|
|
6
|
+
disabled: {
|
|
7
|
+
required: !1,
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: !1,
|
|
10
|
+
validator: (e) => typeof e == "boolean"
|
|
11
|
+
},
|
|
12
|
+
modelValue: {
|
|
13
|
+
required: !1,
|
|
14
|
+
type: [Boolean, Array],
|
|
15
|
+
default: void 0,
|
|
16
|
+
validator: (e) => Array.isArray(e) || typeof e == "boolean"
|
|
17
|
+
},
|
|
18
|
+
val: {
|
|
19
|
+
required: !1,
|
|
20
|
+
type: String,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
required: !1,
|
|
25
|
+
type: String,
|
|
26
|
+
default: "24",
|
|
27
|
+
validator: (e) => ["12", "16", "20", "24", "28"].includes(e)
|
|
28
|
+
},
|
|
29
|
+
labelledby: {
|
|
30
|
+
required: !1,
|
|
31
|
+
type: String,
|
|
32
|
+
default: "",
|
|
33
|
+
validator: (e) => typeof e == "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["click", "update:modelValue"],
|
|
37
|
+
setup(e, { emit: o }) {
|
|
38
|
+
const a = i(null), r = i(null), u = i(!1), f = n(() => `${e.size}px`), c = n(
|
|
39
|
+
() => ({
|
|
40
|
+
12: "3px",
|
|
41
|
+
16: "4px",
|
|
42
|
+
20: "6px",
|
|
43
|
+
24: "6px",
|
|
44
|
+
28: "8px"
|
|
45
|
+
})[e.size]
|
|
46
|
+
);
|
|
47
|
+
function m() {
|
|
48
|
+
return e.val !== void 0 && Array.isArray(e.modelValue) ? e.modelValue.includes(e.val) ? e.modelValue.filter((l) => l !== e.val) : [...e.modelValue, e.val] : !e.modelValue;
|
|
49
|
+
}
|
|
50
|
+
const d = (l) => {
|
|
51
|
+
let t;
|
|
52
|
+
e.modelValue === void 0 ? (t = !u.value, u.value = t) : t = m(), o("update:modelValue", t), o("click", { event: l, value: t });
|
|
53
|
+
}, v = n(() => e.modelValue === void 0 ? u.value : e.val === void 0 || typeof e.modelValue == "boolean" ? !!e.modelValue : e.modelValue.includes(e.val));
|
|
54
|
+
return y(() => {
|
|
55
|
+
var l;
|
|
56
|
+
a.value && e.labelledby && a.value.setAttribute("aria-labelledby", e.labelledby), (l = a.value) == null || l.addEventListener("click", d);
|
|
57
|
+
}), b(() => {
|
|
58
|
+
var l;
|
|
59
|
+
(l = a.value) == null || l.removeEventListener("click", d);
|
|
60
|
+
}), {
|
|
61
|
+
checkmarck: V,
|
|
62
|
+
buttonRef: a,
|
|
63
|
+
inputRef: r,
|
|
64
|
+
computedSize: f,
|
|
65
|
+
onClick: d,
|
|
66
|
+
borderRadius: c,
|
|
67
|
+
isCheckedValue: v
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
A as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const C = "data:image/svg+xml,%3csvg%20width='18'%20height='13'%20viewBox='0%200%2018%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.7393%200.323256L6.375%2010.6868C6.30532%2010.7567%206.22251%2010.8122%206.13132%2010.8501C6.04013%2010.888%205.94237%2010.9075%205.84363%2010.9075C5.74488%2010.9075%205.64712%2010.888%205.55593%2010.8501C5.46474%2010.8122%205.38193%2010.7567%205.31225%2010.6868L1.30425%206.67501C1.23457%206.60505%201.15176%206.54954%201.06057%206.51166C0.969383%206.47379%200.871615%206.45429%200.772875%206.45429C0.674134%206.45429%200.576366%206.47379%200.485179%206.51166C0.393992%206.54954%200.311182%206.60505%200.241499%206.67501C0.171542%206.74469%200.116032%206.8275%200.0781562%206.91869C0.04028%207.00987%200.0207825%207.10764%200.0207825%207.20638C0.0207825%207.30512%200.04028%207.40289%200.0781562%207.49408C0.116032%207.58526%200.171542%207.66808%200.241499%207.73776L4.251%2011.7465C4.67396%2012.1687%205.24715%2012.4058%205.84475%2012.4058C6.44235%2012.4058%207.01554%2012.1687%207.4385%2011.7465L17.802%201.38526C17.8718%201.31559%2017.9273%201.23282%2017.9651%201.14171C18.0029%201.05059%2018.0223%200.952907%2018.0223%200.854256C18.0223%200.755605%2018.0029%200.657923%2017.9651%200.566806C17.9273%200.475688%2017.8718%200.392925%2017.802%200.323256C17.7323%200.253299%2017.6495%200.197789%2017.5583%200.159913C17.4671%200.122037%2017.3694%200.102539%2017.2706%200.102539C17.1719%200.102539%2017.0741%200.122037%2016.9829%200.159913C16.8917%200.197789%2016.8089%200.253299%2016.7393%200.323256Z'%20fill='white'%20/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
C as default
|
|
4
|
+
};
|