@citizenplane/pimp 8.26.1 → 8.28.1
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/{IconAccompaniedMinorEach-CUq3oXbX.js → IconAccompaniedMinorEach-MkIJAypb.js} +1 -1
- package/dist/{IconAccompaniedMinorNone-nZ4eSfTj.js → IconAccompaniedMinorNone-DMb-bSCG.js} +1 -1
- package/dist/{IconAccompaniedMinorOne-CDMqq14b.js → IconAccompaniedMinorOne-C9ORHm66.js} +1 -1
- package/dist/{IconAddReceipt-DRpGiWBU.js → IconAddReceipt-CeJlKuX2.js} +1 -1
- package/dist/{IconAirportTerminal-8k-3lKjb.js → IconAirportTerminal-D3p4CRpN.js} +1 -1
- package/dist/{IconArrival-m6HnOVje.js → IconArrival-C3oPAqgQ.js} +1 -1
- package/dist/IconBaggageCabinNone-valcCKfd.js +22 -0
- package/dist/IconBaggageCheckedNone-oq4yx5cO.js +22 -0
- package/dist/IconBaggagePersonalNone-BovIoK0M.js +20 -0
- package/dist/{IconBroadcast-B13UworG.js → IconBroadcast-CqdgVQaO.js} +1 -1
- package/dist/{IconCabinBag-CNnzHz2B.js → IconCabinBag-CMrtn-s6.js} +1 -1
- package/dist/IconCalendar-DmUZ-Du1.js +30 -0
- package/dist/IconCalendarDelay-DHaiharm.js +22 -0
- package/dist/{IconCheckedBaggage-CkxUDHe9.js → IconCheckedBaggage-OeOjHxe7.js} +1 -1
- package/dist/{IconCheckedBaggage20-DEtphLSa.js → IconCheckedBaggage20-CXeWuJgc.js} +1 -1
- package/dist/{IconCheckedBaggage30-CmAddx5h.js → IconCheckedBaggage30-Cartaaei.js} +1 -1
- package/dist/{IconChild-OReHyUco.js → IconChild-ChjkS7Gd.js} +1 -1
- package/dist/{IconContact-D2N23RZ5.js → IconContact-CtOxYQIs.js} +1 -1
- package/dist/{IconDeparture-D10LaXRX.js → IconDeparture-DJxClL94.js} +1 -1
- package/dist/{IconDistribution-SpPiru9I.js → IconDistribution-BmCLzb9p.js} +1 -1
- package/dist/{IconDistributionClosed-Bzqe7nju.js → IconDistributionClosed-BMjqoyt9.js} +1 -1
- package/dist/{IconDistributionExclusivePair-CjPM-_R1.js → IconDistributionExclusivePair-D71kgwyk.js} +1 -1
- package/dist/{IconDistributionSided-DehjCN0D.js → IconDistributionSided-Du56cPXR.js} +1 -1
- package/dist/{IconDistributionSupplySided-DWCyXqd1.js → IconDistributionSupplySided-BY9ACIGQ.js} +1 -1
- package/dist/{IconDynamicContent-BvzbgXvW.js → IconDynamicContent-DoYbB86x.js} +1 -1
- package/dist/IconEndDate-CVABdl-P.js +22 -0
- package/dist/{IconFares-zARDpPNl.js → IconFares-BXnx8WJa.js} +1 -1
- package/dist/{IconFaresOutlined-DLFV8nwg.js → IconFaresOutlined-CjJhZUKX.js} +1 -1
- package/dist/{IconFemale-Ba4uoI-S.js → IconFemale-D4lMoNKt.js} +1 -1
- package/dist/{IconFindConversation-d0pP3wG9.js → IconFindConversation-CYdB5hW8.js} +1 -1
- package/dist/{IconFire-CXzWKoMB.js → IconFire-Bh3vQ1A3.js} +1 -1
- package/dist/{IconFlight-Cof8M5dO.js → IconFlight-RyDIRwoI.js} +1 -1
- package/dist/{IconFlightReturn-CA9iGMcW.js → IconFlightReturn-DN7K5zxX.js} +1 -1
- package/dist/IconFlightSchedule-DAX_cnvF.js +28 -0
- package/dist/{IconHandHeart-CCLKnMOm.js → IconHandHeart-C5jxr29k.js} +1 -1
- package/dist/{IconHistory-DI6WD_3J.js → IconHistory-CuJwcjfY.js} +1 -1
- package/dist/{IconHourGlass-BorNLEca.js → IconHourGlass-DyrZPbXz.js} +1 -1
- package/dist/{IconIdCard-DhbhBkul.js → IconIdCard-lBDLYRPq.js} +1 -1
- package/dist/{IconInfant-D4EztT9g.js → IconInfant-E19ozPuk.js} +1 -1
- package/dist/{IconItinerary-Bhj_lgG2.js → IconItinerary-5AEG0f9f.js} +1 -1
- package/dist/{IconLeave-BvpY7gdD.js → IconLeave-XuFJRd-0.js} +1 -1
- package/dist/{IconMale-RMd_9ZSg.js → IconMale-R2ZgQj0s.js} +1 -1
- package/dist/{IconMultiSegments-DROUj0t5.js → IconMultiSegments-DfiqdUEm.js} +1 -1
- package/dist/IconNoPassport-h-6DjTcc.js +22 -0
- package/dist/{IconNoRefund-yNAZr7uX.js → IconNoRefund-C5R_Zxke.js} +1 -1
- package/dist/IconNoSeat-C-XnWQk8.js +23 -0
- package/dist/{IconNotion-CpZhGILz.js → IconNotion-pdx45QBU.js} +1 -1
- package/dist/{IconOffline-Bf1mw_1N.js → IconOffline-EG6mJ-Fs.js} +1 -1
- package/dist/{IconOneWay-6oGoLo57.js → IconOneWay-CX6CckSB.js} +2 -2
- package/dist/{IconPaid-B3dvioAR.js → IconPaid-BJhBGPy9.js} +1 -1
- package/dist/IconPassport-C6THdLYf.js +37 -0
- package/dist/{IconPayout-b3TcXwjA.js → IconPayout-MS-qRRR0.js} +1 -1
- package/dist/IconPlug-yYpQdJgj.js +22 -0
- package/dist/IconPlugOff-DSGcBog-.js +23 -0
- package/dist/{IconReceipt-Dh454941.js → IconReceipt-ChU6nBry.js} +1 -1
- package/dist/IconRecurrence-DtwCmoXo.js +22 -0
- package/dist/{IconRefund-D-FNjukU.js → IconRefund-D1wQXsZj.js} +1 -1
- package/dist/{IconRoundTrip-BqVPrNwg.js → IconRoundTrip-DhPU15r6.js} +1 -1
- package/dist/{IconRouteNoStop-CZ_QeOIY.js → IconRouteNoStop-C5b0NI9V.js} +1 -1
- package/dist/{IconRouteOneStop-DGpLAQmQ.js → IconRouteOneStop-CDL4AJoN.js} +1 -1
- package/dist/IconScheduleChange-CasvbB9p.js +22 -0
- package/dist/{IconSeatEmpty-BwyVwYQZ.js → IconSeatEmpty-CUDMQzqk.js} +1 -1
- package/dist/{IconSeatSold-B_SNoTs-.js → IconSeatSold-mwtkmlhT.js} +1 -1
- package/dist/{IconSeatTotal-DUEF7k6I.js → IconSeatTotal-BPegCOjA.js} +1 -1
- package/dist/IconStartDate-DoPJpEly.js +22 -0
- package/dist/{IconTemplate-D1ACYaHI.js → IconTemplate-CQH8r3U7.js} +1 -1
- package/dist/{IconTicket-5Z4b83BP.js → IconTicket-mONYGHBg.js} +1 -1
- package/dist/{IconTimer-DbcddAPo.js → IconTimer-BxR1ymxu.js} +1 -1
- package/dist/{IconTrafficControl-CEzhRpZt.js → IconTrafficControl-AcQHu-Dm.js} +1 -1
- package/dist/{index-DbgX3-2I.js → index-CjeXy6n3.js} +17600 -18506
- package/dist/pimp.es.js +1 -1
- package/dist/pimp.umd.js +23 -23
- package/dist/style.css +1 -1
- package/package.json +2 -1
- package/src/components/{core/BaseInputLabel.vue → BaseInputLabel.vue} +9 -15
- package/src/components/{core/BaseSelectClearButton.vue → BaseSelectClearButton.vue} +2 -2
- package/src/components/{atomic-elements/CpAirlineLogo.vue → CpAirlineLogo.vue} +9 -10
- package/src/components/{feedback-indicators/CpAlert.vue → CpAlert.vue} +16 -27
- package/src/components/{atomic-elements/CpBadge.vue → CpBadge.vue} +27 -44
- package/src/components/{buttons/CpButton.vue → CpButton.vue} +63 -104
- package/src/components/{date-pickers/CpCalendar.vue → CpCalendar.vue} +157 -156
- package/src/components/{toggles/CpCheckbox.vue → CpCheckbox.vue} +45 -54
- package/src/components/{date-pickers/CpDate.vue → CpDate.vue} +202 -212
- package/src/components/CpDatepicker.vue +203 -0
- package/src/components/{atomic-elements/CpDialog.vue → CpDialog.vue} +14 -9
- package/src/components/{typography/CpHeading.vue → CpHeading.vue} +11 -31
- package/src/components/{visual/CpIcon.vue → CpIcon.vue} +2 -1
- package/src/components/{inputs/CpInput.vue → CpInput.vue} +41 -58
- package/src/components/{feedback-indicators/CpLoader.vue → CpLoader.vue} +7 -8
- package/src/components/{selects/CpMultiselect.vue → CpMultiselect.vue} +60 -91
- package/src/components/{atomic-elements/CpPartnerBadge.vue → CpPartnerBadge.vue} +12 -20
- package/src/components/{toggles/CpRadio.vue → CpRadio.vue} +47 -58
- package/src/components/{selects/CpSelect.vue → CpSelect.vue} +74 -94
- package/src/components/{selects/CpSelectMenu.vue → CpSelectMenu.vue} +94 -96
- package/src/components/{toggles/CpSwitch.vue → CpSwitch.vue} +51 -67
- package/src/components/{lists-and-table/CpTable.vue → CpTable.vue} +159 -113
- package/src/components/{lists-and-table/CpTableEmptyState.vue → CpTableEmptyState.vue} +5 -8
- package/src/components/{inputs/CpTextarea.vue → CpTextarea.vue} +32 -52
- package/src/components/CpToaster.vue +377 -0
- package/src/components/{atomic-elements/CpTooltip.vue → CpTooltip.vue} +12 -11
- package/src/components/TransitionExpand.vue +70 -0
- package/src/components/icons/IconBaggageCabinNone.vue +24 -0
- package/src/components/icons/IconBaggageCheckedNone.vue +25 -0
- package/src/components/icons/IconBaggagePersonalNone.vue +33 -0
- package/src/components/icons/IconCalendar.vue +17 -0
- package/src/components/icons/IconCalendarDelay.vue +21 -0
- package/src/components/icons/IconEndDate.vue +19 -0
- package/src/components/icons/IconFlightSchedule.vue +23 -0
- package/src/components/icons/IconNoPassport.vue +23 -24
- package/src/components/icons/IconNoSeat.vue +18 -0
- package/src/components/icons/IconOneWay.vue +1 -1
- package/src/components/icons/IconPassport.vue +15 -22
- package/src/components/icons/IconPlug.vue +17 -0
- package/src/components/icons/IconPlugOff.vue +18 -0
- package/src/components/icons/IconRecurrence.vue +17 -8
- package/src/components/icons/IconScheduleChange.vue +17 -26
- package/src/components/icons/IconStartDate.vue +19 -0
- package/src/components/index.ts +43 -55
- package/src/constants/{src/CpCustomIcons.ts → CpCustomIcons.ts} +13 -2
- package/src/constants/CpTableConfig.ts +12 -0
- package/src/constants/Heading.ts +8 -0
- package/src/{utils/constants/src/Intent.js → constants/Intent.ts} +1 -1
- package/src/constants/PartnerTypes.ts +6 -0
- package/src/constants/Position.ts +10 -0
- package/src/constants/Sizes.ts +5 -0
- package/src/constants/colors/Colors.ts +10 -0
- package/src/constants/colors/ToggleColors.ts +6 -0
- package/src/constants/index.ts +10 -5
- package/src/directives/ClickOutside.ts +17 -0
- package/src/directives/{ResizeSelect.js → ResizeSelect.ts} +3 -3
- package/src/helpers/{dom.js → dom.ts} +13 -9
- package/src/helpers/{index.js → index.ts} +13 -3
- package/src/helpers/object.ts +9 -0
- package/src/helpers/string/src/camelize.ts +6 -0
- package/src/helpers/string/src/{decamelize.js → decamelize.ts} +1 -1
- package/src/libs/CoreDatepicker.vue +4 -4
- package/src/plugins/toaster.ts +71 -0
- package/src/stories/BaseInputLabel.stories.ts +2 -1
- package/src/stories/CpAirlineLogo.stories.ts +1 -1
- package/src/stories/CpAlert.stories.ts +2 -1
- package/src/stories/CpBadge.stories.ts +1 -1
- package/src/stories/CpButton.stories.ts +1 -1
- package/src/stories/CpCheckbox.stories.ts +4 -2
- package/src/stories/CpDate.stories.ts +4 -2
- package/src/stories/CpDatepicker.stories.ts +4 -2
- package/src/stories/CpDialog.stories.ts +3 -2
- package/src/stories/CpHeading.stories.ts +2 -1
- package/src/stories/CpIcon.stories.ts +3 -1
- package/src/stories/CpInput.stories.ts +4 -2
- package/src/stories/CpLoader.stories.ts +2 -1
- package/src/stories/CpMultiselect.stories.ts +3 -2
- package/src/stories/CpPartnerBadge.stories.ts +2 -2
- package/src/stories/CpRadio.stories.ts +4 -2
- package/src/stories/CpSelect.stories.ts +4 -2
- package/src/stories/CpSelectMenu.stories.ts +4 -2
- package/src/stories/CpSwitch.stories.ts +4 -2
- package/src/stories/CpTable.stories.ts +9 -2
- package/src/stories/CpTableEmptyState.stories.ts +2 -1
- package/src/stories/CpTextarea.stories.ts +4 -2
- package/src/stories/CpToaster.stories.ts +2 -1
- package/src/stories/CpTooltip.stories.ts +2 -1
- package/src/stories/TransitionExpand.stories.ts +4 -2
- package/src/types/luxon.d.ts +1 -0
- package/src/vendors/ff-polyfill.ts +38 -0
- package/vitest.workspace.js +1 -3
- package/dist/IconNoPassport-DBmaQH_g.js +0 -18
- package/dist/IconPassport-5SwUf6_R.js +0 -20
- package/dist/IconRecurrence-CXVkBJ3i.js +0 -24
- package/dist/IconScheduleChange-CEIGEhU4.js +0 -19
- package/src/components/date-pickers/CpDatepicker.vue +0 -229
- package/src/components/feedback-indicators/CpToaster.vue +0 -372
- package/src/components/helpers-utilities/TransitionExpand.vue +0 -72
- package/src/constants/src/CpTableConfig.ts +0 -14
- package/src/constants/src/Position.ts +0 -10
- package/src/constants/src/colors/Colors.ts +0 -10
- package/src/constants/src/colors/ToggleColors.ts +0 -6
- package/src/directives/ClickOutside.js +0 -13
- package/src/helpers/object.js +0 -9
- package/src/helpers/string/src/camelize.js +0 -6
- package/src/plugins/toaster.js +0 -61
- package/src/utils/constants/index.js +0 -3
- package/src/utils/constants/src/PartnerTypes.js +0 -6
- package/src/utils/constants/src/Sizes.js +0 -5
- package/src/vendors/ff-polyfill.js +0 -36
- /package/src/components/{atomic-elements/CpDialogWrapper.vue → CpDialogWrapper.vue} +0 -0
- /package/src/components/{logo/Pimp.vue → Pimp.vue} +0 -0
- /package/src/helpers/string/{index.js → index.ts} +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
beforeMount(el, binding) {
|
|
3
|
-
el.clickOutsideEvent = function (event) {
|
|
4
|
-
if (!(el === event.target || el.contains(event.target))) {
|
|
5
|
-
binding.value(event, el)
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
document.body.addEventListener('click', el.clickOutsideEvent)
|
|
9
|
-
},
|
|
10
|
-
unmounted(el) {
|
|
11
|
-
document.body.removeEventListener('click', el.clickOutsideEvent)
|
|
12
|
-
},
|
|
13
|
-
}
|
package/src/helpers/object.js
DELETED
package/src/plugins/toaster.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CpToaster from '@/components/feedback-indicators/CpToaster.vue'
|
|
2
|
-
import { Intent } from '@/utils/constants'
|
|
3
|
-
|
|
4
|
-
import { h, render } from 'vue'
|
|
5
|
-
|
|
6
|
-
const createElement = () => typeof document !== 'undefined' && document.createElement('div')
|
|
7
|
-
|
|
8
|
-
const mount = (component, { props, children, element, app } = {}) => {
|
|
9
|
-
let el = element ? element : createElement()
|
|
10
|
-
|
|
11
|
-
let vNode = h(component, props, children)
|
|
12
|
-
if (app && app._context) {
|
|
13
|
-
vNode.appContext = app._context
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
render(vNode, el)
|
|
17
|
-
|
|
18
|
-
const destroy = () => {
|
|
19
|
-
if (el) {
|
|
20
|
-
render(null, el)
|
|
21
|
-
}
|
|
22
|
-
el = null
|
|
23
|
-
vNode = null
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return { vNode, destroy, el }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const createToaster = (globalOptions = {}) => {
|
|
30
|
-
return {
|
|
31
|
-
show(options = {}) {
|
|
32
|
-
let localOptions = { ...options }
|
|
33
|
-
|
|
34
|
-
mount(CpToaster, {
|
|
35
|
-
props: { ...globalOptions, ...localOptions },
|
|
36
|
-
})
|
|
37
|
-
},
|
|
38
|
-
unique(options = {}) {
|
|
39
|
-
options.isUnique = true
|
|
40
|
-
return this.show(options)
|
|
41
|
-
},
|
|
42
|
-
success(options = {}) {
|
|
43
|
-
options.type = Intent.SUCCESS.value
|
|
44
|
-
return this.show(options)
|
|
45
|
-
},
|
|
46
|
-
critical(options = {}) {
|
|
47
|
-
options.type = Intent.CRITICAL.value
|
|
48
|
-
return this.show(options)
|
|
49
|
-
},
|
|
50
|
-
info(options = {}) {
|
|
51
|
-
options.type = Intent.INFO.value
|
|
52
|
-
return this.show(options)
|
|
53
|
-
},
|
|
54
|
-
warning(options = {}) {
|
|
55
|
-
options.type = Intent.WARNING.value
|
|
56
|
-
return this.show(options)
|
|
57
|
-
},
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export default createToaster
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Copy paste from https://gist.github.com/nuxodin/9250e56a3ce6c0446efa
|
|
2
|
-
export default function () {
|
|
3
|
-
var w = window,
|
|
4
|
-
d = w.document
|
|
5
|
-
|
|
6
|
-
if (w.onfocusin === undefined) {
|
|
7
|
-
d.addEventListener('focus', addPolyfill, true)
|
|
8
|
-
d.addEventListener('blur', addPolyfill, true)
|
|
9
|
-
d.addEventListener('focusin', removePolyfill, true)
|
|
10
|
-
d.addEventListener('focusout', removePolyfill, true)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function addPolyfill(e) {
|
|
14
|
-
var type = e.type === 'focus' ? 'focusin' : 'focusout'
|
|
15
|
-
var event = new CustomEvent(type, {
|
|
16
|
-
bubbles: true,
|
|
17
|
-
cancelable: false,
|
|
18
|
-
})
|
|
19
|
-
event.c1Generated = true
|
|
20
|
-
e.target.dispatchEvent(event)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function removePolyfill(e) {
|
|
24
|
-
if (!e.c1Generated) {
|
|
25
|
-
// focus after focusin, so chrome will the first time trigger tow times focusin
|
|
26
|
-
d.removeEventListener('focus', addPolyfill, true)
|
|
27
|
-
d.removeEventListener('blur', addPolyfill, true)
|
|
28
|
-
d.removeEventListener('focusin', removePolyfill, true)
|
|
29
|
-
d.removeEventListener('focusout', removePolyfill, true)
|
|
30
|
-
}
|
|
31
|
-
setTimeout(function () {
|
|
32
|
-
d.removeEventListener('focusin', removePolyfill, true)
|
|
33
|
-
d.removeEventListener('focusout', removePolyfill, true)
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|