solid-panes 4.4.2-1 → 4.4.2-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/dist/RDFXMLPane.d.ts +2 -3
- package/dist/RDFXMLPane2.cjs.js +3 -0
- package/dist/RDFXMLPane2.cjs.js.map +1 -0
- package/dist/RDFXMLPane2.esm.js +55 -0
- package/dist/RDFXMLPane2.esm.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.cjs.js +1 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/user.esm.js.map +1 -0
- package/dist/audio/audioPane.cjs.js +2 -0
- package/dist/audio/audioPane.cjs.js.map +1 -0
- package/dist/audio/audioPane.esm.js +96 -0
- package/dist/audio/audioPane.esm.js.map +1 -0
- package/dist/classInstancePane.cjs.js +2 -0
- package/dist/classInstancePane.cjs.js.map +1 -0
- package/dist/classInstancePane.esm.js +50 -0
- package/dist/classInstancePane.esm.js.map +1 -0
- package/dist/components/header/Header.d.ts +8 -0
- package/dist/components/header/Header.d.ts.map +1 -0
- package/dist/components/header/index.d.ts +4 -0
- package/dist/components/header/index.d.ts.map +1 -0
- package/dist/dashboard/basicPreferences.cjs.js +2 -0
- package/dist/dashboard/basicPreferences.cjs.js.map +1 -0
- package/dist/dashboard/basicPreferences.d.ts +1 -1
- package/dist/dashboard/basicPreferences.esm.js +70 -0
- package/dist/dashboard/basicPreferences.esm.js.map +1 -0
- package/dist/dashboard/dashboardPane.d.ts +1 -1
- package/dist/dashboard/homepage.d.ts +1 -1
- package/dist/dashboard/ontologyData.cjs.js +37 -0
- package/dist/dashboard/ontologyData.cjs.js.map +1 -0
- package/dist/dashboard/ontologyData.esm.js +6 -0
- package/dist/dashboard/ontologyData.esm.js.map +1 -0
- package/dist/dashboard/preferencesFormText.cjs.js +20 -0
- package/dist/dashboard/preferencesFormText.cjs.js.map +1 -0
- package/dist/dashboard/preferencesFormText.esm.js +6 -0
- package/dist/dashboard/preferencesFormText.esm.js.map +1 -0
- package/dist/dataContentPane.d.ts +2 -3
- package/dist/dataContentPane2.cjs.js +2 -0
- package/dist/dataContentPane2.cjs.js.map +1 -0
- package/dist/dataContentPane2.esm.js +109 -0
- package/dist/dataContentPane2.esm.js.map +1 -0
- package/dist/defaultPane.d.ts +2 -3
- package/dist/defaultPane2.cjs.js +2 -0
- package/dist/defaultPane2.cjs.js.map +1 -0
- package/dist/defaultPane2.esm.js +41 -0
- package/dist/defaultPane2.esm.js.map +1 -0
- package/dist/dev.d.ts +10 -0
- package/dist/dev.d.ts.map +1 -0
- package/dist/dokieli/dokieliPane.cjs.js +2 -0
- package/dist/dokieli/dokieliPane.cjs.js.map +1 -0
- package/dist/dokieli/dokieliPane.esm.js +39 -0
- package/dist/dokieli/dokieliPane.esm.js.map +1 -0
- package/dist/dokieli/{new.js → new.cjs.js} +4 -10
- package/dist/dokieli/new.cjs.js.map +1 -0
- package/dist/dokieli/new.esm.js +6 -0
- package/dist/dokieli/new.esm.js.map +1 -0
- package/dist/form/pane.cjs.js +4 -0
- package/dist/form/pane.cjs.js.map +1 -0
- package/dist/form/pane.d.ts +1 -2
- package/dist/form/pane.esm.js +121 -0
- package/dist/form/pane.esm.js.map +1 -0
- package/dist/home/homePane.cjs.js +2 -0
- package/dist/home/homePane.cjs.js.map +1 -0
- package/dist/home/homePane.d.ts +1 -1
- package/dist/home/homePane.esm.js +35 -0
- package/dist/home/homePane.esm.js.map +1 -0
- package/dist/humanReadablePane.d.ts +2 -3
- package/dist/humanReadablePane2.cjs.js +2 -0
- package/dist/humanReadablePane2.cjs.js.map +1 -0
- package/dist/humanReadablePane2.esm.js +123 -0
- package/dist/humanReadablePane2.esm.js.map +1 -0
- package/dist/icons/dashboard.cjs.js +2 -0
- package/dist/icons/dashboard.cjs.js.map +1 -0
- package/dist/icons/dashboard.esm.js +6 -0
- package/dist/icons/dashboard.esm.js.map +1 -0
- package/dist/icons/folder.cjs.js +2 -0
- package/dist/icons/folder.cjs.js.map +1 -0
- package/dist/icons/folder.esm.js +6 -0
- package/dist/icons/folder.esm.js.map +1 -0
- package/dist/icons/friends.cjs.js +2 -0
- package/dist/icons/friends.cjs.js.map +1 -0
- package/dist/icons/friends.esm.js +6 -0
- package/dist/icons/friends.esm.js.map +1 -0
- package/dist/icons/iconHelper.cjs.js +2 -0
- package/dist/icons/iconHelper.cjs.js.map +1 -0
- package/dist/icons/iconHelper.esm.js +17 -0
- package/dist/icons/iconHelper.esm.js.map +1 -0
- package/dist/icons/{menu.svg → menu.cjs.js} +3 -2
- package/dist/icons/menu.cjs.js.map +1 -0
- package/dist/icons/menu.esm.js +6 -0
- package/dist/icons/menu.esm.js.map +1 -0
- package/dist/icons/person.cjs.js +2 -0
- package/dist/icons/person.cjs.js.map +1 -0
- package/dist/icons/person.esm.js +6 -0
- package/dist/icons/person.esm.js.map +1 -0
- package/dist/imagePane.d.ts +2 -3
- package/dist/imagePane2.cjs.js +2 -0
- package/dist/imagePane2.cjs.js.map +1 -0
- package/dist/imagePane2.esm.js +32 -0
- package/dist/imagePane2.esm.js.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +26 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/internal/internalPane.d.ts +1 -2
- package/dist/internal/internalPane2.cjs.js +2 -0
- package/dist/internal/internalPane2.cjs.js.map +1 -0
- package/dist/internal/internalPane2.esm.js +104 -0
- package/dist/internal/internalPane2.esm.js.map +1 -0
- package/dist/mainPage/footer.cjs.js +2 -0
- package/dist/mainPage/footer.cjs.js.map +1 -0
- package/dist/mainPage/footer.d.ts +1 -3
- package/dist/mainPage/footer.esm.js +18 -0
- package/dist/mainPage/footer.esm.js.map +1 -0
- package/dist/mainPage/header.cjs.js +2 -0
- package/dist/mainPage/header.cjs.js.map +1 -0
- package/dist/mainPage/header.d.ts +1 -15
- package/dist/mainPage/header.d.ts.map +1 -1
- package/dist/mainPage/header.esm.js +24 -0
- package/dist/mainPage/header.esm.js.map +1 -0
- package/dist/mainPage/index.cjs.js +2 -0
- package/dist/mainPage/index.cjs.js.map +1 -0
- package/dist/mainPage/index.d.ts +3 -7
- package/dist/mainPage/index.d.ts.map +1 -1
- package/dist/mainPage/index.esm.js +38 -0
- package/dist/mainPage/index.esm.js.map +1 -0
- package/dist/mainPage/menu.d.ts +1 -2
- package/dist/mainPage/menu2.cjs.js +2 -0
- package/dist/mainPage/menu2.cjs.js.map +1 -0
- package/dist/mainPage/menu2.esm.js +184 -0
- package/dist/mainPage/menu2.esm.js.map +1 -0
- package/dist/n3Pane.d.ts +2 -3
- package/dist/n3Pane2.cjs.js +3 -0
- package/dist/n3Pane2.cjs.js.map +1 -0
- package/dist/n3Pane2.esm.js +52 -0
- package/dist/n3Pane2.esm.js.map +1 -0
- package/dist/outline/context.cjs.js +2 -0
- package/dist/outline/context.cjs.js.map +1 -0
- package/dist/outline/context.d.ts +3 -3
- package/dist/outline/context.esm.js +18 -0
- package/dist/outline/context.esm.js.map +1 -0
- package/dist/outline/manager2.cjs.js +3 -0
- package/dist/outline/manager2.cjs.js.map +1 -0
- package/dist/outline/manager2.esm.js +875 -0
- package/dist/outline/manager2.esm.js.map +1 -0
- package/dist/outline/outlineIcons.cjs.js +2 -0
- package/dist/outline/outlineIcons.cjs.js.map +1 -0
- package/dist/outline/outlineIcons.esm.js +10 -0
- package/dist/outline/outlineIcons.esm.js.map +1 -0
- package/dist/outline/propertyViews.cjs.js +2 -0
- package/dist/outline/propertyViews.cjs.js.map +1 -0
- package/dist/outline/propertyViews.esm.js +19 -0
- package/dist/outline/propertyViews.esm.js.map +1 -0
- package/dist/outline/queryByExample.cjs.js +2 -0
- package/dist/outline/queryByExample.cjs.js.map +1 -0
- package/dist/outline/queryByExample.esm.js +25 -0
- package/dist/outline/queryByExample.esm.js.map +1 -0
- package/dist/outline/userInput.cjs.js +61 -0
- package/dist/outline/userInput.cjs.js.map +1 -0
- package/dist/outline/userInput.esm.js +784 -0
- package/dist/outline/userInput.esm.js.map +1 -0
- package/dist/outline/viewAsImage.cjs.js +2 -0
- package/dist/outline/viewAsImage.cjs.js.map +1 -0
- package/dist/outline/viewAsImage.esm.js +10 -0
- package/dist/outline/viewAsImage.esm.js.map +1 -0
- package/dist/outline/viewAsMbox.cjs.js +2 -0
- package/dist/outline/viewAsMbox.cjs.js.map +1 -0
- package/dist/outline/viewAsMbox.esm.js +9 -0
- package/dist/outline/viewAsMbox.esm.js.map +1 -0
- package/dist/pad/padPane.d.ts +1 -2
- package/dist/pad/padPane2.cjs.js +2 -0
- package/dist/pad/padPane2.cjs.js.map +1 -0
- package/dist/pad/padPane2.esm.js +172 -0
- package/dist/pad/padPane2.esm.js.map +1 -0
- package/dist/playlist/playlistPane.cjs.js +2 -0
- package/dist/playlist/playlistPane.cjs.js.map +1 -0
- package/dist/playlist/playlistPane.esm.js +49 -0
- package/dist/playlist/playlistPane.esm.js.map +1 -0
- package/dist/profileUtils/ownerProfile.cjs.js +2 -0
- package/dist/profileUtils/ownerProfile.cjs.js.map +1 -0
- package/dist/profileUtils/ownerProfile.d.ts +1 -1
- package/dist/profileUtils/ownerProfile.esm.js +50 -0
- package/dist/profileUtils/ownerProfile.esm.js.map +1 -0
- package/dist/registerPanes.cjs.js +2 -0
- package/dist/registerPanes.cjs.js.map +1 -0
- package/dist/registerPanes.esm.js +45 -0
- package/dist/registerPanes.esm.js.map +1 -0
- package/dist/schedule/formsForSchedule.cjs.js +117 -0
- package/dist/schedule/formsForSchedule.cjs.js.map +1 -0
- package/dist/schedule/formsForSchedule.esm.js +6 -0
- package/dist/schedule/formsForSchedule.esm.js.map +1 -0
- package/dist/schedule/schedulePane.d.ts +2 -4
- package/dist/schedule/schedulePane2.cjs.js +8 -0
- package/dist/schedule/schedulePane2.cjs.js.map +1 -0
- package/dist/schedule/schedulePane2.esm.js +384 -0
- package/dist/schedule/schedulePane2.esm.js.map +1 -0
- package/dist/sharing/sharingPane.cjs.js +2 -0
- package/dist/sharing/sharingPane.cjs.js.map +1 -0
- package/dist/sharing/sharingPane.esm.js +22 -0
- package/dist/sharing/sharingPane.esm.js.map +1 -0
- package/dist/slideshow/slideshowPane.cjs.js +2 -0
- package/dist/slideshow/slideshowPane.cjs.js.map +1 -0
- package/dist/slideshow/slideshowPane.esm.js +46 -0
- package/dist/slideshow/slideshowPane.esm.js.map +1 -0
- package/dist/social/editProfileDetails.cjs.js +2 -0
- package/dist/social/editProfileDetails.cjs.js.map +1 -0
- package/dist/social/editProfileDetails.d.ts +1 -2
- package/dist/social/editProfileDetails.esm.js +10 -0
- package/dist/social/editProfileDetails.esm.js.map +1 -0
- package/dist/social/icons.cjs.js +82 -0
- package/dist/social/icons.cjs.js.map +1 -0
- package/dist/social/{icons.js → icons.esm.js} +12 -18
- package/dist/social/icons.esm.js.map +1 -0
- package/dist/social/socialPane.d.ts +2 -3
- package/dist/social/socialPane2.cjs.js +6 -0
- package/dist/social/socialPane2.cjs.js.map +1 -0
- package/dist/social/socialPane2.esm.js +326 -0
- package/dist/social/socialPane2.esm.js.map +1 -0
- package/dist/social/socialSections.cjs.js +2 -0
- package/dist/social/socialSections.cjs.js.map +1 -0
- package/dist/social/socialSections.d.ts +2 -2
- package/dist/social/socialSections.esm.js +221 -0
- package/dist/social/socialSections.esm.js.map +1 -0
- package/dist/social/triage.cjs.js +2 -0
- package/dist/social/triage.cjs.js.map +1 -0
- package/dist/social/triage.d.ts +2 -2
- package/dist/social/triage.esm.js +44 -0
- package/dist/social/triage.esm.js.map +1 -0
- package/dist/tabbed/tabbedPane.cjs.js +2 -0
- package/dist/tabbed/tabbedPane.cjs.js.map +1 -0
- package/dist/tabbed/tabbedPane.d.ts +1 -1
- package/dist/tabbed/tabbedPane.esm.js +38 -0
- package/dist/tabbed/tabbedPane.esm.js.map +1 -0
- package/dist/tableViewPane.cjs.js +2 -0
- package/dist/tableViewPane.cjs.js.map +1 -0
- package/dist/tableViewPane.esm.js +20 -0
- package/dist/tableViewPane.esm.js.map +1 -0
- package/dist/transaction/pane.cjs.js +8 -0
- package/dist/transaction/pane.cjs.js.map +1 -0
- package/dist/transaction/pane.esm.js +212 -0
- package/dist/transaction/pane.esm.js.map +1 -0
- package/dist/transaction/period.cjs.js +4 -0
- package/dist/transaction/period.cjs.js.map +1 -0
- package/dist/transaction/period.esm.js +126 -0
- package/dist/transaction/period.esm.js.map +1 -0
- package/dist/trip/tripPane.cjs.js +2 -0
- package/dist/trip/tripPane.cjs.js.map +1 -0
- package/dist/trip/tripPane.esm.js +85 -0
- package/dist/trip/tripPane.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.dom.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.dom.esm.js +108 -0
- package/dist/trustedApplications/trustedApplications.dom.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.utils.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.utils.esm.js +20 -0
- package/dist/trustedApplications/trustedApplications.utils.esm.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.cjs.js +2 -0
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -0
- package/dist/trustedApplications/trustedApplications.view.d.ts +1 -1
- package/dist/trustedApplications/trustedApplications.view.esm.js +41 -0
- package/dist/trustedApplications/trustedApplications.view.esm.js.map +1 -0
- package/dist/ui/pane.cjs.js +4 -0
- package/dist/ui/pane.cjs.js.map +1 -0
- package/dist/ui/pane.esm.js +56 -0
- package/dist/ui/pane.esm.js.map +1 -0
- package/dist/versionInfo.cjs.js +2 -0
- package/dist/versionInfo.cjs.js.map +1 -0
- package/dist/versionInfo.esm.js +40 -0
- package/dist/versionInfo.esm.js.map +1 -0
- package/dist/video/videoPane.cjs.js +2 -0
- package/dist/video/videoPane.cjs.js.map +1 -0
- package/dist/video/videoPane.esm.js +25 -0
- package/dist/video/videoPane.esm.js.map +1 -0
- package/package.json +50 -61
- package/dist/0314353e28ce6e5539af.svg +0 -9
- package/dist/04567ff683933c35c465.png +0 -0
- package/dist/10163fd9b5a0e00d63a0.png +0 -0
- package/dist/1234dcb2eec2e45f252b.png +0 -0
- package/dist/20899934157df4db56cb.png +0 -0
- package/dist/33760bf79f097f449da5.png +0 -0
- package/dist/4cceba29ab33b1ddd9bb.svg +0 -6
- package/dist/578d2b6ed32e7624164e.png +0 -0
- package/dist/5f62a5b2b7e99b9640c7.png +0 -0
- package/dist/6525766ecd288ec60129.png +0 -0
- package/dist/7800be6f6c4b5b0f4f20.png +0 -0
- package/dist/7b7538c6f6b317968009.svg +0 -9
- package/dist/92d03142abe6efc0b42d.svg +0 -6
- package/dist/976473cf5fe24d657d4b.png +0 -0
- package/dist/RDFXMLPane.css +0 -70
- package/dist/RDFXMLPane.js +0 -100
- package/dist/argument/argumentPane.js +0 -60
- package/dist/attach/attachPane.js +0 -393
- package/dist/audio/audioPane.js +0 -181
- package/dist/bda84f59e7216675a208.png +0 -0
- package/dist/cd68e8f3990ba8b2139e.png +0 -0
- package/dist/classInstancePane.js +0 -91
- package/dist/dashboard/basicPreferences.js +0 -147
- package/dist/dashboard/dashboardPane.js +0 -73
- package/dist/dashboard/homepage.js +0 -42
- package/dist/dataContentPane.css +0 -271
- package/dist/dataContentPane.js +0 -226
- package/dist/defaultPane.css +0 -97
- package/dist/defaultPane.js +0 -81
- package/dist/dokieli/dokieliPane.js +0 -74
- package/dist/e7074a7e2cb69e51cfd3.png +0 -0
- package/dist/f3772696fb7ee53c23d8.png +0 -0
- package/dist/form/formPane.css +0 -120
- package/dist/form/pane.js +0 -250
- package/dist/home/homePane.js +0 -74
- package/dist/humanReadablePane.css +0 -129
- package/dist/humanReadablePane.js +0 -243
- package/dist/icons/clock.svg +0 -7
- package/dist/icons/comment.svg +0 -6
- package/dist/icons/dashboard.svg +0 -9
- package/dist/icons/downArrow.svg +0 -6
- package/dist/icons/folder.svg +0 -6
- package/dist/icons/friends.svg +0 -9
- package/dist/icons/help.svg +0 -8
- package/dist/icons/iconHelper.js +0 -23
- package/dist/icons/person.svg +0 -6
- package/dist/icons/personInCircle.svg +0 -8
- package/dist/icons/sharing.svg +0 -10
- package/dist/icons/signOut.svg +0 -8
- package/dist/icons/signUp.svg +0 -9
- package/dist/icons/star.svg +0 -3
- package/dist/imagePane.css +0 -4
- package/dist/imagePane.js +0 -67
- package/dist/index.js +0 -123
- package/dist/internal/internalPane.css +0 -14
- package/dist/internal/internalPane.js +0 -183
- package/dist/mainPage/footer.js +0 -29
- package/dist/mainPage/header.js +0 -203
- package/dist/mainPage/index.js +0 -78
- package/dist/mainPage/menu.css +0 -243
- package/dist/mainPage/menu.js +0 -449
- package/dist/microblogPane/mbStyle.css +0 -267
- package/dist/microblogPane/microblogPane.js +0 -1031
- package/dist/n3Pane.css +0 -49
- package/dist/n3Pane.js +0 -88
- package/dist/outline/context.js +0 -21
- package/dist/outline/manager.css +0 -78
- package/dist/outline/manager.js +0 -2115
- package/dist/outline/outlineIcons.js +0 -126
- package/dist/outline/propertyViews.js +0 -43
- package/dist/outline/queryByExample.js +0 -285
- package/dist/outline/userInput.js +0 -1821
- package/dist/outline/viewAsImage.js +0 -14
- package/dist/outline/viewAsMbox.js +0 -21
- package/dist/pad/padPane.css +0 -40
- package/dist/pad/padPane.js +0 -421
- package/dist/playlist/playlistPane.js +0 -119
- package/dist/profileUtils/ownerProfile.js +0 -84
- package/dist/registerPanes.js +0 -145
- package/dist/schedule/schedulePane.css +0 -294
- package/dist/schedule/schedulePane.js +0 -1022
- package/dist/sharing/sharingPane.js +0 -48
- package/dist/slideshow/slideshowPane.js +0 -79
- package/dist/social/editProfileDetails.js +0 -362
- package/dist/social/socialPane.css +0 -1464
- package/dist/social/socialPane.js +0 -651
- package/dist/social/socialSections.js +0 -393
- package/dist/social/spinner.js +0 -13
- package/dist/social/triage.js +0 -79
- package/dist/solid-panes.js +0 -87502
- package/dist/solid-panes.js.map +0 -1
- package/dist/solid-panes.min.js +0 -3811
- package/dist/solid-panes.min.js.map +0 -1
- package/dist/styles/tabbedtab.css +0 -1066
- package/dist/styles/utilities.css +0 -5
- package/dist/tabbed/tabbedPane.js +0 -59
- package/dist/tableViewPane.js +0 -56
- package/dist/transaction/pane.js +0 -477
- package/dist/transaction/period.js +0 -323
- package/dist/trip/tripPane.js +0 -174
- package/dist/trustedApplications/trustedApplications.dom.js +0 -145
- package/dist/trustedApplications/trustedApplications.utils.js +0 -23
- package/dist/trustedApplications/trustedApplications.view.js +0 -55
- package/dist/ui/pane.js +0 -146
- package/dist/versionInfo.js +0 -41
- package/dist/video/videoPane.js +0 -42
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.outlineIcons = void 0;
|
|
7
|
-
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
8
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
9
|
-
// This is a system of tracking tooltip phrases used by the tabulator outliner
|
|
10
|
-
|
|
11
|
-
const outlineIcons = exports.outlineIcons = {};
|
|
12
|
-
outlineIcons.src = []; // collect the URIs of the icon filterColumns
|
|
13
|
-
outlineIcons.tooltips = []; // look up tool tips from URL
|
|
14
|
-
|
|
15
|
-
/// /////////////////////// Common icons
|
|
16
|
-
|
|
17
|
-
outlineIcons.src.icon_expand = UI.icons.originalIconBase + 'tbl-expand-trans.png';
|
|
18
|
-
outlineIcons.src.icon_more = UI.icons.originalIconBase + 'tbl-more-trans.png'; // looks just like expand, diff semantics
|
|
19
|
-
// Icon.src.icon_expand = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_expand.png';
|
|
20
|
-
outlineIcons.src.icon_collapse = UI.icons.originalIconBase + 'tbl-collapse.png';
|
|
21
|
-
outlineIcons.src.icon_internals = UI.icons.originalIconBase + 'tango/22-emblem-system.png';
|
|
22
|
-
outlineIcons.src.icon_instances = UI.icons.originalIconBase + 'tango/22-folder-open.png';
|
|
23
|
-
outlineIcons.src.icon_foaf = UI.icons.originalIconBase + 'foaf/foafTiny.gif';
|
|
24
|
-
outlineIcons.src.icon_social = UI.icons.originalIconBase + 'social/social.gif';
|
|
25
|
-
outlineIcons.src.icon_mb = UI.icons.originalIconBase + 'microblog/microblog.png';
|
|
26
|
-
outlineIcons.src.icon_shrink = UI.icons.originalIconBase + 'tbl-shrink.png'; // shrink list back up
|
|
27
|
-
outlineIcons.src.icon_rows = UI.icons.originalIconBase + 'tbl-rows.png';
|
|
28
|
-
// Icon.src.Icon.src.icon_columns = 'icons/tbl-columns.png';
|
|
29
|
-
|
|
30
|
-
// Status balls:
|
|
31
|
-
|
|
32
|
-
outlineIcons.src.icon_unrequested = UI.icons.originalIconBase + '16dot-blue.gif';
|
|
33
|
-
// outlineIcons.src.Icon.src.icon_parse = UI.icons.originalIconBase + '18x18-white.gif';
|
|
34
|
-
outlineIcons.src.icon_fetched = UI.icons.originalIconBase + '16dot-green.gif';
|
|
35
|
-
outlineIcons.src.icon_failed = UI.icons.originalIconBase + '16dot-red.gif';
|
|
36
|
-
outlineIcons.src.icon_requested = UI.icons.originalIconBase + '16dot-yellow.gif';
|
|
37
|
-
// Icon.src.icon_maximize = UI.icons.originalIconBase + 'clean/Icon.src.Icon.src.icon_con_max.png';
|
|
38
|
-
|
|
39
|
-
// Panes:
|
|
40
|
-
outlineIcons.src.icon_CVPane = UI.icons.originalIconBase + 'CV.png';
|
|
41
|
-
outlineIcons.src.icon_defaultPane = UI.icons.originalIconBase + 'about.png';
|
|
42
|
-
outlineIcons.src.icon_visit = UI.icons.originalIconBase + 'tango/22-text-x-generic.png';
|
|
43
|
-
outlineIcons.src.icon_dataContents = UI.icons.originalIconBase + 'rdf_flyer.24.gif'; // @@ Bad .. find better
|
|
44
|
-
outlineIcons.src.icon_n3Pane = UI.icons.originalIconBase + 'w3c/n3_smaller.png'; // @@ Bad .. find better
|
|
45
|
-
outlineIcons.src.icon_RDFXMLPane = UI.icons.originalIconBase + '22-text-xml4.png'; // @@ Bad .. find better
|
|
46
|
-
outlineIcons.src.icon_imageContents = UI.icons.originalIconBase + 'tango/22-image-x-generic.png';
|
|
47
|
-
outlineIcons.src.icon_airPane = UI.icons.originalIconBase + '1pt5a.gif';
|
|
48
|
-
outlineIcons.src.icon_LawPane = UI.icons.originalIconBase + 'law.jpg';
|
|
49
|
-
outlineIcons.src.icon_pushbackPane = UI.icons.originalIconBase + 'pb-logo.png';
|
|
50
|
-
|
|
51
|
-
// For photo albums (By albert08@csail.mit.edu)
|
|
52
|
-
outlineIcons.src.icon_photoPane = UI.icons.originalIconBase + 'photo_small.png';
|
|
53
|
-
outlineIcons.src.icon_tagPane = UI.icons.originalIconBase + 'tag_small.png';
|
|
54
|
-
outlineIcons.src.icon_TinyTag = UI.icons.originalIconBase + 'tag_tiny.png';
|
|
55
|
-
outlineIcons.src.icon_photoBegin = UI.icons.originalIconBase + 'photo_begin.png';
|
|
56
|
-
outlineIcons.src.icon_photoNext = UI.icons.originalIconBase + 'photo_next.png';
|
|
57
|
-
outlineIcons.src.icon_photoBack = UI.icons.originalIconBase + 'photo_back.png';
|
|
58
|
-
outlineIcons.src.icon_photoEnd = UI.icons.originalIconBase + 'photo_end.png';
|
|
59
|
-
outlineIcons.src.icon_photoImportPane = UI.icons.originalIconBase + 'flickr_small.png';
|
|
60
|
-
// Icon.src.icon_CloseButton = UI.icons.originalIconBase + 'close_tiny.png';
|
|
61
|
-
// Icon.src.icon_AddButton = UI.icons.originalIconBase + 'addphoto_tiny.png';
|
|
62
|
-
|
|
63
|
-
// For that one we need a document with grid lines. Make data-x-generix maybe
|
|
64
|
-
|
|
65
|
-
// actions for sources;
|
|
66
|
-
outlineIcons.src.icon_retract = UI.icons.originalIconBase + 'retract.gif';
|
|
67
|
-
outlineIcons.src.icon_refresh = UI.icons.originalIconBase + 'refresh.gif';
|
|
68
|
-
outlineIcons.src.icon_optoff = UI.icons.originalIconBase + 'optional_off.PNG';
|
|
69
|
-
outlineIcons.src.icon_opton = UI.icons.originalIconBase + 'optional_on.PNG';
|
|
70
|
-
outlineIcons.src.icon_map = UI.icons.originalIconBase + 'compassrose.png';
|
|
71
|
-
outlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested;
|
|
72
|
-
outlineIcons.src.icon_retracted = outlineIcons.src.icon_unrequested;
|
|
73
|
-
outlineIcons.src.icon_time = UI.icons.originalIconBase + 'icons/Wclocksmall.png';
|
|
74
|
-
|
|
75
|
-
// Within outline mode:
|
|
76
|
-
|
|
77
|
-
outlineIcons.src.icon_telephone = UI.icons.originalIconBase + 'silk/telephone.png';
|
|
78
|
-
outlineIcons.src.icon_time = UI.icons.originalIconBase + 'Wclocksmall.png';
|
|
79
|
-
outlineIcons.src.icon_remove_node = UI.icons.originalIconBase + 'tbl-x-small.png';
|
|
80
|
-
outlineIcons.src.icon_add_triple = UI.icons.originalIconBase + 'tango/22-list-add.png';
|
|
81
|
-
outlineIcons.src.icon_add_new_triple = UI.icons.originalIconBase + 'tango/22-list-add-new.png';
|
|
82
|
-
outlineIcons.src.icon_show_choices = UI.icons.originalIconBase + 'userinput_show_choices_temp.png'; // looks just like collapse, diff smmantics
|
|
83
|
-
|
|
84
|
-
// Inline Justification
|
|
85
|
-
outlineIcons.src.icon_display_reasons = UI.icons.originalIconBase + 'tango/22-help-browser.png';
|
|
86
|
-
outlineIcons.tooltips[outlineIcons.src.icon_display_reasons] = 'Display explanations';
|
|
87
|
-
|
|
88
|
-
// Other tooltips
|
|
89
|
-
outlineIcons.tooltips[outlineIcons.src.icon_add_triple] = 'Add more';
|
|
90
|
-
outlineIcons.tooltips[outlineIcons.src.icon_add_new_triple] = 'Add one';
|
|
91
|
-
outlineIcons.tooltips[outlineIcons.src.icon_remove_node] = 'Remove';
|
|
92
|
-
outlineIcons.tooltips[outlineIcons.src.icon_expand] = 'View details.';
|
|
93
|
-
outlineIcons.tooltips[outlineIcons.src.icon_collapse] = 'Hide details.';
|
|
94
|
-
outlineIcons.tooltips[outlineIcons.src.icon_shrink] = 'Shrink list.';
|
|
95
|
-
outlineIcons.tooltips[outlineIcons.src.icon_internals] = 'Under the hood';
|
|
96
|
-
outlineIcons.tooltips[outlineIcons.src.icon_instances] = 'List';
|
|
97
|
-
outlineIcons.tooltips[outlineIcons.src.icon_foaf] = 'Friends';
|
|
98
|
-
outlineIcons.tooltips[outlineIcons.src.icon_rows] = 'Make a table of data like this';
|
|
99
|
-
// Note the string '[Tt]his resource' can be replaced with an actual URI by the code
|
|
100
|
-
outlineIcons.tooltips[outlineIcons.src.icon_unrequested] = 'Fetch this.';
|
|
101
|
-
outlineIcons.tooltips[outlineIcons.src.icon_fetched] = 'Fetched successfully.';
|
|
102
|
-
outlineIcons.tooltips[outlineIcons.src.icon_failed] = 'Failed to load. Click to retry.';
|
|
103
|
-
outlineIcons.tooltips[outlineIcons.src.icon_requested] = 'This is being fetched. Please wait...';
|
|
104
|
-
outlineIcons.tooltips[outlineIcons.src.icon_visit] = 'View document';
|
|
105
|
-
outlineIcons.tooltips[outlineIcons.src.icon_retract] = 'Remove this source and all its data from tabulator.';
|
|
106
|
-
outlineIcons.tooltips[outlineIcons.src.icon_refresh] = 'Refresh this source and reload its triples.';
|
|
107
|
-
|
|
108
|
-
/// ////////////////////////////// End comon area
|
|
109
|
-
|
|
110
|
-
outlineIcons.OutlinerIcon = function (src, width, alt, tooltip, filter) {
|
|
111
|
-
this.src = src;
|
|
112
|
-
this.alt = alt;
|
|
113
|
-
this.width = width;
|
|
114
|
-
this.tooltip = tooltip;
|
|
115
|
-
this.filter = filter;
|
|
116
|
-
// filter: RDFStatement,('subj'|'pred'|'obj')->boolean, inverse->boolean (whether the statement is an inverse).
|
|
117
|
-
// Filter on whether to show this icon for a term; optional property.
|
|
118
|
-
// If filter is not passed, this icon will never AUTOMATICALLY be shown.
|
|
119
|
-
// You can show it with termWidget.addIcon
|
|
120
|
-
return this;
|
|
121
|
-
};
|
|
122
|
-
outlineIcons.termWidgets = {};
|
|
123
|
-
outlineIcons.termWidgets.optOn = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_opton, 20, 'opt on', 'Make this branch of your query mandatory.');
|
|
124
|
-
outlineIcons.termWidgets.optOff = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_optoff, 20, 'opt off', 'Make this branch of your query optional.');
|
|
125
|
-
outlineIcons.termWidgets.addTri = new outlineIcons.OutlinerIcon(outlineIcons.src.icon_add_triple, 18, 'add tri', 'Add one');
|
|
126
|
-
// Ideally: "New "+label(subject)
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.propertyViews = propertyViews;
|
|
7
|
-
exports.viewsAddPropertyView = viewsAddPropertyView;
|
|
8
|
-
var _solidUi = require("solid-ui");
|
|
9
|
-
var _viewAsImage = _interopRequireDefault(require("./viewAsImage"));
|
|
10
|
-
var _viewAsMbox = _interopRequireDefault(require("./viewAsMbox"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
/** some builtin simple views **/
|
|
13
|
-
|
|
14
|
-
function propertyViews(dom) {
|
|
15
|
-
// view that applies to items that are objects of certain properties.
|
|
16
|
-
const views = {
|
|
17
|
-
properties: [],
|
|
18
|
-
defaults: [],
|
|
19
|
-
classes: []
|
|
20
|
-
}; // views
|
|
21
|
-
|
|
22
|
-
const asImage = (0, _viewAsImage.default)(dom);
|
|
23
|
-
const asMbox = (0, _viewAsMbox.default)(dom);
|
|
24
|
-
viewsAddPropertyView(views, _solidUi.ns.foaf('depiction').uri, asImage, true);
|
|
25
|
-
viewsAddPropertyView(views, _solidUi.ns.foaf('img').uri, asImage, true);
|
|
26
|
-
viewsAddPropertyView(views, _solidUi.ns.foaf('thumbnail').uri, asImage, true);
|
|
27
|
-
viewsAddPropertyView(views, _solidUi.ns.foaf('logo').uri, asImage, true);
|
|
28
|
-
viewsAddPropertyView(views, _solidUi.ns.schema('image').uri, asImage, true);
|
|
29
|
-
viewsAddPropertyView(views, _solidUi.ns.foaf('mbox').uri, asMbox, true);
|
|
30
|
-
return views;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** add a property view function **/
|
|
34
|
-
function viewsAddPropertyView(views, property, pviewfunc, isDefault) {
|
|
35
|
-
if (!views.properties[property]) {
|
|
36
|
-
views.properties[property] = [];
|
|
37
|
-
}
|
|
38
|
-
views.properties[property].push(pviewfunc);
|
|
39
|
-
if (isDefault) {
|
|
40
|
-
// will override an existing default!
|
|
41
|
-
views.defaults[property] = pviewfunc;
|
|
42
|
-
}
|
|
43
|
-
} // viewsAddPropertyView
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.QuerySource = QuerySource;
|
|
7
|
-
exports.makeQueryRow = makeQueryRow;
|
|
8
|
-
exports.viewAndSaveQuery = viewAndSaveQuery;
|
|
9
|
-
var _solidLogic = require("solid-logic");
|
|
10
|
-
var UI = _interopRequireWildcard(require("solid-ui"));
|
|
11
|
-
var $rdf = _interopRequireWildcard(require("rdflib"));
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
/* istanbul ignore file */
|
|
14
|
-
// The query-by-example functionality in the tabulator
|
|
15
|
-
// was the ability to expore a bit of the web in outline mode,
|
|
16
|
-
// select a ceratain set of fields in the tree,
|
|
17
|
-
// then pres "find all" which would then generte a SPARQL query
|
|
18
|
-
// to find all other places which had the same pattern.
|
|
19
|
-
// Fields could be optional by pressing th ewhite optoional button
|
|
20
|
-
|
|
21
|
-
const optionalSubqueriesIndex = [];
|
|
22
|
-
function predParentOf(node) {
|
|
23
|
-
let n = node;
|
|
24
|
-
while (true) {
|
|
25
|
-
if (n.getAttribute('predTR')) {
|
|
26
|
-
return n;
|
|
27
|
-
} else if (n.previousSibling && n.previousSibling.nodeName === 'TR') {
|
|
28
|
-
n = n.previousSibling;
|
|
29
|
-
} else {
|
|
30
|
-
console.log('Could not find predParent');
|
|
31
|
-
return node;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function makeQueryRow(q, tr, constraint) {
|
|
36
|
-
// predtr = predParentOf(tr)
|
|
37
|
-
// var nodes = tr.childNodes
|
|
38
|
-
// var n = tr.childNodes.length
|
|
39
|
-
const inverse = tr.AJAR_inverse;
|
|
40
|
-
// var hasVar = 0
|
|
41
|
-
let parentVar, level, pat;
|
|
42
|
-
function makeRDFStatement(freeVar, parent) {
|
|
43
|
-
if (inverse) {
|
|
44
|
-
return new $rdf.Statement(freeVar, st.predicate, parent);
|
|
45
|
-
} else {
|
|
46
|
-
return new $rdf.Statement(parent, st.predicate, freeVar);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
let optionalSubqueryIndex = null;
|
|
50
|
-
for (level = tr.parentNode; level; level = level.parentNode) {
|
|
51
|
-
if (typeof level.AJAR_statement !== 'undefined') {
|
|
52
|
-
// level.AJAR_statement
|
|
53
|
-
level.setAttribute('bla', level.AJAR_statement); // @@? -timbl
|
|
54
|
-
// UI.log.debug("Parent TR statement="+level.AJAR_statement + ", var=" + level.AJAR_variable)
|
|
55
|
-
/* for(let c=0;c<level.parentNode.childNodes.length;c++) //This makes sure the same variable is used for a subject
|
|
56
|
-
if(level.parentNode.childNodes[c].AJAR_variable)
|
|
57
|
-
level.AJAR_variable = level.parentNode.childNodes[c].AJAR_variable; */
|
|
58
|
-
if (!level.AJAR_variable) {
|
|
59
|
-
makeQueryRow(q, level);
|
|
60
|
-
}
|
|
61
|
-
parentVar = level.AJAR_variable;
|
|
62
|
-
const predLevel = predParentOf(level);
|
|
63
|
-
if (predLevel.getAttribute('optionalSubqueriesIndex')) {
|
|
64
|
-
optionalSubqueryIndex = predLevel.getAttribute('optionalSubqueriesIndex');
|
|
65
|
-
pat = optionalSubqueriesIndex[optionalSubqueryIndex];
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
if (!pat) {
|
|
71
|
-
pat = q.pat;
|
|
72
|
-
}
|
|
73
|
-
const predtr = predParentOf(tr);
|
|
74
|
-
// /////OPTIONAL KLUDGE///////////
|
|
75
|
-
const opt = predtr.getAttribute('optional');
|
|
76
|
-
if (!opt) {
|
|
77
|
-
if (optionalSubqueryIndex) {
|
|
78
|
-
predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueryIndex);
|
|
79
|
-
} else {
|
|
80
|
-
predtr.removeAttribute('optionalSubqueriesIndex');
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (opt) {
|
|
84
|
-
const optForm = _solidLogic.store.formula();
|
|
85
|
-
optionalSubqueriesIndex.push(optForm);
|
|
86
|
-
predtr.setAttribute('optionalSubqueriesIndex', optionalSubqueriesIndex.length - 1);
|
|
87
|
-
pat.optional.push(optForm);
|
|
88
|
-
pat = optForm;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// //////////////////////////////
|
|
92
|
-
|
|
93
|
-
const st = tr.AJAR_statement;
|
|
94
|
-
const constraintVar = tr.AJAR_inverse ? st.subject : st.object; // this is only used for constraints
|
|
95
|
-
let hasParent = true;
|
|
96
|
-
if (constraintVar.isBlank && constraint) {
|
|
97
|
-
window.alert('You cannot constrain a query with a blank node. No constraint will be added.');
|
|
98
|
-
}
|
|
99
|
-
if (!parentVar) {
|
|
100
|
-
hasParent = false;
|
|
101
|
-
parentVar = inverse ? st.object : st.subject; // if there is no parents, uses the sub/obj
|
|
102
|
-
}
|
|
103
|
-
// UI.log.debug('Initial variable: '+tr.AJAR_variable)
|
|
104
|
-
const v = tr.AJAR_variable ? tr.AJAR_variable : _solidLogic.store.variable(UI.utils.newVariableName());
|
|
105
|
-
q.vars.push(v);
|
|
106
|
-
v.label = hasParent ? parentVar.label : UI.utils.label(parentVar);
|
|
107
|
-
v.label += ' ' + UI.utils.predicateLabelForXML(st.predicate, inverse);
|
|
108
|
-
const pattern = makeRDFStatement(v, parentVar);
|
|
109
|
-
// alert(pattern)
|
|
110
|
-
v.label = v.label.slice(0, 1).toUpperCase() + v.label.slice(1); // init cap
|
|
111
|
-
|
|
112
|
-
// See ../rdf/sparql.js
|
|
113
|
-
// This should only work on literals but doesn't.
|
|
114
|
-
function ConstraintEqualTo(value) {
|
|
115
|
-
this.describe = function (varstr) {
|
|
116
|
-
return varstr + ' = ' + value.toNT();
|
|
117
|
-
};
|
|
118
|
-
this.test = function (term) {
|
|
119
|
-
return value.sameTerm(term);
|
|
120
|
-
};
|
|
121
|
-
return this;
|
|
122
|
-
}
|
|
123
|
-
if (constraint) {
|
|
124
|
-
// binds the constrained variable to its selected value
|
|
125
|
-
pat.constraints[v] = new ConstraintEqualTo(constraintVar);
|
|
126
|
-
}
|
|
127
|
-
UI.log.info('Pattern: ' + pattern);
|
|
128
|
-
pattern.tr = tr;
|
|
129
|
-
tr.AJAR_pattern = pattern; // Cross-link UI and query line
|
|
130
|
-
tr.AJAR_variable = v;
|
|
131
|
-
// UI.log.debug('Final variable: '+tr.AJAR_variable)
|
|
132
|
-
UI.log.debug('Query pattern: ' + pattern);
|
|
133
|
-
pat.statements.push(pattern);
|
|
134
|
-
return v;
|
|
135
|
-
} // makeQueryRow
|
|
136
|
-
|
|
137
|
-
function saveQuery(selection, qs) {
|
|
138
|
-
// var qs = outline.qs // @@
|
|
139
|
-
const q = new $rdf.Query();
|
|
140
|
-
const n = selection.length;
|
|
141
|
-
let i, sel, st, tr;
|
|
142
|
-
for (i = 0; i < n; i++) {
|
|
143
|
-
sel = selection[i];
|
|
144
|
-
tr = sel.parentNode;
|
|
145
|
-
st = tr.AJAR_statement;
|
|
146
|
-
UI.log.debug('Statement ' + st);
|
|
147
|
-
if (sel.getAttribute('class').indexOf('pred') >= 0) {
|
|
148
|
-
UI.log.info(' We have a predicate');
|
|
149
|
-
makeQueryRow(q, tr);
|
|
150
|
-
}
|
|
151
|
-
if (sel.getAttribute('class').indexOf('obj') >= 0) {
|
|
152
|
-
UI.log.info(' We have an object');
|
|
153
|
-
makeQueryRow(q, tr, true);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
qs.addQuery(q);
|
|
157
|
-
function resetOutliner(pat) {
|
|
158
|
-
const n = pat.statements.length;
|
|
159
|
-
let pattern, tr;
|
|
160
|
-
for (let i = 0; i < n; i++) {
|
|
161
|
-
pattern = pat.statements[i];
|
|
162
|
-
tr = pattern.tr;
|
|
163
|
-
// UI.log.debug('tr: ' + tr.AJAR_statement);
|
|
164
|
-
if (typeof tr !== 'undefined') {
|
|
165
|
-
tr.AJAR_pattern = null; // TODO: is this == to whats in current version?
|
|
166
|
-
tr.AJAR_variable = null;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
for (const x in pat.optional) {
|
|
170
|
-
resetOutliner(pat.optional[x]);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
resetOutliner(q.pat);
|
|
174
|
-
// NextVariable=0;
|
|
175
|
-
return q;
|
|
176
|
-
} // saveQuery
|
|
177
|
-
|
|
178
|
-
// When the user asks for all list of all matching parts of the data
|
|
179
|
-
//
|
|
180
|
-
function viewAndSaveQuery(outline, selection) {
|
|
181
|
-
const qs = outline.qs;
|
|
182
|
-
UI.log.info('outline.doucment is now ' + outline.document.location);
|
|
183
|
-
const q = saveQuery(selection, qs);
|
|
184
|
-
/*
|
|
185
|
-
if (tabulator.isExtension) {
|
|
186
|
-
// tabulator.drawInBestView(q)
|
|
187
|
-
} else
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
for (let i = 0; i < qs.listeners.length; i++) {
|
|
191
|
-
qs.listeners[i].getActiveView().view.drawQuery(q);
|
|
192
|
-
qs.listeners[i].updateQueryControls(qs.listeners[i].getActiveView());
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* The QuerySource object stores a set of listeners and a set of queries.
|
|
198
|
-
* It keeps the listeners aware of those queries that the source currently
|
|
199
|
-
* contains, and it is then up to the listeners to decide what to do with
|
|
200
|
-
* those queries in terms of displays.
|
|
201
|
-
* Not used 2010-08 -- TimBL
|
|
202
|
-
* @class QuerySource
|
|
203
|
-
* @author jambo
|
|
204
|
-
*/
|
|
205
|
-
|
|
206
|
-
function QuerySource() {
|
|
207
|
-
/**
|
|
208
|
-
* stores all of the queries currently held by this source,
|
|
209
|
-
* indexed by ID number.
|
|
210
|
-
*/
|
|
211
|
-
this.queries = [];
|
|
212
|
-
/**
|
|
213
|
-
* stores the listeners for a query object.
|
|
214
|
-
* @see TabbedContainer
|
|
215
|
-
*/
|
|
216
|
-
this.listeners = [];
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* add a Query object to the query source--It will be given an ID number
|
|
220
|
-
* and a name, if it doesn't already have one. This subsequently adds the
|
|
221
|
-
* query to all of the listeners the QuerySource knows about.
|
|
222
|
-
*/
|
|
223
|
-
this.addQuery = function (q) {
|
|
224
|
-
let i;
|
|
225
|
-
if (q.name === null || q.name === '') {
|
|
226
|
-
q.name = 'Query #' + (this.queries.length + 1);
|
|
227
|
-
}
|
|
228
|
-
q.id = this.queries.length;
|
|
229
|
-
this.queries.push(q);
|
|
230
|
-
for (i = 0; i < this.listeners.length; i++) {
|
|
231
|
-
if (this.listeners[i] !== null) {
|
|
232
|
-
this.listeners[i].addQuery(q);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Remove a Query object from the source. Tells all listeners to also
|
|
239
|
-
* remove the query.
|
|
240
|
-
*/
|
|
241
|
-
this.removeQuery = function (q) {
|
|
242
|
-
let i;
|
|
243
|
-
for (i = 0; i < this.listeners.length; i++) {
|
|
244
|
-
if (this.listeners[i] !== null) {
|
|
245
|
-
this.listeners[i].removeQuery(q);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
if (this.queries[q.id] !== null) {
|
|
249
|
-
delete this.queries[q.id];
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* adds a "Listener" to this QuerySource - that is, an object
|
|
255
|
-
* which is capable of both adding and removing queries.
|
|
256
|
-
* Currently, only the TabbedContainer class is added.
|
|
257
|
-
* also puts all current queries into the listener to be used.
|
|
258
|
-
*/
|
|
259
|
-
this.addListener = function (listener) {
|
|
260
|
-
let i;
|
|
261
|
-
this.listeners.push(listener);
|
|
262
|
-
for (i = 0; i < this.queries.length; i++) {
|
|
263
|
-
if (this.queries[i] !== null) {
|
|
264
|
-
listener.addQuery(this.queries[i]);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* removes listener from the array of listeners, if it exists! Also takes
|
|
270
|
-
* all of the queries from this source out of the listener.
|
|
271
|
-
*/
|
|
272
|
-
this.removeListener = function (listener) {
|
|
273
|
-
let i;
|
|
274
|
-
for (i = 0; i < this.queries.length; i++) {
|
|
275
|
-
if (this.queries[i] !== null) {
|
|
276
|
-
listener.removeQuery(this.queries[i]);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
for (i = 0; i < this.listeners.length; i++) {
|
|
280
|
-
if (this.listeners[i] === listener) {
|
|
281
|
-
delete this.listeners[i];
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
}
|