@piveau/dpi 0.1.0-beta.5
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/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/dpi.css +1 -0
- package/dist/composables/useRuntimeEnv.js +11 -0
- package/dist/composables/useTed.js +9 -0
- package/dist/data-provider-interface/DPIMenu.vue.js +457 -0
- package/dist/data-provider-interface/DataProviderInterface.vue.js +43 -0
- package/dist/data-provider-interface/DataProviderInterface.vue2.js +144 -0
- package/dist/data-provider-interface/HappyFlowComponents/BlogDPIHome.vue.js +13 -0
- package/dist/data-provider-interface/HappyFlowComponents/CommunityDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1052 -0
- package/dist/data-provider-interface/HappyFlowComponents/ConsultingDPI.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +26 -0
- package/dist/data-provider-interface/HappyFlowComponents/FAQDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +109 -0
- package/dist/data-provider-interface/HappyFlowComponents/ServiceDPIHome.vue.js +11 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CheckCircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Circle.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/CircleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/DatenbereitstellerV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Error.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Published.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Ellipse2Warning.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/FurV3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationCelebrate.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/IllustrationStart.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/InfoFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected1_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected2_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected3_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected4_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/Selected5_2.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/WarningFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/bydata_logo_blue_small.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/iconRight.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/img/x-circleFill.svg.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +135 -0
- package/dist/data-provider-interface/HappyFlowComponents/services/eventBus.js +16 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +256 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CheckboxV3.vue.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +91 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/CrossOutButton.vue.js +63 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DatasetStatus.vue.js +52 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +96 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +231 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Illustration.vue.js +33 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +477 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputV3.vue.js +182 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/LogoV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +123 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +566 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/MoreButton.vue.js +56 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +41 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +80 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js +50 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +113 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +116 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js +40 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +227 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +148 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +46 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +130 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +67 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +157 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +106 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +247 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +79 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +73 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +134 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +68 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +64 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/SwitchV3.vue.js +195 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +207 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +115 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonLarge.vue.js +108 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +125 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +69 -0
- package/dist/data-provider-interface/components/AutocompleteInput.vue.js +279 -0
- package/dist/data-provider-interface/components/BasicInfosPage.vue.js +9 -0
- package/dist/data-provider-interface/components/ConditionalInput.vue.js +196 -0
- package/dist/data-provider-interface/components/ContactPage.vue.js +246 -0
- package/dist/data-provider-interface/components/CoveringPage.vue.js +9 -0
- package/dist/data-provider-interface/components/DataFetchingComponent.vue.js +49 -0
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +60 -0
- package/dist/data-provider-interface/components/DistLicense.vue.js +160 -0
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +1147 -0
- package/dist/data-provider-interface/components/DistributionStepper.vue.js +212 -0
- package/dist/data-provider-interface/components/Dropup.vue.js +62 -0
- package/dist/data-provider-interface/components/FileUpload.vue.js +278 -0
- package/dist/data-provider-interface/components/HVDPage.vue.js +106 -0
- package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +70 -0
- package/dist/data-provider-interface/components/InfoSlot.vue.js +81 -0
- package/dist/data-provider-interface/components/InputPageStep.vue.js +40 -0
- package/dist/data-provider-interface/components/InputPageStep.vue2.js +4 -0
- package/dist/data-provider-interface/components/LanguageSelector.vue.js +65 -0
- package/dist/data-provider-interface/components/Navigation.vue.js +256 -0
- package/dist/data-provider-interface/components/Navigation.vue2.js +1 -0
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +81 -0
- package/dist/data-provider-interface/components/PublisherPage.vue.js +176 -0
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +413 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue.js +55 -0
- package/dist/data-provider-interface/components/SelectControlledGroup.vue2.js +4 -0
- package/dist/data-provider-interface/components/SimpleAccessURLInput.vue.js +32 -0
- package/dist/data-provider-interface/components/SimpleInput.vue.js +35 -0
- package/dist/data-provider-interface/components/SimpleSelect.vue.js +111 -0
- package/dist/data-provider-interface/components/SpatialInput.vue.js +276 -0
- package/dist/data-provider-interface/components/TempResPage.vue.js +211 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue.js +90 -0
- package/dist/data-provider-interface/components/TheErrorDialog.vue2.js +4 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +52 -0
- package/dist/data-provider-interface/components/UniqueIdentifierInput.vue.js +75 -0
- package/dist/data-provider-interface/components/UpdateDate.vue.js +75 -0
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +44 -0
- package/dist/data-provider-interface/composables/aucotomplete.js +50 -0
- package/dist/data-provider-interface/composables/useDpiContext.js +17 -0
- package/dist/data-provider-interface/composables/useDpiEditMode.js +88 -0
- package/dist/data-provider-interface/composables/useDpiFormValues.js +8 -0
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +384 -0
- package/dist/data-provider-interface/composables/useDpiStepper.js +47 -0
- package/dist/data-provider-interface/composables/useDpiUtils.js +39 -0
- package/dist/data-provider-interface/composables/useErrorDialog.js +31 -0
- package/dist/data-provider-interface/composables/useFormSchema.js +56 -0
- package/dist/data-provider-interface/composables/useRequestUriName.js +58 -0
- package/dist/data-provider-interface/config/dcatap/format-types.js +256 -0
- package/dist/data-provider-interface/config/dcatap/input-definition.js +1842 -0
- package/dist/data-provider-interface/config/dcatap/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatap/prefixes.js +25 -0
- package/dist/data-provider-interface/config/dcatap/vocab-prefixes.js +24 -0
- package/dist/data-provider-interface/config/dcatapde/format-types.js +274 -0
- package/dist/data-provider-interface/config/dcatapde/input-definition.js +2131 -0
- package/dist/data-provider-interface/config/dcatapde/page-content-config.js +23 -0
- package/dist/data-provider-interface/config/dcatapde/prefixes.js +27 -0
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +33 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +161 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +2196 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +82 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/format-types.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/input-definition.js +18 -0
- package/dist/data-provider-interface/config/dcatapdeODB/page-content-config.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/prefixes.js +5 -0
- package/dist/data-provider-interface/config/dcatapdeODB/vocab-prefixes.js +5 -0
- package/dist/data-provider-interface/config/dpi-spec-config.js +54 -0
- package/dist/data-provider-interface/config/selector-languages.json.js +57 -0
- package/dist/data-provider-interface/plugins/userConfigShimPlugin.js +10 -0
- package/dist/data-provider-interface/store/dpiStore.js +33 -0
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +94 -0
- package/dist/data-provider-interface/store/modules/navigationStore.js +24 -0
- package/dist/data-provider-interface/utils/general-helper.js +218 -0
- package/dist/data-provider-interface/utils/injectionKeys.js +5 -0
- package/dist/data-provider-interface/utils/translation-helper.js +31 -0
- package/dist/data-provider-interface/utils/useSteps.js +34 -0
- package/dist/data-provider-interface/views/DistributionInputPage.vue.js +100 -0
- package/dist/data-provider-interface/views/DistributionOverview.vue.js +201 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +278 -0
- package/dist/data-provider-interface/views/InputPage.vue.js +1182 -0
- package/dist/data-provider-interface/views/LinkedDataViewer.vue.js +105 -0
- package/dist/data-provider-interface/views/OverviewPage/CatalogueOverview.vue.js +86 -0
- package/dist/data-provider-interface/views/OverviewPage/DatasetOverview.vue.js +214 -0
- package/dist/data-provider-interface/views/OverviewPage/DistributionOverview.vue.js +219 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/MultilingualProp.vue.js +19 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/SpecialProp.vue.js +397 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/StringProp.vue.js +56 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URIProp.vue.js +109 -0
- package/dist/data-provider-interface/views/OverviewPage/Properties/URLProp.vue.js +92 -0
- package/dist/data-provider-interface/views/OverviewPage/PropertyEntry.vue.js +103 -0
- package/dist/data-provider-interface/views/OverviewPage.vue.js +189 -0
- package/dist/data-provider-interface/views/PropertyChooser.vue.js +41 -0
- package/dist/data-provider-interface/views/UserCataloguesPage.vue.js +74 -0
- package/dist/data-provider-interface/views/UserProfilePage.vue.js +83 -0
- package/dist/filters/dateFilters.js +39 -0
- package/dist/form/FormKitGroup.vue.js +55 -0
- package/dist/form/Repeatable.vue.js +7 -0
- package/dist/form/Repeatable.vue2.js +72 -0
- package/dist/form/inputDefinitions.js +131 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +124 -0
- package/dist/utils/helpers.js +32 -0
- package/dist/widgets/AppLink.vue.js +118 -0
- package/package.json +96 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { defineComponent as c, resolveComponent as o, createElementBlock as l, openBlock as s, mergeProps as C, createCommentVNode as a, withKeys as n, normalizeStyle as d, normalizeClass as p, withModifiers as v, createElementVNode as k, createBlock as t, toDisplayString as b } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { PhArrowSquareOut as g, PhCopySimple as K, PhPencilSimple as B, PhArrowCounterClockwise as w, PhPlusSquare as D, PhTrash as V, PhPlusCircle as T, PhCaretLeft as $, PhCaretRight as M, PhMagnifyingGlass as U, PhCheck as q, PhX as E } from "@phosphor-icons/vue";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import G from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const L = c({
|
|
8
|
+
name: "ButtonV3",
|
|
9
|
+
components: {
|
|
10
|
+
PhX: E,
|
|
11
|
+
PhCheck: q,
|
|
12
|
+
PhMagnifyingGlass: U,
|
|
13
|
+
PhCaretRight: M,
|
|
14
|
+
PhCaretLeft: $,
|
|
15
|
+
PhPlusCircle: T,
|
|
16
|
+
PhTrash: V,
|
|
17
|
+
PhPlusSquare: D,
|
|
18
|
+
PhArrowCounterClockwise: w,
|
|
19
|
+
PhPencilSimple: B,
|
|
20
|
+
PhCopySimple: K,
|
|
21
|
+
PhArrowSquareOut: g
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
buttonText: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: !1,
|
|
27
|
+
default: null
|
|
28
|
+
},
|
|
29
|
+
size: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "medium",
|
|
32
|
+
validator: (e) => ["small", "medium", "large"].includes(e)
|
|
33
|
+
},
|
|
34
|
+
iconStart: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: null
|
|
37
|
+
},
|
|
38
|
+
iconEnd: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: null
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
variant: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "primary"
|
|
49
|
+
},
|
|
50
|
+
gapColor: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "white"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
iconSize: "24px",
|
|
58
|
+
isFocused: !1,
|
|
59
|
+
isPrimaryActive: !1,
|
|
60
|
+
isSecondaryActive: !1,
|
|
61
|
+
isTertiaryActive: !1
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
computed: {
|
|
65
|
+
focusStyle() {
|
|
66
|
+
return this.isFocused && this.variant === "tertiary" ? {
|
|
67
|
+
boxShadow: "0 0 0 2px var(--Focused, #FF5733)"
|
|
68
|
+
} : this.isFocused ? {
|
|
69
|
+
boxShadow: `0 0 0 2px ${this.gapColor}, 0 0 0 4px var(--Focused, #0196d8)`
|
|
70
|
+
} : {};
|
|
71
|
+
},
|
|
72
|
+
externalClass() {
|
|
73
|
+
return [this.$attrs.class || ""];
|
|
74
|
+
},
|
|
75
|
+
dpiV3_buttonClass() {
|
|
76
|
+
return [
|
|
77
|
+
`dpiV3_button-base-${this.variant}`,
|
|
78
|
+
`dpiV3_button-${this.size}`,
|
|
79
|
+
{ "dpiV3_button-disabled": this.disabled }
|
|
80
|
+
];
|
|
81
|
+
},
|
|
82
|
+
iconSizeClass() {
|
|
83
|
+
return [
|
|
84
|
+
`dpiV3_icon-${this.size}`,
|
|
85
|
+
`dpiV3_icon-${this.size}-${this.variant}`
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
methods: {
|
|
90
|
+
removeFocus(e) {
|
|
91
|
+
e.preventDefault(), this.addActiveState();
|
|
92
|
+
},
|
|
93
|
+
handleKeyPress() {
|
|
94
|
+
this.disabled || (this.variant === "primary" ? this.isPrimaryActive = !0 : this.variant === "secondary" ? this.isSecondaryActive = !0 : this.variant === "tertiary" && (this.isTertiaryActive = !0));
|
|
95
|
+
},
|
|
96
|
+
removeActiveState() {
|
|
97
|
+
this.isPrimaryActive = !1, this.isSecondaryActive = !1, this.isTertiaryActive = !1;
|
|
98
|
+
},
|
|
99
|
+
removeActiveStateKeyUp() {
|
|
100
|
+
this.isPrimaryActive = !1, this.isSecondaryActive = !1, this.isTertiaryActive = !1, this.$emit("click");
|
|
101
|
+
},
|
|
102
|
+
addActiveState() {
|
|
103
|
+
this.disabled || (this.variant === "primary" ? this.isPrimaryActive = !0 : this.variant === "secondary" ? this.isSecondaryActive = !0 : this.variant === "tertiary" && (this.isTertiaryActive = !0));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}), O = ["disabled"], R = ["disabled"], N = {
|
|
107
|
+
key: 0,
|
|
108
|
+
class: "dpiV3_icon"
|
|
109
|
+
};
|
|
110
|
+
function I(e, i, X, j, H, J) {
|
|
111
|
+
const m = o("PhArrowCounterClockwise"), F = o("PhPlusCircle"), A = o("PhTrash"), y = o("PhMagnifyingGlass"), u = o("PhCheck"), S = o("PhCaretLeft"), h = o("PhPlusSquare"), P = o("PhCaretRight"), f = o("PhArrowSquareOut"), z = o("PhPencilSimple");
|
|
112
|
+
return s(), l("div", C({
|
|
113
|
+
class: ["dpiV3_V3-typography", e.externalClass]
|
|
114
|
+
}, e.$attrs), [
|
|
115
|
+
e.buttonText ? (s(), l("button", {
|
|
116
|
+
key: 0,
|
|
117
|
+
tabindex: "0",
|
|
118
|
+
type: "button",
|
|
119
|
+
class: p([
|
|
120
|
+
e.dpiV3_buttonClass,
|
|
121
|
+
{ activeStatePrimary: e.isPrimaryActive && e.variant === "primary" },
|
|
122
|
+
{ activeStateSecondary: e.isSecondaryActive && e.variant === "secondary" },
|
|
123
|
+
{ activeStateTertiary: e.isTertiaryActive && e.variant === "tertiary" }
|
|
124
|
+
]),
|
|
125
|
+
disabled: e.disabled,
|
|
126
|
+
onMousedown: i[0] || (i[0] = (...r) => e.removeFocus && e.removeFocus(...r)),
|
|
127
|
+
onMouseup: i[1] || (i[1] = (...r) => e.removeActiveState && e.removeActiveState(...r)),
|
|
128
|
+
style: d(e.focusStyle),
|
|
129
|
+
onFocus: i[2] || (i[2] = (r) => e.isFocused = !0),
|
|
130
|
+
onBlur: i[3] || (i[3] = (r) => e.isFocused = !1),
|
|
131
|
+
onKeydown: [
|
|
132
|
+
i[4] || (i[4] = n((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["enter"])),
|
|
133
|
+
i[5] || (i[5] = n(v((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["prevent"]), ["space"]))
|
|
134
|
+
],
|
|
135
|
+
onKeyup: [
|
|
136
|
+
i[6] || (i[6] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["enter"])),
|
|
137
|
+
i[7] || (i[7] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["space"]))
|
|
138
|
+
]
|
|
139
|
+
}, [
|
|
140
|
+
e.iconStart ? (s(), l("span", {
|
|
141
|
+
key: 0,
|
|
142
|
+
class: p(["dpiV3_icon", e.iconSizeClass])
|
|
143
|
+
}, [
|
|
144
|
+
e.iconStart === "reset" ? (s(), t(m, {
|
|
145
|
+
key: 0,
|
|
146
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
147
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
148
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
149
|
+
e.iconStart === "plus" ? (s(), t(F, {
|
|
150
|
+
key: 1,
|
|
151
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
152
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
153
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
154
|
+
e.iconStart === "trash" ? (s(), t(A, {
|
|
155
|
+
key: 2,
|
|
156
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
157
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
158
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
159
|
+
e.iconStart === "MagnifyingGlass" ? (s(), t(y, {
|
|
160
|
+
key: 3,
|
|
161
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
162
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
163
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
164
|
+
e.iconStart === "Check" ? (s(), t(u, {
|
|
165
|
+
key: 4,
|
|
166
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
167
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
168
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
169
|
+
e.iconStart === "CaretLeft" ? (s(), t(S, {
|
|
170
|
+
key: 5,
|
|
171
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
172
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
173
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
174
|
+
e.iconStart === "PlusSquare" ? (s(), t(h, {
|
|
175
|
+
key: 6,
|
|
176
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
177
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
178
|
+
}, null, 8, ["size", "color"])) : a("", !0)
|
|
179
|
+
], 2)) : a("", !0),
|
|
180
|
+
k("span", null, b(e.buttonText), 1),
|
|
181
|
+
e.iconEnd ? (s(), l("span", {
|
|
182
|
+
key: 1,
|
|
183
|
+
class: p(["dpiV3_icon", e.iconSizeClass])
|
|
184
|
+
}, [
|
|
185
|
+
e.iconEnd === "MagnifyingGlass" ? (s(), t(y, {
|
|
186
|
+
key: 0,
|
|
187
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
188
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
189
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
190
|
+
e.iconEnd === "Check" ? (s(), t(u, {
|
|
191
|
+
key: 1,
|
|
192
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
193
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
194
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
195
|
+
e.iconEnd === "CaretRight" ? (s(), t(P, {
|
|
196
|
+
key: 2,
|
|
197
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
198
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
199
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
200
|
+
e.iconEnd === "Out" ? (s(), t(f, {
|
|
201
|
+
key: 3,
|
|
202
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
203
|
+
color: e.variant === "primary" ? "#0172AD" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
204
|
+
}, null, 8, ["size", "color"])) : a("", !0)
|
|
205
|
+
], 2)) : a("", !0)
|
|
206
|
+
], 46, O)) : a("", !0),
|
|
207
|
+
e.buttonText ? a("", !0) : (s(), l("div", {
|
|
208
|
+
key: 1,
|
|
209
|
+
tabindex: "0",
|
|
210
|
+
class: p([
|
|
211
|
+
"dpiV3_button-icon-only",
|
|
212
|
+
e.iconSizeClass,
|
|
213
|
+
{ "dpiV3_button-icon-only-large": e.size === "large" },
|
|
214
|
+
{ activeStatePrimary: e.isPrimaryActive && e.variant === "primary" },
|
|
215
|
+
{ activeStateSecondary: e.isSecondaryActive && e.variant === "secondary" },
|
|
216
|
+
{ activeStateTertiary: e.isTertiaryActive && e.variant === "tertiary" }
|
|
217
|
+
]),
|
|
218
|
+
disabled: e.disabled,
|
|
219
|
+
onMousedown: i[8] || (i[8] = (...r) => e.removeFocus && e.removeFocus(...r)),
|
|
220
|
+
onMouseup: i[9] || (i[9] = (...r) => e.removeActiveState && e.removeActiveState(...r)),
|
|
221
|
+
style: d(e.focusStyle),
|
|
222
|
+
onFocus: i[10] || (i[10] = (r) => e.isFocused = !0),
|
|
223
|
+
onBlur: i[11] || (i[11] = (r) => e.isFocused = !1),
|
|
224
|
+
onKeydown: [
|
|
225
|
+
i[12] || (i[12] = n((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["enter"])),
|
|
226
|
+
i[13] || (i[13] = n(v((...r) => e.handleKeyPress && e.handleKeyPress(...r), ["prevent"]), ["space"]))
|
|
227
|
+
],
|
|
228
|
+
onKeyup: [
|
|
229
|
+
i[14] || (i[14] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["enter"])),
|
|
230
|
+
i[15] || (i[15] = n((...r) => e.removeActiveStateKeyUp && e.removeActiveStateKeyUp(...r), ["space"]))
|
|
231
|
+
]
|
|
232
|
+
}, [
|
|
233
|
+
e.buttonText ? a("", !0) : (s(), l("span", N, [
|
|
234
|
+
e.iconStart === "MagnifyingGlass" ? (s(), t(y, {
|
|
235
|
+
key: 0,
|
|
236
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
237
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
238
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
239
|
+
e.iconStart === "Check" ? (s(), t(u, {
|
|
240
|
+
key: 1,
|
|
241
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
242
|
+
color: e.variant === "primary" ? "#FFFFFF" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
243
|
+
}, null, 8, ["size", "color"])) : a("", !0),
|
|
244
|
+
e.iconStart === "pen" ? (s(), t(z, {
|
|
245
|
+
key: 2,
|
|
246
|
+
size: e.size === "small" ? "16px" : "24px",
|
|
247
|
+
color: e.variant === "secondary" ? "#0172AD" : e.variant === "secondary" ? "#0B1A25" : "#0172AD"
|
|
248
|
+
}, null, 8, ["size", "color"])) : a("", !0)
|
|
249
|
+
]))
|
|
250
|
+
], 46, R))
|
|
251
|
+
], 16);
|
|
252
|
+
}
|
|
253
|
+
const ee = /* @__PURE__ */ G(L, [["render", I], ["__scopeId", "data-v-0deb2715"]]);
|
|
254
|
+
export {
|
|
255
|
+
ee as default
|
|
256
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ref as r, computed as K, createElementBlock as y, openBlock as c, normalizeClass as v, withDirectives as I, createElementVNode as s, createCommentVNode as l, vModelDynamic as q, withKeys as d, withModifiers as f, createBlock as u, unref as p, toDisplayString as b } from "vue";
|
|
2
|
+
import { PhCheckFat as P, PhMinus as S, PhCircle as B } from "@phosphor-icons/vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import D from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const M = ["type", "disabled", "checked"], E = ["tabindex", "onKeydown"], N = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "dpiV3_labelWrap"
|
|
8
|
+
}, j = { class: "dpiV3_subtext" }, z = {
|
|
9
|
+
__name: "CheckboxV3",
|
|
10
|
+
props: {
|
|
11
|
+
text: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !0
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: !0
|
|
18
|
+
},
|
|
19
|
+
data: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: !0
|
|
22
|
+
},
|
|
23
|
+
state: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: !0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(t, { emit: x }) {
|
|
29
|
+
const V = x, _ = r(), i = K(() => e.state === "disabled" || !1), o = r(!1);
|
|
30
|
+
let n = !1;
|
|
31
|
+
const h = () => {
|
|
32
|
+
n || (o.value = !0, C(), n = !0);
|
|
33
|
+
}, k = () => {
|
|
34
|
+
o.value = !1, n = !1;
|
|
35
|
+
}, e = t, a = r(e.state === "checked"), g = () => {
|
|
36
|
+
V("change", a.value);
|
|
37
|
+
}, C = () => {
|
|
38
|
+
a.value = !a.value;
|
|
39
|
+
};
|
|
40
|
+
return (A, m) => (c(), y("label", {
|
|
41
|
+
ref_key: "wrapper",
|
|
42
|
+
ref: _,
|
|
43
|
+
class: v({
|
|
44
|
+
dpiV3_customCheckbox: e.type === "checkbox",
|
|
45
|
+
dpiV3_customRadio: e.type === "radio",
|
|
46
|
+
dpiV3_deactivated: i.value,
|
|
47
|
+
dpiV3_idleCheckbox: t.state === "idle"
|
|
48
|
+
})
|
|
49
|
+
}, [
|
|
50
|
+
I(s("input", {
|
|
51
|
+
type: e.type,
|
|
52
|
+
disabled: i.value === !0,
|
|
53
|
+
checked: t.state === "checked" || t.state === "idle",
|
|
54
|
+
"onUpdate:modelValue": m[0] || (m[0] = (w) => a.value = w),
|
|
55
|
+
onChange: g
|
|
56
|
+
}, null, 40, M), [
|
|
57
|
+
[q, a.value]
|
|
58
|
+
]),
|
|
59
|
+
s("span", {
|
|
60
|
+
class: v(["dpiV3_checkmark", { dpiV3_focusable: !i.value, dpiV3_active: o.value }]),
|
|
61
|
+
tabindex: i.value ? "-1" : "0",
|
|
62
|
+
onKeydown: [
|
|
63
|
+
d(f(h, ["prevent"]), ["space"]),
|
|
64
|
+
d(f(h, ["prevent"]), ["enter"])
|
|
65
|
+
],
|
|
66
|
+
onKeyup: [
|
|
67
|
+
d(k, ["space"]),
|
|
68
|
+
d(k, ["enter"])
|
|
69
|
+
]
|
|
70
|
+
}, [
|
|
71
|
+
a.value && t.state !== "idle" && e.type === "checkbox" ? (c(), u(p(P), {
|
|
72
|
+
key: 0,
|
|
73
|
+
weight: "fill",
|
|
74
|
+
class: "dpiV3_checkImg"
|
|
75
|
+
})) : l("", !0),
|
|
76
|
+
t.state === "idle" ? (c(), u(p(S), {
|
|
77
|
+
key: 1,
|
|
78
|
+
class: "dpiV3_checkImg",
|
|
79
|
+
weight: "bold"
|
|
80
|
+
})) : l("", !0),
|
|
81
|
+
a.value && t.state !== "idle" && e.type === "radio" ? (c(), u(p(B), {
|
|
82
|
+
key: 2,
|
|
83
|
+
weight: "fill",
|
|
84
|
+
class: "dpiV3_checkImgCircle"
|
|
85
|
+
})) : l("", !0)
|
|
86
|
+
], 42, E),
|
|
87
|
+
e.text != null ? (c(), y("div", N, [
|
|
88
|
+
s("span", null, b(e.text.label), 1),
|
|
89
|
+
s("span", j, b(e.text.subtext), 1)
|
|
90
|
+
])) : l("", !0)
|
|
91
|
+
], 2));
|
|
92
|
+
}
|
|
93
|
+
}, W = /* @__PURE__ */ D(z, [["__scopeId", "data-v-c8572a56"]]);
|
|
94
|
+
export {
|
|
95
|
+
W as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ref as c, createElementBlock as C, createCommentVNode as d, openBlock as r, normalizeClass as b, createElementVNode as v, withModifiers as S, unref as t, createBlock as f, toDisplayString as F } from "vue";
|
|
2
|
+
import { PhMagnifyingGlass as m, PhX as V } from "@phosphor-icons/vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import P from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const M = ["disabled"], T = {
|
|
6
|
+
__name: "Chip",
|
|
7
|
+
props: {
|
|
8
|
+
text: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
setup: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
data: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: !0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["click", "selection-change"],
|
|
22
|
+
setup(e, { emit: k }) {
|
|
23
|
+
const u = e, n = c();
|
|
24
|
+
let i = c(u.setup["@selected"]), h = c(), p = c("16px");
|
|
25
|
+
const y = k, x = (l) => {
|
|
26
|
+
l.stopPropagation();
|
|
27
|
+
}, g = (l, a) => {
|
|
28
|
+
if (l != "disabled" && l != "default" && l != "static" && (n.value.children[0].classList.toggle("dpiV3_chipSelected"), i.value = !i.value, y("click", u.data), y("selection-change", {
|
|
29
|
+
selected: i.value,
|
|
30
|
+
data: u.data
|
|
31
|
+
}), i.value))
|
|
32
|
+
for (let s = 0; s < n.value.children[0].children.length; s++)
|
|
33
|
+
n.value.children[0].children[s].tagName === "IMG" && !h.value && (i.value ? n.value.children[0].children[s].src = X : n.value.children[0].children[s].src = XB);
|
|
34
|
+
};
|
|
35
|
+
u.setup["@type"] === "selected" && (i.value = !0), u.setup["@search"] && (h.value = !0);
|
|
36
|
+
const o = c(!1), z = (l) => {
|
|
37
|
+
o.value = !0;
|
|
38
|
+
}, B = () => {
|
|
39
|
+
o.value = !1;
|
|
40
|
+
};
|
|
41
|
+
return (l, a) => typeof e.text < "u" ? (r(), C("div", {
|
|
42
|
+
key: 0,
|
|
43
|
+
ref_key: "chipWrap",
|
|
44
|
+
ref: n,
|
|
45
|
+
class: b(["dpiV3_chipBorder", { dpiV3_focusBorder: o.value, dpiV3_inTableWrap: e.setup["@inTable"], dpiV3_inRaPFindability_outer: e.setup["@rapfindability"] }]),
|
|
46
|
+
onClick: x
|
|
47
|
+
}, [
|
|
48
|
+
v("button", {
|
|
49
|
+
onClick: a[0] || (a[0] = (s) => g(e.setup["@type"])),
|
|
50
|
+
type: "button",
|
|
51
|
+
onMousedown: a[1] || (a[1] = S(() => {
|
|
52
|
+
}, ["prevent"])),
|
|
53
|
+
class: b(["dpiV3_chipBody", {
|
|
54
|
+
dpiV3_chipUnselected: e.setup["@type"] === "select",
|
|
55
|
+
dpiV3_chipSelected: t(i),
|
|
56
|
+
dpiV3_chipDefault: e.setup["@type"] === "default",
|
|
57
|
+
dpiV3_chipDisabled: e.setup["@type"] === "disabled",
|
|
58
|
+
dpiV3_specialFocus: o.value,
|
|
59
|
+
dpiV3_inTable: e.setup["@inTable"],
|
|
60
|
+
dpiV3_chipStatic: e.setup["@type"] === "static",
|
|
61
|
+
dpiV3_inFindability: e.setup["@findability"],
|
|
62
|
+
dpiV3_inRaPFindability: e.setup["@rapfindability"]
|
|
63
|
+
}]),
|
|
64
|
+
onFocus: a[2] || (a[2] = (s) => z()),
|
|
65
|
+
onBlur: B,
|
|
66
|
+
disabled: e.setup["@type"] === "disabled" || e.setup["@type"] === "static"
|
|
67
|
+
}, [
|
|
68
|
+
e.setup["@search"] && e.setup["@icon"] === "prefix" ? (r(), f(t(m), {
|
|
69
|
+
key: 0,
|
|
70
|
+
size: t(p)
|
|
71
|
+
}, null, 8, ["size"])) : d("", !0),
|
|
72
|
+
!e.setup["@search"] && e.setup["@icon"] === "prefix" ? (r(), f(t(V), {
|
|
73
|
+
key: 1,
|
|
74
|
+
size: t(p)
|
|
75
|
+
}, null, 8, ["size"])) : d("", !0),
|
|
76
|
+
v("span", null, F(e.text), 1),
|
|
77
|
+
!e.setup["@search"] && e.setup["@icon"] === "suffix" ? (r(), f(t(V), {
|
|
78
|
+
key: 2,
|
|
79
|
+
size: t(p)
|
|
80
|
+
}, null, 8, ["size"])) : d("", !0),
|
|
81
|
+
e.setup["@search"] && e.setup["@icon"] === "suffix" ? (r(), f(t(m), {
|
|
82
|
+
key: 3,
|
|
83
|
+
size: t(p)
|
|
84
|
+
}, null, 8, ["size"])) : d("", !0)
|
|
85
|
+
], 42, M)
|
|
86
|
+
], 2)) : d("", !0);
|
|
87
|
+
}
|
|
88
|
+
}, q = /* @__PURE__ */ P(T, [["__scopeId", "data-v-f609b036"]]);
|
|
89
|
+
export {
|
|
90
|
+
q as default
|
|
91
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { PhCaretUp as c, PhCaretDown as a } from "@phosphor-icons/vue";
|
|
3
|
+
import { resolveComponent as u, createElementBlock as f, openBlock as s, withKeys as r, normalizeClass as C, withModifiers as k, createBlock as p, createCommentVNode as m } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import w from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const x = {
|
|
7
|
+
name: "CloseOpenButtonV3",
|
|
8
|
+
emits: ["click"],
|
|
9
|
+
components: {
|
|
10
|
+
PhCaretDown: a,
|
|
11
|
+
PhCaretUp: c
|
|
12
|
+
},
|
|
13
|
+
data() {
|
|
14
|
+
return {
|
|
15
|
+
isFocused: !1,
|
|
16
|
+
isActive: !1
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
expanded: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
required: !0
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
handleClick() {
|
|
27
|
+
this.$emit("click");
|
|
28
|
+
},
|
|
29
|
+
removeFocus(i) {
|
|
30
|
+
i.preventDefault();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function B(i, e, l, F, o, n) {
|
|
35
|
+
const d = u("PhCaretDown"), v = u("PhCaretUp");
|
|
36
|
+
return s(), f("button", {
|
|
37
|
+
tabindex: "0",
|
|
38
|
+
onMousedown: e[0] || (e[0] = (...t) => n.removeFocus && n.removeFocus(...t)),
|
|
39
|
+
class: C(["dpiV3_open-close-button", [{ dpiV3_activeState: o.isActive }]]),
|
|
40
|
+
onClick: e[1] || (e[1] = (...t) => n.handleClick && n.handleClick(...t)),
|
|
41
|
+
onFocus: e[2] || (e[2] = (t) => o.isFocused = !0),
|
|
42
|
+
onBlur: e[3] || (e[3] = (t) => o.isFocused = !1),
|
|
43
|
+
onKeydown: [
|
|
44
|
+
e[4] || (e[4] = r((t) => o.isActive = !0, ["enter"])),
|
|
45
|
+
e[5] || (e[5] = r(k((t) => o.isActive = !0, ["prevent"]), ["space"]))
|
|
46
|
+
],
|
|
47
|
+
onKeyup: [
|
|
48
|
+
e[6] || (e[6] = r((t) => o.isActive = !1, ["enter"])),
|
|
49
|
+
e[7] || (e[7] = r((t) => o.isActive = !1, ["space"]))
|
|
50
|
+
]
|
|
51
|
+
}, [
|
|
52
|
+
l.expanded ? m("", !0) : (s(), p(d, {
|
|
53
|
+
key: 0,
|
|
54
|
+
color: "var(--neutral-60, #3D4952)",
|
|
55
|
+
size: 32
|
|
56
|
+
})),
|
|
57
|
+
l.expanded ? (s(), p(v, {
|
|
58
|
+
key: 1,
|
|
59
|
+
color: "var(--neutral-60, #3D4952)",
|
|
60
|
+
size: 32
|
|
61
|
+
})) : m("", !0)
|
|
62
|
+
], 34);
|
|
63
|
+
}
|
|
64
|
+
const b = /* @__PURE__ */ w(x, [["render", B], ["__scopeId", "data-v-d10a315d"]]);
|
|
65
|
+
export {
|
|
66
|
+
b as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { PhX as l } from "@phosphor-icons/vue";
|
|
3
|
+
import { resolveComponent as p, createElementBlock as m, openBlock as v, withKeys as n, normalizeClass as d, withModifiers as f, createVNode as c } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import k from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const C = {
|
|
7
|
+
name: "CrossOutButton",
|
|
8
|
+
components: {
|
|
9
|
+
PhX: l
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
type: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: !0
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
isFocused: !1,
|
|
20
|
+
isActive: !1
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
emits: ["click"],
|
|
24
|
+
methods: {
|
|
25
|
+
handleClick() {
|
|
26
|
+
this.$emit("click");
|
|
27
|
+
},
|
|
28
|
+
removeFocus(i) {
|
|
29
|
+
i.preventDefault();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function F(i, e, r, y, o, s) {
|
|
34
|
+
const u = p("PhX");
|
|
35
|
+
return v(), m("button", {
|
|
36
|
+
tabindex: "0",
|
|
37
|
+
class: d([[
|
|
38
|
+
{ dpiV3_inToast: r.type === "inToast" },
|
|
39
|
+
{ dpiV3_activeState: o.isActive }
|
|
40
|
+
], "dpiV3_crossout-button"]),
|
|
41
|
+
onMousedown: e[0] || (e[0] = (...t) => s.removeFocus && s.removeFocus(...t)),
|
|
42
|
+
onClick: e[1] || (e[1] = (...t) => s.handleClick && s.handleClick(...t)),
|
|
43
|
+
onFocus: e[2] || (e[2] = (t) => o.isFocused = !0),
|
|
44
|
+
onBlur: e[3] || (e[3] = (t) => o.isFocused = !1),
|
|
45
|
+
onKeydown: [
|
|
46
|
+
e[4] || (e[4] = n((t) => o.isActive = !0, ["enter"])),
|
|
47
|
+
e[5] || (e[5] = n(f((t) => o.isActive = !0, ["prevent"]), ["space"]))
|
|
48
|
+
],
|
|
49
|
+
onKeyup: [
|
|
50
|
+
e[6] || (e[6] = n((t) => o.isActive = !1, ["enter"])),
|
|
51
|
+
e[7] || (e[7] = n((t) => o.isActive = !1, ["space"]))
|
|
52
|
+
]
|
|
53
|
+
}, [
|
|
54
|
+
c(u, {
|
|
55
|
+
size: "24px",
|
|
56
|
+
color: "#3D4952"
|
|
57
|
+
})
|
|
58
|
+
], 34);
|
|
59
|
+
}
|
|
60
|
+
const V = /* @__PURE__ */ k(C, [["render", F], ["__scopeId", "data-v-192aa4e1"]]);
|
|
61
|
+
export {
|
|
62
|
+
V as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import m from "./StateTag.vue.js";
|
|
2
|
+
import d from "./MoreButton.vue.js";
|
|
3
|
+
import { resolveComponent as o, createElementBlock as t, openBlock as e, Fragment as _, renderList as u, createElementVNode as r, createVNode as n, toDisplayString as f } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import g from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const k = {
|
|
7
|
+
name: "DatasetStatus",
|
|
8
|
+
props: {
|
|
9
|
+
timestamp: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !0
|
|
12
|
+
},
|
|
13
|
+
// Dynamic Labels
|
|
14
|
+
statuses: {
|
|
15
|
+
type: Array,
|
|
16
|
+
required: !0
|
|
17
|
+
// Require the statuses prop
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
components: {
|
|
21
|
+
StateTag: m,
|
|
22
|
+
MoreButton: d
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
handleMoreClick() {
|
|
26
|
+
console.log("Button clicked");
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, h = { class: "dpiV3_dataset-status-wrapper" }, B = { class: "dpiV3_status-timestamp" }, S = { class: "dpiV3_timestamp" };
|
|
30
|
+
function V(v, y, a, C, M, c) {
|
|
31
|
+
const i = o("StateTag"), l = o("MoreButton");
|
|
32
|
+
return e(), t("div", h, [
|
|
33
|
+
(e(!0), t(_, null, u(a.statuses, (s, p) => (e(), t("div", {
|
|
34
|
+
class: "dpiV3_dataset-status-container",
|
|
35
|
+
key: p
|
|
36
|
+
}, [
|
|
37
|
+
r("div", B, [
|
|
38
|
+
n(i, {
|
|
39
|
+
label: s.label,
|
|
40
|
+
state: s.state,
|
|
41
|
+
size: "page"
|
|
42
|
+
}, null, 8, ["label", "state"]),
|
|
43
|
+
r("span", S, "Bearbeitet am: " + f(a.timestamp), 1)
|
|
44
|
+
]),
|
|
45
|
+
n(l, { onClick: c.handleMoreClick }, null, 8, ["onClick"])
|
|
46
|
+
]))), 128))
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
const E = /* @__PURE__ */ g(k, [["render", V], ["__scopeId", "data-v-79f1e88e"]]);
|
|
50
|
+
export {
|
|
51
|
+
E as default
|
|
52
|
+
};
|