@welldot/vue 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +526 -2
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/_virtual/icons/ph/caret-down.js +21 -0
- package/dist/_virtual/icons/ph/caret-down.js.map +1 -0
- package/dist/_virtual/icons/ph/info.js +21 -0
- package/dist/_virtual/icons/ph/info.js.map +1 -0
- package/dist/_virtual/icons/ph/pencil-simple-line.js +21 -0
- package/dist/_virtual/icons/ph/pencil-simple-line.js.map +1 -0
- package/dist/_virtual/icons/ph/pencil-simple.js +21 -0
- package/dist/_virtual/icons/ph/pencil-simple.js.map +1 -0
- package/dist/_virtual/icons/ph/plus.js +21 -0
- package/dist/_virtual/icons/ph/plus.js.map +1 -0
- package/dist/_virtual/icons/ph/x.js +21 -0
- package/dist/_virtual/icons/ph/x.js.map +1 -0
- package/dist/components/WellChip.d.ts +30 -0
- package/dist/components/WellChip.d.ts.map +1 -0
- package/dist/components/WellChip.js +9 -0
- package/dist/components/WellChip.js.map +1 -0
- package/dist/components/WellChip.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/WellChip.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellComboSelect.d.ts +19 -0
- package/dist/components/WellComboSelect.d.ts.map +1 -0
- package/dist/components/WellComboSelect.js +7 -0
- package/dist/components/WellComboSelect.js.map +1 -0
- package/dist/components/WellComboSelect.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/WellComboSelect.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellInfoPopover.d.ts +31 -0
- package/dist/components/WellInfoPopover.d.ts.map +1 -0
- package/dist/components/WellInfoPopover.js +7 -0
- package/dist/components/WellInfoPopover.js.map +1 -0
- package/dist/components/WellInfoPopover.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/WellInfoPopover.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellInputNumber.d.ts +4 -0
- package/dist/components/WellInputNumber.d.ts.map +1 -0
- package/dist/components/WellInputNumber.js +7 -0
- package/dist/components/WellInputNumber.js.map +1 -0
- package/dist/components/WellInputNumber.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/WellInputNumber.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellLabeledField.d.ts +22 -0
- package/dist/components/WellLabeledField.d.ts.map +1 -0
- package/dist/components/WellLabeledField.js +7 -0
- package/dist/components/WellLabeledField.js.map +1 -0
- package/dist/components/WellLabeledField.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/components/WellLabeledField.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellTagSelect.d.ts +21 -0
- package/dist/components/WellTagSelect.d.ts.map +1 -0
- package/dist/components/WellTagSelect.js +7 -0
- package/dist/components/WellTagSelect.js.map +1 -0
- package/dist/components/WellTagSelect.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/WellTagSelect.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellTextureSelect.d.ts +30 -0
- package/dist/components/WellTextureSelect.d.ts.map +1 -0
- package/dist/components/WellTextureSelect.js +7 -0
- package/dist/components/WellTextureSelect.js.map +1 -0
- package/dist/components/WellTextureSelect.vue_vue_type_script_setup_true_lang.js +103 -0
- package/dist/components/WellTextureSelect.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellTextureThumbnail.d.ts +10 -0
- package/dist/components/WellTextureThumbnail.d.ts.map +1 -0
- package/dist/components/WellTextureThumbnail.js +9 -0
- package/dist/components/WellTextureThumbnail.js.map +1 -0
- package/dist/components/WellTextureThumbnail.vue_vue_type_script_setup_true_lang.js +393 -0
- package/dist/components/WellTextureThumbnail.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/WellUnitInput.d.ts +19 -0
- package/dist/components/WellUnitInput.d.ts.map +1 -0
- package/dist/components/WellUnitInput.js +7 -0
- package/dist/components/WellUnitInput.js.map +1 -0
- package/dist/components/WellUnitInput.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/WellUnitInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/parts/WellInfoTrigger.d.ts +8 -0
- package/dist/components/parts/WellInfoTrigger.d.ts.map +1 -0
- package/dist/components/parts/WellInfoTrigger.js +7 -0
- package/dist/components/parts/WellInfoTrigger.js.map +1 -0
- package/dist/components/parts/WellInfoTrigger.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/parts/WellInfoTrigger.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/composables/useWellNumberFormat.d.ts +12 -0
- package/dist/composables/useWellNumberFormat.d.ts.map +1 -0
- package/dist/composables/useWellNumberFormat.js +25 -0
- package/dist/composables/useWellNumberFormat.js.map +1 -0
- package/dist/composables/useWellText.d.ts +11 -0
- package/dist/composables/useWellText.d.ts.map +1 -0
- package/dist/composables/useWellText.js +15 -0
- package/dist/composables/useWellText.js.map +1 -0
- package/dist/composables/useWellUnits.d.ts +29 -0
- package/dist/composables/useWellUnits.d.ts.map +1 -0
- package/dist/composables/useWellUnits.js +52 -0
- package/dist/composables/useWellUnits.js.map +1 -0
- package/dist/config.d.ts +110 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +76 -0
- package/dist/config.js.map +1 -0
- package/dist/grid/WellDataGrid.d.ts +29 -0
- package/dist/grid/WellDataGrid.d.ts.map +1 -0
- package/dist/grid/WellDataGrid.js +9 -0
- package/dist/grid/WellDataGrid.js.map +1 -0
- package/dist/grid/WellDataGrid.vue_vue_type_script_setup_true_lang.js +84 -0
- package/dist/grid/WellDataGrid.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridCheckboxCell.d.ts +10 -0
- package/dist/grid/cells/GridCheckboxCell.d.ts.map +1 -0
- package/dist/grid/cells/GridCheckboxCell.js +7 -0
- package/dist/grid/cells/GridCheckboxCell.js.map +1 -0
- package/dist/grid/cells/GridCheckboxCell.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/grid/cells/GridCheckboxCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridColorCell.d.ts +7 -0
- package/dist/grid/cells/GridColorCell.d.ts.map +1 -0
- package/dist/grid/cells/GridColorCell.js +7 -0
- package/dist/grid/cells/GridColorCell.js.map +1 -0
- package/dist/grid/cells/GridColorCell.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/grid/cells/GridColorCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridColorPickerEditor.d.ts +12 -0
- package/dist/grid/cells/GridColorPickerEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridColorPickerEditor.js +7 -0
- package/dist/grid/cells/GridColorPickerEditor.js.map +1 -0
- package/dist/grid/cells/GridColorPickerEditor.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/grid/cells/GridColorPickerEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridComboEditor.d.ts +14 -0
- package/dist/grid/cells/GridComboEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridComboEditor.js +7 -0
- package/dist/grid/cells/GridComboEditor.js.map +1 -0
- package/dist/grid/cells/GridComboEditor.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/grid/cells/GridComboEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridDeleteCell.d.ts +12 -0
- package/dist/grid/cells/GridDeleteCell.d.ts.map +1 -0
- package/dist/grid/cells/GridDeleteCell.js +7 -0
- package/dist/grid/cells/GridDeleteCell.js.map +1 -0
- package/dist/grid/cells/GridDeleteCell.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/grid/cells/GridDeleteCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridDragCell.d.ts +16 -0
- package/dist/grid/cells/GridDragCell.d.ts.map +1 -0
- package/dist/grid/cells/GridDragCell.js +7 -0
- package/dist/grid/cells/GridDragCell.js.map +1 -0
- package/dist/grid/cells/GridDragCell.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/grid/cells/GridDragCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridFormattedCell.d.ts +9 -0
- package/dist/grid/cells/GridFormattedCell.d.ts.map +1 -0
- package/dist/grid/cells/GridFormattedCell.js +7 -0
- package/dist/grid/cells/GridFormattedCell.js.map +1 -0
- package/dist/grid/cells/GridFormattedCell.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/grid/cells/GridFormattedCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridHeaderCell.d.ts +11 -0
- package/dist/grid/cells/GridHeaderCell.d.ts.map +1 -0
- package/dist/grid/cells/GridHeaderCell.js +7 -0
- package/dist/grid/cells/GridHeaderCell.js.map +1 -0
- package/dist/grid/cells/GridHeaderCell.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/grid/cells/GridHeaderCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridNumberEditor.d.ts +9 -0
- package/dist/grid/cells/GridNumberEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridNumberEditor.js +7 -0
- package/dist/grid/cells/GridNumberEditor.js.map +1 -0
- package/dist/grid/cells/GridNumberEditor.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/grid/cells/GridNumberEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridSelectButtonCell.d.ts +12 -0
- package/dist/grid/cells/GridSelectButtonCell.d.ts.map +1 -0
- package/dist/grid/cells/GridSelectButtonCell.js +7 -0
- package/dist/grid/cells/GridSelectButtonCell.js.map +1 -0
- package/dist/grid/cells/GridSelectButtonCell.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/grid/cells/GridSelectButtonCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridSelectCell.d.ts +9 -0
- package/dist/grid/cells/GridSelectCell.d.ts.map +1 -0
- package/dist/grid/cells/GridSelectCell.js +7 -0
- package/dist/grid/cells/GridSelectCell.js.map +1 -0
- package/dist/grid/cells/GridSelectCell.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/grid/cells/GridSelectCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridSelectEditor.d.ts +11 -0
- package/dist/grid/cells/GridSelectEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridSelectEditor.js +7 -0
- package/dist/grid/cells/GridSelectEditor.js.map +1 -0
- package/dist/grid/cells/GridSelectEditor.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/grid/cells/GridSelectEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridTextEditor.d.ts +9 -0
- package/dist/grid/cells/GridTextEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridTextEditor.js +7 -0
- package/dist/grid/cells/GridTextEditor.js.map +1 -0
- package/dist/grid/cells/GridTextEditor.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/grid/cells/GridTextEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridTextureSelectCell.d.ts +7 -0
- package/dist/grid/cells/GridTextureSelectCell.d.ts.map +1 -0
- package/dist/grid/cells/GridTextureSelectCell.js +7 -0
- package/dist/grid/cells/GridTextureSelectCell.js.map +1 -0
- package/dist/grid/cells/GridTextureSelectCell.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/grid/cells/GridTextureSelectCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridTextureSelectEditor.d.ts +13 -0
- package/dist/grid/cells/GridTextureSelectEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridTextureSelectEditor.js +7 -0
- package/dist/grid/cells/GridTextureSelectEditor.js.map +1 -0
- package/dist/grid/cells/GridTextureSelectEditor.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/grid/cells/GridTextureSelectEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridUnitCell.d.ts +9 -0
- package/dist/grid/cells/GridUnitCell.d.ts.map +1 -0
- package/dist/grid/cells/GridUnitCell.js +7 -0
- package/dist/grid/cells/GridUnitCell.js.map +1 -0
- package/dist/grid/cells/GridUnitCell.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/grid/cells/GridUnitCell.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/cells/GridUnitEditor.d.ts +11 -0
- package/dist/grid/cells/GridUnitEditor.d.ts.map +1 -0
- package/dist/grid/cells/GridUnitEditor.js +7 -0
- package/dist/grid/cells/GridUnitEditor.js.map +1 -0
- package/dist/grid/cells/GridUnitEditor.vue_vue_type_script_setup_true_lang.js +58 -0
- package/dist/grid/cells/GridUnitEditor.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/columnStretchPlugin.d.ts +12 -0
- package/dist/grid/columnStretchPlugin.d.ts.map +1 -0
- package/dist/grid/columnStretchPlugin.js +35 -0
- package/dist/grid/columnStretchPlugin.js.map +1 -0
- package/dist/grid/composables/useCellTemplate.d.ts +35 -0
- package/dist/grid/composables/useCellTemplate.d.ts.map +1 -0
- package/dist/grid/composables/useCellTemplate.js +30 -0
- package/dist/grid/composables/useCellTemplate.js.map +1 -0
- package/dist/grid/composables/useGridOverlayFocusGuard.d.ts +5 -0
- package/dist/grid/composables/useGridOverlayFocusGuard.d.ts.map +1 -0
- package/dist/grid/composables/useGridOverlayFocusGuard.js +12 -0
- package/dist/grid/composables/useGridOverlayFocusGuard.js.map +1 -0
- package/dist/grid/composables/useUnitSuffix.d.ts +9 -0
- package/dist/grid/composables/useUnitSuffix.d.ts.map +1 -0
- package/dist/grid/composables/useUnitSuffix.js +13 -0
- package/dist/grid/composables/useUnitSuffix.js.map +1 -0
- package/dist/grid/index.d.ts +8 -0
- package/dist/grid/index.d.ts.map +1 -0
- package/dist/grid/index.js +4 -0
- package/dist/grid/parts/WellGridAddButton.d.ts +5 -0
- package/dist/grid/parts/WellGridAddButton.d.ts.map +1 -0
- package/dist/grid/parts/WellGridAddButton.js +7 -0
- package/dist/grid/parts/WellGridAddButton.js.map +1 -0
- package/dist/grid/parts/WellGridAddButton.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/grid/parts/WellGridAddButton.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/parts/WellGridDeleteButton.d.ts +5 -0
- package/dist/grid/parts/WellGridDeleteButton.d.ts.map +1 -0
- package/dist/grid/parts/WellGridDeleteButton.js +7 -0
- package/dist/grid/parts/WellGridDeleteButton.js.map +1 -0
- package/dist/grid/parts/WellGridDeleteButton.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/grid/parts/WellGridDeleteButton.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/grid/types.d.ts +90 -0
- package/dist/grid/types.d.ts.map +1 -0
- package/dist/grid/useWellGridColumns.d.ts +40 -0
- package/dist/grid/useWellGridColumns.d.ts.map +1 -0
- package/dist/grid/useWellGridColumns.js +242 -0
- package/dist/grid/useWellGridColumns.js.map +1 -0
- package/dist/grid.css +407 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/location/WellCoordinateInput.d.ts +14 -0
- package/dist/location/WellCoordinateInput.d.ts.map +1 -0
- package/dist/location/WellCoordinateInput.js +7 -0
- package/dist/location/WellCoordinateInput.js.map +1 -0
- package/dist/location/WellCoordinateInput.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/location/WellCoordinateInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/location/WellLocationMap.d.ts +22 -0
- package/dist/location/WellLocationMap.d.ts.map +1 -0
- package/dist/location/WellLocationMap.js +9 -0
- package/dist/location/WellLocationMap.js.map +1 -0
- package/dist/location/WellLocationMap.vue_vue_type_script_setup_true_lang.js +91 -0
- package/dist/location/WellLocationMap.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/location/WellLocationPicker.d.ts +32 -0
- package/dist/location/WellLocationPicker.d.ts.map +1 -0
- package/dist/location/WellLocationPicker.js +7 -0
- package/dist/location/WellLocationPicker.js.map +1 -0
- package/dist/location/WellLocationPicker.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/location/WellLocationPicker.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/location/index.d.ts +6 -0
- package/dist/location/index.d.ts.map +1 -0
- package/dist/location/index.js +5 -0
- package/dist/location/location.d.ts +61 -0
- package/dist/location/location.d.ts.map +1 -0
- package/dist/location/location.js +15 -0
- package/dist/location/location.js.map +1 -0
- package/dist/nuxt/module.d.ts +76 -0
- package/dist/nuxt/module.d.ts.map +1 -0
- package/dist/nuxt/module.js +129 -0
- package/dist/nuxt/module.js.map +1 -0
- package/dist/nuxt/runtime/plugin.d.ts +14 -0
- package/dist/nuxt/runtime/plugin.d.ts.map +1 -0
- package/dist/nuxt/runtime/plugin.js +13 -0
- package/dist/nuxt/runtime/plugin.js.map +1 -0
- package/dist/style.css +2 -0
- package/dist/tailwind.css +160 -0
- package/dist/theme/define.d.ts +44 -0
- package/dist/theme/define.d.ts.map +1 -0
- package/dist/theme/define.js +14 -0
- package/dist/theme/define.js.map +1 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +4 -0
- package/dist/theme/preset.d.ts +20 -0
- package/dist/theme/preset.d.ts.map +1 -0
- package/dist/theme/preset.js +977 -0
- package/dist/theme/preset.js.map +1 -0
- package/dist/theme/pt.d.ts +8 -0
- package/dist/theme/pt.d.ts.map +1 -0
- package/dist/theme/pt.js +66 -0
- package/dist/theme/pt.js.map +1 -0
- package/dist/types.d.ts +38 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +134 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plus.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, markRaw as n, openBlock as r } from "vue";
|
|
2
|
+
//#region ~icons/ph/x
|
|
3
|
+
var i = {
|
|
4
|
+
viewBox: "0 0 256 256",
|
|
5
|
+
width: "1.2em",
|
|
6
|
+
height: "1.2em"
|
|
7
|
+
};
|
|
8
|
+
function a(n, a) {
|
|
9
|
+
return r(), e("svg", i, [...a[0] || (a[0] = [t("path", {
|
|
10
|
+
fill: "currentColor",
|
|
11
|
+
d: "M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"
|
|
12
|
+
}, null, -1)])]);
|
|
13
|
+
}
|
|
14
|
+
var o = n({
|
|
15
|
+
name: "ph-x",
|
|
16
|
+
render: a
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as default };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LanguageTextInput } from '@welldot/core';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
label?: LanguageTextInput;
|
|
5
|
+
/** Component, or an icon name rendered by the configured `icon` part. */
|
|
6
|
+
icon?: string | Component;
|
|
7
|
+
/** Highlighted/selected state (primary tint). */
|
|
8
|
+
active?: boolean;
|
|
9
|
+
removable?: boolean;
|
|
10
|
+
/** Accessible label for the remove button. */
|
|
11
|
+
removeLabel?: LanguageTextInput;
|
|
12
|
+
};
|
|
13
|
+
declare var __VLS_12: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_12) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
remove: () => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
onRemove?: (() => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=WellChip.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellChip.d.ts","sourceRoot":"","sources":["../../src/components/WellChip.vue"],"names":[],"mappings":"AAoJA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAK/D,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAmHF,QAAA,IAAI,QAAQ,IAAY,CAAC;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./WellChip.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
//#region src/components/WellChip.vue
|
|
5
|
+
var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-8d006c88"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=WellChip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellChip.js","names":[],"sources":["../../src/components/WellChip.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Compact pill chip — the single chip style (filters, selected values).\n *\n * - Default: renders a `<button>`; listen to `@click` for toggle/filter use.\n * - `removable`: renders a static `<span>` with a trailing × button that\n * emits `remove` (used for displaying selected values).\n *\n * `icon` is a component, or a string name rendered through the\n * `createWelldot({ components: { icon } })` part (`WellIconProps`); without\n * that part a string icon is ignored.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport { computed, markRaw, toRaw, type Component } from 'vue';\nimport IconX from '~icons/ph/x';\nimport { useWellText } from '../composables/useWellText';\nimport { useWelldotConfig } from '../config';\n\nconst props = defineProps<{\n label?: LanguageTextInput;\n /** Component, or an icon name rendered by the configured `icon` part. */\n icon?: string | Component;\n /** Highlighted/selected state (primary tint). */\n active?: boolean;\n removable?: boolean;\n /** Accessible label for the remove button. */\n removeLabel?: LanguageTextInput;\n}>();\n\ndefineEmits<{\n remove: [];\n}>();\n\nconst config = useWelldotConfig();\nconst text = useWellText();\n\nconst iconComponent = computed<Component | undefined>(() =>\n typeof props.icon === 'string'\n ? config.components.icon\n : props.icon && markRaw(toRaw(props.icon)),\n);\nconst iconName = computed(() =>\n typeof props.icon === 'string' ? props.icon : undefined,\n);\n</script>\n\n<template>\n <component\n :is=\"props.removable ? 'span' : 'button'\"\n :type=\"props.removable ? undefined : 'button'\"\n class=\"app-chip\"\n :class=\"{ active: props.active, 'app-chip--static': props.removable }\"\n >\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n v-bind=\"iconName ? { name: iconName } : {}\"\n class=\"size-3.5\"\n />\n <slot>{{ text(props.label) }}</slot>\n <button\n v-if=\"props.removable\"\n type=\"button\"\n class=\"app-chip-remove\"\n :aria-label=\"text(props.removeLabel)\"\n @click.stop=\"$emit('remove')\"\n >\n <IconX class=\"size-3\" />\n </button>\n </component>\n</template>\n\n<style scoped>\n.app-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 12px;\n border-radius: 999px;\n border: 1px solid var(--color-surface-200);\n background: var(--color-surface-50);\n color: var(--color-content-300);\n font-family: var(--font-display);\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n cursor: pointer;\n transition:\n background 120ms ease,\n color 120ms ease,\n border-color 120ms ease;\n}\n\n.app-chip:not(.app-chip--static, .active):hover {\n background: var(--color-surface-100);\n color: var(--color-content-100);\n border-color: var(--color-surface-300);\n}\n\n.app-chip.active {\n background: var(--color-primary-50);\n color: var(--color-primary-600);\n border-color: var(--color-primary-200);\n}\n\n.app-chip.active:not(.app-chip--static):hover {\n background: var(--color-primary-100);\n color: var(--color-primary-700);\n border-color: var(--color-primary-300);\n}\n\n.app-chip--static {\n cursor: default;\n padding-right: 6px;\n}\n\n.app-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 1px;\n padding: 2px;\n border: none;\n border-radius: 999px;\n background: transparent;\n color: inherit;\n opacity: 0.6;\n cursor: pointer;\n transition:\n opacity 120ms ease,\n background 120ms ease;\n}\n\n.app-chip-remove:hover {\n opacity: 1;\n background: color-mix(in srgb, currentColor 12%, transparent);\n}\n\n.app-chip:focus-visible,\n.app-chip-remove:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3px\n color-mix(in srgb, var(--color-primary-500) 25%, transparent);\n}\n</style>\n"],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useWelldotConfig as e } from "../config.js";
|
|
2
|
+
import { useWellText as t } from "../composables/useWellText.js";
|
|
3
|
+
import n from "../_virtual/icons/ph/x.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, markRaw as u, mergeProps as d, normalizeClass as f, openBlock as p, renderSlot as m, resolveDynamicComponent as h, toDisplayString as g, toRaw as _, unref as v, withCtx as y, withModifiers as b } from "vue";
|
|
5
|
+
//#region src/components/WellChip.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var x = ["aria-label"], S = /* @__PURE__ */ l({
|
|
7
|
+
__name: "WellChip",
|
|
8
|
+
props: {
|
|
9
|
+
label: {},
|
|
10
|
+
icon: {},
|
|
11
|
+
active: { type: Boolean },
|
|
12
|
+
removable: { type: Boolean },
|
|
13
|
+
removeLabel: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["remove"],
|
|
16
|
+
setup(l) {
|
|
17
|
+
let S = l, C = e(), w = t(), T = r(() => typeof S.icon == "string" ? C.components.icon : S.icon && u(_(S.icon))), E = r(() => typeof S.icon == "string" ? S.icon : void 0);
|
|
18
|
+
return (e, t) => (p(), i(h(S.removable ? "span" : "button"), {
|
|
19
|
+
type: S.removable ? void 0 : "button",
|
|
20
|
+
class: f(["app-chip", {
|
|
21
|
+
active: S.active,
|
|
22
|
+
"app-chip--static": S.removable
|
|
23
|
+
}])
|
|
24
|
+
}, {
|
|
25
|
+
default: y(() => [
|
|
26
|
+
T.value ? (p(), i(h(T.value), d({ key: 0 }, E.value ? { name: E.value } : {}, { class: "size-3.5" }), null, 16)) : a("", !0),
|
|
27
|
+
m(e.$slots, "default", {}, () => [s(g(v(w)(S.label)), 1)], !0),
|
|
28
|
+
S.removable ? (p(), o("button", {
|
|
29
|
+
key: 1,
|
|
30
|
+
type: "button",
|
|
31
|
+
class: "app-chip-remove",
|
|
32
|
+
"aria-label": v(w)(S.removeLabel),
|
|
33
|
+
onClick: t[0] || (t[0] = b((t) => e.$emit("remove"), ["stop"]))
|
|
34
|
+
}, [c(v(n), { class: "size-3" })], 8, x)) : a("", !0)
|
|
35
|
+
]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 8, ["type", "class"]));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { S as default };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=WellChip.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellChip.vue_vue_type_script_setup_true_lang.js","names":["$emit"],"sources":["../../src/components/WellChip.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Compact pill chip — the single chip style (filters, selected values).\n *\n * - Default: renders a `<button>`; listen to `@click` for toggle/filter use.\n * - `removable`: renders a static `<span>` with a trailing × button that\n * emits `remove` (used for displaying selected values).\n *\n * `icon` is a component, or a string name rendered through the\n * `createWelldot({ components: { icon } })` part (`WellIconProps`); without\n * that part a string icon is ignored.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport { computed, markRaw, toRaw, type Component } from 'vue';\nimport IconX from '~icons/ph/x';\nimport { useWellText } from '../composables/useWellText';\nimport { useWelldotConfig } from '../config';\n\nconst props = defineProps<{\n label?: LanguageTextInput;\n /** Component, or an icon name rendered by the configured `icon` part. */\n icon?: string | Component;\n /** Highlighted/selected state (primary tint). */\n active?: boolean;\n removable?: boolean;\n /** Accessible label for the remove button. */\n removeLabel?: LanguageTextInput;\n}>();\n\ndefineEmits<{\n remove: [];\n}>();\n\nconst config = useWelldotConfig();\nconst text = useWellText();\n\nconst iconComponent = computed<Component | undefined>(() =>\n typeof props.icon === 'string'\n ? config.components.icon\n : props.icon && markRaw(toRaw(props.icon)),\n);\nconst iconName = computed(() =>\n typeof props.icon === 'string' ? props.icon : undefined,\n);\n</script>\n\n<template>\n <component\n :is=\"props.removable ? 'span' : 'button'\"\n :type=\"props.removable ? undefined : 'button'\"\n class=\"app-chip\"\n :class=\"{ active: props.active, 'app-chip--static': props.removable }\"\n >\n <component\n :is=\"iconComponent\"\n v-if=\"iconComponent\"\n v-bind=\"iconName ? { name: iconName } : {}\"\n class=\"size-3.5\"\n />\n <slot>{{ text(props.label) }}</slot>\n <button\n v-if=\"props.removable\"\n type=\"button\"\n class=\"app-chip-remove\"\n :aria-label=\"text(props.removeLabel)\"\n @click.stop=\"$emit('remove')\"\n >\n <IconX class=\"size-3\" />\n </button>\n </component>\n</template>\n\n<style scoped>\n.app-chip {\n display: inline-flex;\n align-items: center;\n gap: 5px;\n padding: 4px 12px;\n border-radius: 999px;\n border: 1px solid var(--color-surface-200);\n background: var(--color-surface-50);\n color: var(--color-content-300);\n font-family: var(--font-display);\n font-size: 11px;\n font-weight: 500;\n line-height: 1.4;\n cursor: pointer;\n transition:\n background 120ms ease,\n color 120ms ease,\n border-color 120ms ease;\n}\n\n.app-chip:not(.app-chip--static, .active):hover {\n background: var(--color-surface-100);\n color: var(--color-content-100);\n border-color: var(--color-surface-300);\n}\n\n.app-chip.active {\n background: var(--color-primary-50);\n color: var(--color-primary-600);\n border-color: var(--color-primary-200);\n}\n\n.app-chip.active:not(.app-chip--static):hover {\n background: var(--color-primary-100);\n color: var(--color-primary-700);\n border-color: var(--color-primary-300);\n}\n\n.app-chip--static {\n cursor: default;\n padding-right: 6px;\n}\n\n.app-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin-left: 1px;\n padding: 2px;\n border: none;\n border-radius: 999px;\n background: transparent;\n color: inherit;\n opacity: 0.6;\n cursor: pointer;\n transition:\n opacity 120ms ease,\n background 120ms ease;\n}\n\n.app-chip-remove:hover {\n opacity: 1;\n background: color-mix(in srgb, currentColor 12%, transparent);\n}\n\n.app-chip:focus-visible,\n.app-chip-remove:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3px\n color-mix(in srgb, var(--color-primary-500) 25%, transparent);\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;EAkBA,IAAM,IAAQ,GAeR,IAAS,GAAkB,EAC3B,IAAO,GAAa,EAEpB,IAAgB,QACpB,OAAO,EAAM,QAAS,WAClB,EAAO,WAAW,OAClB,EAAM,QAAQ,EAAQ,EAAM,EAAM,KAAK,CAAC,CAC7C,EACK,IAAW,QACf,OAAO,EAAM,QAAS,WAAW,EAAM,OAAO,KAAA,EAC/C;yBAIC,EAsBY,EArBL,EAAM,YAAS,SAAA,SAAA,EAAA;GACnB,MAAM,EAAM,YAAY,KAAA,IAAS;GAClC,OAAK,EAAA,CAAC,YAAU;IAAA,QACE,EAAM;IAAM,oBAAsB,EAAM;IAAS,CAAA,CAAA;;oBAOjE;IAHM,EAAA,SAAA,GAAA,EAFR,EAKE,EAJK,EAAA,MAAa,EADpB,EAKE,EAAA,KAAA,GAAA,EAFQ,EAAA,QAAQ,EAAA,MAAW,EAAA,OAAQ,GAAA,EAAA,EAAA,EACnC,OAAM,YAAU,CAAA,EAAA,MAAA,GAAA,IAAA,EAAA,IAAA,GAAA;IAElB,EAAoC,EAAA,QAAA,WAAA,EAAA,QAAA,CAAA,EAAA,EAA3B,EAAA,EAAI,CAAC,EAAM,MAAK,CAAA,EAAA,EAAA,CAAA,EAAA,GAAA;IAEjB,EAAM,aAAA,GAAA,EADd,EAQS,UAAA;;KANP,MAAK;KACL,OAAM;KACL,cAAY,EAAA,EAAI,CAAC,EAAM,YAAW;KAClC,SAAK,EAAA,OAAA,EAAA,KAAA,GAAA,MAAOA,EAAAA,MAAK,SAAA,EAAA,CAAA,OAAA,CAAA;QAElB,EAAwB,EAAA,EAAA,EAAA,EAAjB,OAAM,UAAQ,CAAA,CAAA,EAAA,GAAA,EAAA,IAAA,EAAA,IAAA,GAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LanguageTextInput } from '@welldot/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Note shown at the top of the overlay; omitted when not set. */
|
|
4
|
+
hint?: LanguageTextInput;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_16: string, __VLS_17: any;
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
[K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=WellComboSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellComboSelect.d.ts","sourceRoot":"","sources":["../../src/components/WellComboSelect.vue"],"names":[],"mappings":"AA6CA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAMvD,KAAK,WAAW,GAAG;IACjB,kEAAkE;IAClE,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AA0FF,QAAA,IAAI,QAAQ,QAAY,EAAE,QAAQ,KAAY,CAAC;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,CAAC;AAG5E,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellComboSelect.js","names":[],"sources":["../../src/components/WellComboSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Editable Select for open fields: the options are suggestions and any typed\n * text is kept as the value. `hint` opens the overlay with a short note\n * saying so (e.g. \"Suggestions — you can also type your own value\").\n *\n * Every other attribute (`v-model`, `options`, `option-label`, `show-clear`,\n * `invalid`, `pt`…) and slot is forwarded to PrimeVue's `Select`.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport Select from 'primevue/select';\nimport { computed } from 'vue';\nimport IconPencilSimpleLine from '~icons/ph/pencil-simple-line';\nimport { useWellText } from '../composables/useWellText';\n\nconst props = defineProps<{\n /** Note shown at the top of the overlay; omitted when not set. */\n hint?: LanguageTextInput;\n}>();\n\ndefineOptions({ inheritAttrs: false });\n\nconst text = useWellText();\nconst hintText = computed(() => text(props.hint));\n</script>\n\n<template>\n <Select v-bind=\"$attrs\" editable>\n <template v-if=\"hintText\" #header>\n <div\n role=\"note\"\n class=\"well-combo-select-hint flex items-center gap-1.5 px-3 pt-2 pb-1 font-display text-xs text-content-300\"\n >\n <IconPencilSimpleLine class=\"size-3.5 shrink-0\" aria-hidden=\"true\" />\n {{ hintText }}\n </div>\n </template>\n <template v-for=\"(_, name) in $slots\" #[name]=\"slotProps\">\n <slot :name=\"name\" v-bind=\"slotProps ?? {}\" />\n </template>\n </Select>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useWellText as e } from "../composables/useWellText.js";
|
|
2
|
+
import t from "../_virtual/icons/ph/pencil-simple-line.js";
|
|
3
|
+
import { computed as n, createBlock as r, createElementVNode as i, createSlots as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
4
|
+
import v from "primevue/select";
|
|
5
|
+
//#region src/components/WellComboSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var y = {
|
|
7
|
+
role: "note",
|
|
8
|
+
class: "well-combo-select-hint flex items-center gap-1.5 px-3 pt-2 pb-1 font-display text-xs text-content-300"
|
|
9
|
+
}, b = /* @__PURE__ */ c({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "WellComboSelect",
|
|
12
|
+
props: { hint: {} },
|
|
13
|
+
setup(c) {
|
|
14
|
+
let b = c, x = e(), S = n(() => x(b.hint));
|
|
15
|
+
return (e, n) => (f(), r(g(v), u(e.$attrs, { editable: "" }), a({ _: 2 }, [S.value ? {
|
|
16
|
+
name: "header",
|
|
17
|
+
fn: _(() => [i("div", y, [s(g(t), {
|
|
18
|
+
class: "size-3.5 shrink-0",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}), o(" " + h(S.value), 1)])]),
|
|
21
|
+
key: "0"
|
|
22
|
+
} : void 0, p(e.$slots, (t, n) => ({
|
|
23
|
+
name: n,
|
|
24
|
+
fn: _((t) => [m(e.$slots, n, d(l(t ?? {})))])
|
|
25
|
+
}))]), 1040));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { b as default };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=WellComboSelect.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellComboSelect.vue_vue_type_script_setup_true_lang.js","names":["$attrs","$slots"],"sources":["../../src/components/WellComboSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Editable Select for open fields: the options are suggestions and any typed\n * text is kept as the value. `hint` opens the overlay with a short note\n * saying so (e.g. \"Suggestions — you can also type your own value\").\n *\n * Every other attribute (`v-model`, `options`, `option-label`, `show-clear`,\n * `invalid`, `pt`…) and slot is forwarded to PrimeVue's `Select`.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport Select from 'primevue/select';\nimport { computed } from 'vue';\nimport IconPencilSimpleLine from '~icons/ph/pencil-simple-line';\nimport { useWellText } from '../composables/useWellText';\n\nconst props = defineProps<{\n /** Note shown at the top of the overlay; omitted when not set. */\n hint?: LanguageTextInput;\n}>();\n\ndefineOptions({ inheritAttrs: false });\n\nconst text = useWellText();\nconst hintText = computed(() => text(props.hint));\n</script>\n\n<template>\n <Select v-bind=\"$attrs\" editable>\n <template v-if=\"hintText\" #header>\n <div\n role=\"note\"\n class=\"well-combo-select-hint flex items-center gap-1.5 px-3 pt-2 pb-1 font-display text-xs text-content-300\"\n >\n <IconPencilSimpleLine class=\"size-3.5 shrink-0\" aria-hidden=\"true\" />\n {{ hintText }}\n </div>\n </template>\n <template v-for=\"(_, name) in $slots\" #[name]=\"slotProps\">\n <slot :name=\"name\" v-bind=\"slotProps ?? {}\" />\n </template>\n </Select>\n</template>\n"],"mappings":";;;;;;;;;;;;;EAeA,IAAM,IAAQ,GAOR,IAAO,GAAa,EACpB,IAAW,QAAe,EAAK,EAAM,KAAK,CAAC;yBAI/C,EAaS,EAAA,EAAA,EAbT,EAAgBA,EAaP,QAba,EAAE,UAAA,IAAQ,CAAA,EAAA,EAAA,EAAA,GAAA,GAAA,EAAA,CACd,EAAA,QAAA;SAAW;eAOnB,CANN,EAMM,OANN,GAMM,CAFJ,EAAqE,EAAA,EAAA,EAAA;IAA/C,OAAM;IAAoB,eAAY;SAAS,MACrE,EAAG,EAAA,MAAQ,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA;;gBAGeC,EAAAA,SAAZ,GAAG;GAAkB;UAAQ,MAAS,CACtD,EAA8C,EAAA,QAAjC,GAAI,EAAA,EAAU,KAAS,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LanguageTextInput } from '@welldot/core';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
info?: LanguageTextInput;
|
|
5
|
+
/** Accessible label of the trigger. Not rendered when omitted. */
|
|
6
|
+
label?: LanguageTextInput;
|
|
7
|
+
size?: 'sm' | 'md';
|
|
8
|
+
components?: {
|
|
9
|
+
trigger?: Component;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
size: "sm" | "md";
|
|
17
|
+
components: {
|
|
18
|
+
trigger?: Component;
|
|
19
|
+
};
|
|
20
|
+
label: string | import('@welldot/core').LanguageText<never> | null;
|
|
21
|
+
info: string | import('@welldot/core').LanguageText<never> | null;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=WellInfoPopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellInfoPopover.d.ts","sourceRoot":"","sources":["../../src/components/WellInfoPopover.vue"],"names":[],"mappings":"AAwFA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAkC,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAKrE,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,kEAAkE;IAClE,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,UAAU,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC;CACtC,CAAC;AAMJ,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB,CAAC;AAyHF,QAAA,MAAM,UAAU;;;kBAlIa,SAAS;;;;6EAqIpC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellInfoPopover.js","names":[],"sources":["../../src/components/WellInfoPopover.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Info icon that opens a popover on hover, focus or click. The popover body is\n * `info` (resolved for the configured locale) or the default slot.\n *\n * The trigger is a swappable part (`components.trigger`, contract\n * `WellInfoTriggerProps`); it gets the resolved `label` and the size, and\n * must let the hover/focus/click listeners fall through to its root.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport Popover from 'primevue/popover';\nimport { computed, onBeforeUnmount, ref, type Component } from 'vue';\nimport { useWellText } from '../composables/useWellText';\nimport { resolvePart, useWelldotConfig } from '../config';\nimport WellInfoTrigger from './parts/WellInfoTrigger.vue';\n\nconst props = withDefaults(\n defineProps<{\n info?: LanguageTextInput;\n /** Accessible label of the trigger. Not rendered when omitted. */\n label?: LanguageTextInput;\n size?: 'sm' | 'md';\n components?: { trigger?: Component };\n }>(),\n { info: undefined, label: undefined, size: 'sm', components: undefined },\n);\n\ndefineSlots<{\n default?(): unknown;\n}>();\n\nconst config = useWelldotConfig();\nconst text = useWellText();\nconst popover = ref<InstanceType<typeof Popover> | null>(null);\n\nconst trigger = computed(() =>\n resolvePart('trigger', props.components?.trigger, WellInfoTrigger, config),\n);\n\n// Small delay so the pointer can travel from the icon into the popover\nconst HIDE_DELAY = 150;\nlet hideTimer: ReturnType<typeof setTimeout> | undefined;\n\nfunction cancelHide() {\n clearTimeout(hideTimer);\n}\n\nfunction show(event: Event) {\n cancelHide();\n popover.value?.show(event, (event.currentTarget as HTMLElement) ?? undefined);\n}\n\nfunction scheduleHide() {\n cancelHide();\n hideTimer = setTimeout(() => popover.value?.hide(), HIDE_DELAY);\n}\n\nonBeforeUnmount(cancelHide);\n</script>\n\n<template>\n <component\n :is=\"trigger\"\n :label=\"text(props.label)\"\n :size=\"props.size\"\n @mouseenter=\"show\"\n @mouseleave=\"scheduleHide\"\n @focus=\"show\"\n @blur=\"scheduleHide\"\n @click=\"show\"\n />\n\n <Popover\n ref=\"popover\"\n :pt=\"{ root: { onMouseenter: cancelHide, onMouseleave: scheduleHide } }\"\n >\n <div class=\"max-w-sm text-sm text-content-300\">\n <slot>\n <p class=\"m-0\">\n {{ text(props.info) }}\n </p>\n </slot>\n </div>\n </Popover>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { resolvePart as e, useWelldotConfig as t } from "../config.js";
|
|
2
|
+
import { useWellText as n } from "../composables/useWellText.js";
|
|
3
|
+
import r from "./parts/WellInfoTrigger.js";
|
|
4
|
+
import { Fragment as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onBeforeUnmount as d, openBlock as f, ref as p, renderSlot as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
5
|
+
import y from "primevue/popover";
|
|
6
|
+
//#region src/components/WellInfoPopover.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var b = { class: "max-w-sm text-sm text-content-300" }, x = { class: "m-0" }, S = 150, C = /* @__PURE__ */ u({
|
|
8
|
+
__name: "WellInfoPopover",
|
|
9
|
+
props: {
|
|
10
|
+
info: { default: void 0 },
|
|
11
|
+
label: { default: void 0 },
|
|
12
|
+
size: { default: "sm" },
|
|
13
|
+
components: { default: void 0 }
|
|
14
|
+
},
|
|
15
|
+
setup(u) {
|
|
16
|
+
let C = u, w = t(), T = n(), E = p(null), D = a(() => e("trigger", C.components?.trigger, r, w)), O;
|
|
17
|
+
function k() {
|
|
18
|
+
clearTimeout(O);
|
|
19
|
+
}
|
|
20
|
+
function A(e) {
|
|
21
|
+
k(), E.value?.show(e, e.currentTarget ?? void 0);
|
|
22
|
+
}
|
|
23
|
+
function j() {
|
|
24
|
+
k(), O = setTimeout(() => E.value?.hide(), S);
|
|
25
|
+
}
|
|
26
|
+
return d(k), (e, t) => (f(), s(i, null, [(f(), o(h(D.value), {
|
|
27
|
+
label: _(T)(C.label),
|
|
28
|
+
size: C.size,
|
|
29
|
+
onMouseenter: A,
|
|
30
|
+
onMouseleave: j,
|
|
31
|
+
onFocus: A,
|
|
32
|
+
onBlur: j,
|
|
33
|
+
onClick: A
|
|
34
|
+
}, null, 40, ["label", "size"])), l(_(y), {
|
|
35
|
+
ref_key: "popover",
|
|
36
|
+
ref: E,
|
|
37
|
+
pt: { root: {
|
|
38
|
+
onMouseenter: k,
|
|
39
|
+
onMouseleave: j
|
|
40
|
+
} }
|
|
41
|
+
}, {
|
|
42
|
+
default: v(() => [c("div", b, [m(e.$slots, "default", {}, () => [c("p", x, g(_(T)(C.info)), 1)])])]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 8, ["pt"])], 64));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { C as default };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=WellInfoPopover.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellInfoPopover.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/components/WellInfoPopover.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Info icon that opens a popover on hover, focus or click. The popover body is\n * `info` (resolved for the configured locale) or the default slot.\n *\n * The trigger is a swappable part (`components.trigger`, contract\n * `WellInfoTriggerProps`); it gets the resolved `label` and the size, and\n * must let the hover/focus/click listeners fall through to its root.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport Popover from 'primevue/popover';\nimport { computed, onBeforeUnmount, ref, type Component } from 'vue';\nimport { useWellText } from '../composables/useWellText';\nimport { resolvePart, useWelldotConfig } from '../config';\nimport WellInfoTrigger from './parts/WellInfoTrigger.vue';\n\nconst props = withDefaults(\n defineProps<{\n info?: LanguageTextInput;\n /** Accessible label of the trigger. Not rendered when omitted. */\n label?: LanguageTextInput;\n size?: 'sm' | 'md';\n components?: { trigger?: Component };\n }>(),\n { info: undefined, label: undefined, size: 'sm', components: undefined },\n);\n\ndefineSlots<{\n default?(): unknown;\n}>();\n\nconst config = useWelldotConfig();\nconst text = useWellText();\nconst popover = ref<InstanceType<typeof Popover> | null>(null);\n\nconst trigger = computed(() =>\n resolvePart('trigger', props.components?.trigger, WellInfoTrigger, config),\n);\n\n// Small delay so the pointer can travel from the icon into the popover\nconst HIDE_DELAY = 150;\nlet hideTimer: ReturnType<typeof setTimeout> | undefined;\n\nfunction cancelHide() {\n clearTimeout(hideTimer);\n}\n\nfunction show(event: Event) {\n cancelHide();\n popover.value?.show(event, (event.currentTarget as HTMLElement) ?? undefined);\n}\n\nfunction scheduleHide() {\n cancelHide();\n hideTimer = setTimeout(() => popover.value?.hide(), HIDE_DELAY);\n}\n\nonBeforeUnmount(cancelHide);\n</script>\n\n<template>\n <component\n :is=\"trigger\"\n :label=\"text(props.label)\"\n :size=\"props.size\"\n @mouseenter=\"show\"\n @mouseleave=\"scheduleHide\"\n @focus=\"show\"\n @blur=\"scheduleHide\"\n @click=\"show\"\n />\n\n <Popover\n ref=\"popover\"\n :pt=\"{ root: { onMouseenter: cancelHide, onMouseleave: scheduleHide } }\"\n >\n <div class=\"max-w-sm text-sm text-content-300\">\n <slot>\n <p class=\"m-0\">\n {{ text(props.info) }}\n </p>\n </slot>\n </div>\n </Popover>\n</template>\n"],"mappings":";;;;;;8EAwCM,IAAa;;;;;;;;;EAxBnB,IAAM,IAAQ,GAeR,IAAS,GAAkB,EAC3B,IAAO,GAAa,EACpB,IAAU,EAAyC,KAAK,EAExD,IAAU,QACd,EAAY,WAAW,EAAM,YAAY,SAAS,GAAiB,EAAO,CAC3E,EAIG;EAEJ,SAAS,IAAa;AACpB,gBAAa,EAAU;;EAGzB,SAAS,EAAK,GAAc;AAE1B,GADA,GAAY,EACZ,EAAQ,OAAO,KAAK,GAAQ,EAAM,iBAAiC,KAAA,EAAU;;EAG/E,SAAS,IAAe;AAEtB,GADA,GAAY,EACZ,IAAY,iBAAiB,EAAQ,OAAO,MAAM,EAAE,EAAW;;SAGjE,EAAgB,EAAW,oCAIzB,EASE,EARK,EAAA,MAAO,EAAA;GACX,OAAO,EAAA,EAAI,CAAC,EAAM,MAAK;GACvB,MAAM,EAAM;GACZ,cAAY;GACZ,cAAY;GACZ,SAAO;GACP,QAAM;GACN,SAAO;oCAGV,EAWU,EAAA,EAAA,EAAA;YAVJ;GAAJ,KAAI;GACH,IAAE,EAAA,MAAA;IAAA,cAA0B;IAAU,cAAgB;IAAY,EAAA;;oBAQ7D,CANN,EAMM,OANN,GAMM,CALJ,EAIO,EAAA,QAAA,WAAA,EAAA,QAAA,CAHL,EAEI,KAFJ,GAEI,EADC,EAAA,EAAI,CAAC,EAAM,KAAI,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=WellInputNumber.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellInputNumber.d.ts","sourceRoot":"","sources":["../../src/components/WellInputNumber.vue"],"names":[],"mappings":"AAoDA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellInputNumber.js","names":[],"sources":["../../src/components/WellInputNumber.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * PrimeVue `InputNumber` with the locale taken from the welldot\n * configuration (`en` → `en-US`, `pt` → `pt-BR`). All attrs pass through.\n */\nimport InputNumber from 'primevue/inputnumber';\nimport { useWellNumberFormat } from '../composables/useWellNumberFormat';\n\ndefineOptions({ inheritAttrs: false });\n\nconst { resolvedLocale } = useWellNumberFormat();\n</script>\n\n<template>\n <InputNumber v-bind=\"$attrs\" :locale=\"resolvedLocale\" />\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useWellNumberFormat as e } from "../composables/useWellNumberFormat.js";
|
|
2
|
+
import { createBlock as t, defineComponent as n, mergeProps as r, openBlock as i, unref as a } from "vue";
|
|
3
|
+
import o from "primevue/inputnumber";
|
|
4
|
+
//#region src/components/WellInputNumber.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var s = /* @__PURE__ */ n({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "WellInputNumber",
|
|
8
|
+
setup(n) {
|
|
9
|
+
let { resolvedLocale: s } = e();
|
|
10
|
+
return (e, n) => (i(), t(a(o), r(e.$attrs, { locale: a(s) }), null, 16, ["locale"]));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { s as default };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=WellInputNumber.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellInputNumber.vue_vue_type_script_setup_true_lang.js","names":["$attrs"],"sources":["../../src/components/WellInputNumber.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * PrimeVue `InputNumber` with the locale taken from the welldot\n * configuration (`en` → `en-US`, `pt` → `pt-BR`). All attrs pass through.\n */\nimport InputNumber from 'primevue/inputnumber';\nimport { useWellNumberFormat } from '../composables/useWellNumberFormat';\n\ndefineOptions({ inheritAttrs: false });\n\nconst { resolvedLocale } = useWellNumberFormat();\n</script>\n\n<template>\n <InputNumber v-bind=\"$attrs\" :locale=\"resolvedLocale\" />\n</template>\n"],"mappings":";;;;;;;;EAUA,IAAM,EAAE,sBAAmB,GAAqB;yBAI9C,EAAwD,EAAA,EAAA,EAAxD,EAAqBA,EAAmC,QAA7B,EAAG,QAAQ,EAAA,EAAc,EAAA,CAAA,EAAA,MAAA,IAAA,CAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LanguageTextInput } from '@welldot/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
label?: LanguageTextInput;
|
|
4
|
+
orientation?: 'vertical' | 'horizontal';
|
|
5
|
+
info?: LanguageTextInput;
|
|
6
|
+
/** Accessible label of the info trigger. */
|
|
7
|
+
infoLabel?: LanguageTextInput;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
default(): unknown;
|
|
11
|
+
info?(): unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=WellLabeledField.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellLabeledField.d.ts","sourceRoot":"","sources":["../../src/components/WellLabeledField.vue"],"names":[],"mappings":"AAoDA;;;;GAIG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKvD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,OAAO,IAAI,OAAO,CAAC;IACnB,IAAI,CAAC,IAAI,OAAO,CAAC;CAClB,CAAC;AA6EF,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellLabeledField.js","names":[],"sources":["../../src/components/WellLabeledField.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Small uppercase label above (or beside) a form control, with an optional\n * info popover. Text props are `LanguageTextInput`; an omitted `label`\n * renders the control alone.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport { computed } from 'vue';\nimport { useWellText } from '../composables/useWellText';\nimport WellInfoPopover from './WellInfoPopover.vue';\n\nconst props = defineProps<{\n label?: LanguageTextInput;\n orientation?: 'vertical' | 'horizontal';\n info?: LanguageTextInput;\n /** Accessible label of the info trigger. */\n infoLabel?: LanguageTextInput;\n}>();\n\nconst slots = defineSlots<{\n default(): unknown;\n info?(): unknown;\n}>();\n\nconst text = useWellText();\nconst labelText = computed(() => text(props.label));\nconst hasInfo = computed(() => !!text(props.info) || !!slots.info);\n</script>\n\n<template>\n <div\n class=\"flex flex-col gap-1\"\n :class=\"orientation === 'horizontal' ? 'sm:flex-row sm:items-center' : ''\"\n >\n <div v-if=\"labelText\" class=\"flex items-center gap-1\">\n <label\n class=\"text-[10px] font-semibold tracking-widest uppercase text-content-400\"\n >\n {{ labelText }}\n </label>\n <WellInfoPopover v-if=\"hasInfo\" :info=\"info\" :label=\"infoLabel\">\n <template v-if=\"slots.info\" #default>\n <slot name=\"info\" />\n </template>\n </WellInfoPopover>\n </div>\n <slot />\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useWellText as e } from "../composables/useWellText.js";
|
|
2
|
+
import t from "./WellInfoPopover.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, defineComponent as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, useSlots as p, withCtx as m } from "vue";
|
|
4
|
+
//#region src/components/WellLabeledField.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var h = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex items-center gap-1"
|
|
8
|
+
}, g = { class: "text-[10px] font-semibold tracking-widest uppercase text-content-400" }, _ = /* @__PURE__ */ c({
|
|
9
|
+
__name: "WellLabeledField",
|
|
10
|
+
props: {
|
|
11
|
+
label: {},
|
|
12
|
+
orientation: {},
|
|
13
|
+
info: {},
|
|
14
|
+
infoLabel: {}
|
|
15
|
+
},
|
|
16
|
+
setup(c) {
|
|
17
|
+
let _ = c, v = p(), y = e(), b = n(() => y(_.label)), x = n(() => !!y(_.info) || !!v.info);
|
|
18
|
+
return (e, n) => (u(), a("div", { class: l(["flex flex-col gap-1", c.orientation === "horizontal" ? "sm:flex-row sm:items-center" : ""]) }, [b.value ? (u(), a("div", h, [o("label", g, f(b.value), 1), x.value ? (u(), r(t, {
|
|
19
|
+
key: 0,
|
|
20
|
+
info: c.info,
|
|
21
|
+
label: c.infoLabel
|
|
22
|
+
}, s({ _: 2 }, [v.info ? {
|
|
23
|
+
name: "default",
|
|
24
|
+
fn: m(() => [d(e.$slots, "info")]),
|
|
25
|
+
key: "0"
|
|
26
|
+
} : void 0]), 1032, ["info", "label"])) : i("", !0)])) : i("", !0), d(e.$slots, "default")], 2));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _ as default };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=WellLabeledField.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellLabeledField.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/components/WellLabeledField.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Small uppercase label above (or beside) a form control, with an optional\n * info popover. Text props are `LanguageTextInput`; an omitted `label`\n * renders the control alone.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport { computed } from 'vue';\nimport { useWellText } from '../composables/useWellText';\nimport WellInfoPopover from './WellInfoPopover.vue';\n\nconst props = defineProps<{\n label?: LanguageTextInput;\n orientation?: 'vertical' | 'horizontal';\n info?: LanguageTextInput;\n /** Accessible label of the info trigger. */\n infoLabel?: LanguageTextInput;\n}>();\n\nconst slots = defineSlots<{\n default(): unknown;\n info?(): unknown;\n}>();\n\nconst text = useWellText();\nconst labelText = computed(() => text(props.label));\nconst hasInfo = computed(() => !!text(props.info) || !!slots.info);\n</script>\n\n<template>\n <div\n class=\"flex flex-col gap-1\"\n :class=\"orientation === 'horizontal' ? 'sm:flex-row sm:items-center' : ''\"\n >\n <div v-if=\"labelText\" class=\"flex items-center gap-1\">\n <label\n class=\"text-[10px] font-semibold tracking-widest uppercase text-content-400\"\n >\n {{ labelText }}\n </label>\n <WellInfoPopover v-if=\"hasInfo\" :info=\"info\" :label=\"infoLabel\">\n <template v-if=\"slots.info\" #default>\n <slot name=\"info\" />\n </template>\n </WellInfoPopover>\n </div>\n <slot />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAWA,IAAM,IAAQ,GAQR,IAAQ,GAGV,EAEE,IAAO,GAAa,EACpB,IAAY,QAAe,EAAK,EAAM,MAAM,CAAC,EAC7C,IAAU,QAAe,CAAC,CAAC,EAAK,EAAM,KAAK,IAAI,CAAC,CAAC,EAAM,KAAK;yBAIhE,EAiBM,OAAA,EAhBJ,OAAK,EAAA,CAAC,uBACE,EAAA,gBAAW,eAAA,gCAAA,GAAA,CAAA,EAAA,EAAA,CAER,EAAA,SAAA,GAAA,EAAX,EAWM,OAXN,GAWM,CAVJ,EAIQ,SAJR,GAIQ,EADH,EAAA,MAAS,EAAA,EAAA,EAES,EAAA,SAAA,GAAA,EAAvB,EAIkB,GAAA;;GAJe,MAAM,EAAA;GAAO,OAAO,EAAA;kBACnC,EAAM,OAAA;SAAO;eACP,CAApB,EAAoB,EAAA,QAAA,OAAA,CAAA,CAAA;;sEAI1B,EAAQ,EAAA,QAAA,UAAA,CAAA,EAAA,EAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LanguageTextInput } from '@welldot/core';
|
|
2
|
+
import { WellTagOption } from '../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
options: readonly WellTagOption[];
|
|
5
|
+
placeholder?: LanguageTextInput;
|
|
6
|
+
/** Accessible label for each chip's remove button. */
|
|
7
|
+
removeLabel?: LanguageTextInput;
|
|
8
|
+
filter?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
modelValue?: string[];
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string[]) => any;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
//# sourceMappingURL=WellTagSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellTagSelect.d.ts","sourceRoot":"","sources":["../../src/components/WellTagSelect.vue"],"names":[],"mappings":"AAkFA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,sDAAsD;IACtD,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAmCF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiGxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellTagSelect.js","names":[],"sources":["../../src/components/WellTagSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Multi-value picker: selected values render as removable chips above a\n * single Select; picking an option appends it and clears the Select. Values\n * absent from `options` (e.g. unresolved ids) still show, as their raw value.\n *\n * Option labels are `LanguageTextInput`, so a core `VocabEntry[]` can be\n * passed as `options` directly.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport Select from 'primevue/select';\nimport { computed } from 'vue';\nimport { useWellText } from '../composables/useWellText';\nimport type { WellTagOption } from '../types';\nimport WellChip from './WellChip.vue';\n\nconst props = defineProps<{\n options: readonly WellTagOption[];\n placeholder?: LanguageTextInput;\n /** Accessible label for each chip's remove button. */\n removeLabel?: LanguageTextInput;\n filter?: boolean;\n}>();\n\nconst model = defineModel<string[]>({ default: () => [] });\n\nconst text = useWellText();\n\nconst resolvedOptions = computed(() =>\n props.options.map(o => ({ value: o.value, label: text(o.label) ?? o.value })),\n);\n\nconst selected = computed(() =>\n model.value.map(value => ({\n value,\n label: resolvedOptions.value.find(o => o.value === value)?.label ?? value,\n })),\n);\n\nconst available = computed(() =>\n resolvedOptions.value.filter(o => !model.value.includes(o.value)),\n);\n\nfunction add(value: string | null) {\n if (value && !model.value.includes(value)) {\n model.value = [...model.value, value];\n }\n}\n\nfunction remove(value: string) {\n model.value = model.value.filter(v => v !== value);\n}\n</script>\n\n<template>\n <div class=\"flex flex-col gap-2\">\n <div v-if=\"selected.length\" class=\"flex flex-wrap gap-2\">\n <WellChip\n v-for=\"item in selected\"\n :key=\"item.value\"\n :label=\"item.label\"\n removable\n :remove-label=\"props.removeLabel\"\n @remove=\"remove(item.value)\"\n />\n </div>\n <Select\n :model-value=\"null\"\n :options=\"available\"\n option-label=\"label\"\n option-value=\"value\"\n :placeholder=\"text(props.placeholder)\"\n :filter=\"props.filter\"\n :disabled=\"!available.length\"\n class=\"w-full\"\n @update:model-value=\"add\"\n />\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useWellText as e } from "../composables/useWellText.js";
|
|
2
|
+
import t from "./WellChip.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, defineComponent as c, mergeModels as l, openBlock as u, renderList as d, unref as f, useModel as p } from "vue";
|
|
4
|
+
import m from "primevue/select";
|
|
5
|
+
//#region src/components/WellTagSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var h = { class: "flex flex-col gap-2" }, g = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "flex flex-wrap gap-2"
|
|
9
|
+
}, _ = /* @__PURE__ */ c({
|
|
10
|
+
__name: "WellTagSelect",
|
|
11
|
+
props: /* @__PURE__ */ l({
|
|
12
|
+
options: {},
|
|
13
|
+
placeholder: {},
|
|
14
|
+
removeLabel: {},
|
|
15
|
+
filter: { type: Boolean }
|
|
16
|
+
}, {
|
|
17
|
+
modelValue: { default: () => [] },
|
|
18
|
+
modelModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(c) {
|
|
22
|
+
let l = c, _ = p(c, "modelValue"), v = e(), y = r(() => l.options.map((e) => ({
|
|
23
|
+
value: e.value,
|
|
24
|
+
label: v(e.label) ?? e.value
|
|
25
|
+
}))), b = r(() => _.value.map((e) => ({
|
|
26
|
+
value: e,
|
|
27
|
+
label: y.value.find((t) => t.value === e)?.label ?? e
|
|
28
|
+
}))), x = r(() => y.value.filter((e) => !_.value.includes(e.value)));
|
|
29
|
+
function S(e) {
|
|
30
|
+
e && !_.value.includes(e) && (_.value = [..._.value, e]);
|
|
31
|
+
}
|
|
32
|
+
function C(e) {
|
|
33
|
+
_.value = _.value.filter((t) => t !== e);
|
|
34
|
+
}
|
|
35
|
+
return (e, r) => (u(), o("div", h, [b.value.length ? (u(), o("div", g, [(u(!0), o(n, null, d(b.value, (e) => (u(), i(t, {
|
|
36
|
+
key: e.value,
|
|
37
|
+
label: e.label,
|
|
38
|
+
removable: "",
|
|
39
|
+
"remove-label": l.removeLabel,
|
|
40
|
+
onRemove: (t) => C(e.value)
|
|
41
|
+
}, null, 8, [
|
|
42
|
+
"label",
|
|
43
|
+
"remove-label",
|
|
44
|
+
"onRemove"
|
|
45
|
+
]))), 128))])) : a("", !0), s(f(m), {
|
|
46
|
+
"model-value": null,
|
|
47
|
+
options: x.value,
|
|
48
|
+
"option-label": "label",
|
|
49
|
+
"option-value": "value",
|
|
50
|
+
placeholder: f(v)(l.placeholder),
|
|
51
|
+
filter: l.filter,
|
|
52
|
+
disabled: !x.value.length,
|
|
53
|
+
class: "w-full",
|
|
54
|
+
"onUpdate:modelValue": S
|
|
55
|
+
}, null, 8, [
|
|
56
|
+
"options",
|
|
57
|
+
"placeholder",
|
|
58
|
+
"filter",
|
|
59
|
+
"disabled"
|
|
60
|
+
])]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
//#endregion
|
|
64
|
+
export { _ as default };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=WellTagSelect.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WellTagSelect.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/components/WellTagSelect.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Multi-value picker: selected values render as removable chips above a\n * single Select; picking an option appends it and clears the Select. Values\n * absent from `options` (e.g. unresolved ids) still show, as their raw value.\n *\n * Option labels are `LanguageTextInput`, so a core `VocabEntry[]` can be\n * passed as `options` directly.\n */\nimport type { LanguageTextInput } from '@welldot/core';\nimport Select from 'primevue/select';\nimport { computed } from 'vue';\nimport { useWellText } from '../composables/useWellText';\nimport type { WellTagOption } from '../types';\nimport WellChip from './WellChip.vue';\n\nconst props = defineProps<{\n options: readonly WellTagOption[];\n placeholder?: LanguageTextInput;\n /** Accessible label for each chip's remove button. */\n removeLabel?: LanguageTextInput;\n filter?: boolean;\n}>();\n\nconst model = defineModel<string[]>({ default: () => [] });\n\nconst text = useWellText();\n\nconst resolvedOptions = computed(() =>\n props.options.map(o => ({ value: o.value, label: text(o.label) ?? o.value })),\n);\n\nconst selected = computed(() =>\n model.value.map(value => ({\n value,\n label: resolvedOptions.value.find(o => o.value === value)?.label ?? value,\n })),\n);\n\nconst available = computed(() =>\n resolvedOptions.value.filter(o => !model.value.includes(o.value)),\n);\n\nfunction add(value: string | null) {\n if (value && !model.value.includes(value)) {\n model.value = [...model.value, value];\n }\n}\n\nfunction remove(value: string) {\n model.value = model.value.filter(v => v !== value);\n}\n</script>\n\n<template>\n <div class=\"flex flex-col gap-2\">\n <div v-if=\"selected.length\" class=\"flex flex-wrap gap-2\">\n <WellChip\n v-for=\"item in selected\"\n :key=\"item.value\"\n :label=\"item.label\"\n removable\n :remove-label=\"props.removeLabel\"\n @remove=\"remove(item.value)\"\n />\n </div>\n <Select\n :model-value=\"null\"\n :options=\"available\"\n option-label=\"label\"\n option-value=\"value\"\n :placeholder=\"text(props.placeholder)\"\n :filter=\"props.filter\"\n :disabled=\"!available.length\"\n class=\"w-full\"\n @update:model-value=\"add\"\n />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAgBA,IAAM,IAAQ,GAQR,IAAQ,EAAqB,GAAA,aAAuB,EAEpD,IAAO,GAAa,EAEpB,IAAkB,QACtB,EAAM,QAAQ,KAAI,OAAM;GAAE,OAAO,EAAE;GAAO,OAAO,EAAK,EAAE,MAAM,IAAI,EAAE;GAAO,EAAE,CAC9E,EAEK,IAAW,QACf,EAAM,MAAM,KAAI,OAAU;GACxB;GACA,OAAO,EAAgB,MAAM,MAAK,MAAK,EAAE,UAAU,EAAM,EAAE,SAAS;GACrE,EAAE,CACJ,EAEK,IAAY,QAChB,EAAgB,MAAM,QAAO,MAAK,CAAC,EAAM,MAAM,SAAS,EAAE,MAAM,CAAC,CAClE;EAED,SAAS,EAAI,GAAsB;AACjC,GAAI,KAAS,CAAC,EAAM,MAAM,SAAS,EAAM,KACvC,EAAM,QAAQ,CAAC,GAAG,EAAM,OAAO,EAAM;;EAIzC,SAAS,EAAO,GAAe;AAC7B,KAAM,QAAQ,EAAM,MAAM,QAAO,MAAK,MAAM,EAAM;;yBAKlD,EAsBM,OAtBN,GAsBM,CArBO,EAAA,MAAS,UAAA,GAAA,EAApB,EASM,OATN,GASM,EAAA,EAAA,GAAA,EARJ,EAOE,GAAA,MAAA,EANe,EAAA,QAAR,YADT,EAOE,GAAA;GALC,KAAK,EAAK;GACV,OAAO,EAAK;GACb,WAAA;GACC,gBAAc,EAAM;GACpB,WAAM,MAAE,EAAO,EAAK,MAAK;;;;;8BAG9B,EAUE,EAAA,EAAA,EAAA;GATC,eAAa;GACb,SAAS,EAAA;GACV,gBAAa;GACb,gBAAa;GACZ,aAAa,EAAA,EAAI,CAAC,EAAM,YAAW;GACnC,QAAQ,EAAM;GACd,UAAQ,CAAG,EAAA,MAAU;GACtB,OAAM;GACL,uBAAoB"}
|