@sme.up/ketchup 9.6.3 → 9.6.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/cjs/{bar.helpers-f46a5a83.js → bar.helpers-c481a535.js} +45 -13
- package/dist/cjs/{f-button-9a0eba42.js → f-button-23ec3db5.js} +1 -1
- package/dist/cjs/{f-cell-1ad41071.js → f-cell-bcc51c0f.js} +9 -29
- package/dist/cjs/{f-chip-48851b4f.js → f-chip-63363ecf.js} +2 -2
- package/dist/cjs/{f-image-541e5f4d.js → f-image-f3944c01.js} +2 -5
- package/dist/cjs/{f-paginator-utils-8ff2a9b4.js → f-paginator-utils-60e05759.js} +3 -3
- package/dist/cjs/{f-text-field-ac5d6497.js → f-text-field-354b6c78.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +48 -48
- package/dist/cjs/kup-box.cjs.entry.js +8 -8
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +256 -40
- package/dist/cjs/kup-dashboard.cjs.entry.js +5 -5
- package/dist/cjs/{kup-dates-b7d53b4d.js → kup-dates-e22ee32c.js} +21 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-editor.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-gantt_10.cjs.entry.js +105 -39
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +21 -14
- package/dist/cjs/kup-input-panel.cjs.entry.js +444 -0
- package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
- package/dist/cjs/kup-magic-box.cjs.entry.js +6 -6
- package/dist/cjs/{kup-manager-26a9154b.js → kup-manager-e1bfd4f8.js} +656 -121
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-pdf.cjs.entry.js +76600 -0
- package/dist/cjs/kup-photo-frame.cjs.entry.js +4 -4
- package/dist/cjs/{kup-planner-declarations-d3dec885.js → kup-planner-declarations-cb33663d.js} +3 -0
- package/dist/cjs/{kup-planner-renderer-helper-680bbd5a.js → kup-planner-renderer-helper-f001fad7.js} +56 -8
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +44 -11
- package/dist/cjs/{kup-planner-time-formatter-a74e70f0.js → kup-planner-time-formatter-b7dca3ea.js} +3 -0
- package/dist/cjs/kup-planner.cjs.entry.js +81 -9
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/image-list.js +332 -2
- package/dist/collection/assets/index.js +8 -0
- package/dist/collection/assets/input-panel.js +480 -0
- package/dist/collection/assets/pdf.js +15 -0
- package/dist/collection/assets/planner-example-5.js +19 -7
- package/dist/collection/assets/planner-example-6.js +3 -0
- package/dist/collection/assets/planner.js +4 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/kup-badge/kup-badge.css +4 -4
- package/dist/collection/components/kup-image-list/kup-image-list.css +37 -4
- package/dist/collection/components/kup-image-list/kup-image-list.js +15 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +8 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +169 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.e2e.js +346 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +669 -0
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-list/kup-list.js +1 -1
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf-declarations.js +8 -0
- package/dist/collection/components/kup-pdf/kup-pdf.css +169 -0
- package/dist/collection/components/kup-pdf/kup-pdf.js +262 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +3 -0
- package/dist/collection/components/kup-planner/kup-planner-helper.js +42 -1
- package/dist/collection/components/kup-planner/kup-planner.js +191 -5
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +103 -11
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +80 -2
- package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +41 -13
- package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +3 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +10 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +61 -6
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +32 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +208 -24
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +4 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +131 -7
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +55 -6
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +40 -7
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +22 -15
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +21 -5
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +19 -3
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +76 -2
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +5 -24
- package/dist/collection/f-components/f-image/f-image.js +2 -5
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +7 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/components/_commonjsHelpers.js +26 -0
- package/dist/components/custom-task-list-header.js +2 -2
- package/dist/components/custom-task-list-table.js +58 -13
- package/dist/components/kup-autocomplete2.js +48 -70
- package/dist/components/kup-box2.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-dates.js +2 -6
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-gantt-calendar2.js +31 -1
- package/dist/components/kup-gantt2.js +26 -7
- package/dist/components/kup-grid-renderer2.js +219 -81
- package/dist/components/kup-grid2.js +1 -1
- package/dist/components/kup-horizontal-scroll2.js +48 -10
- package/dist/components/kup-iframe.js +1 -1
- package/dist/components/kup-image-list.js +15 -8
- package/dist/components/kup-input-panel.d.ts +11 -0
- package/dist/components/kup-input-panel.js +595 -0
- package/dist/components/kup-lazy.js +11 -11
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-manager.js +658 -122
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-pdf.d.ts +11 -0
- package/dist/components/kup-pdf.js +76756 -0
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner-declarations.js +91 -0
- package/dist/components/kup-planner-renderer2.js +42 -9
- package/dist/components/kup-planner.js +86 -6
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +19 -7
- package/dist/components/kup-task-gantt2.js +6 -4
- package/dist/components/kup-task-list-header2.js +7 -7
- package/dist/components/kup-task-list-table2.js +1 -1
- package/dist/components/kup-task-list2.js +434 -84
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/components/other.helpers.js +47 -0
- package/dist/esm/{bar.helpers-0898efb9.js → bar.helpers-23a51579.js} +45 -14
- package/dist/esm/{f-button-45d690a5.js → f-button-d6dbcfd6.js} +1 -1
- package/dist/esm/{f-cell-63db06db.js → f-cell-7b41415c.js} +9 -29
- package/dist/esm/{f-chip-f1ab6c5e.js → f-chip-68d27d7a.js} +2 -2
- package/dist/esm/{f-image-8b382cc5.js → f-image-a67229e5.js} +2 -5
- package/dist/esm/{f-paginator-utils-ae563cd5.js → f-paginator-utils-8773e358.js} +3 -3
- package/dist/esm/{f-text-field-b5fcb598.js → f-text-field-d364ffd2.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +48 -48
- package/dist/esm/kup-box.entry.js +8 -8
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-card-list.entry.js +2 -2
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-custom-task-list-header_4.entry.js +256 -40
- package/dist/esm/kup-dashboard.entry.js +5 -5
- package/dist/esm/{kup-dates-4ad48be7.js → kup-dates-26a56bf7.js} +20 -1
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-editor.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-gantt_10.entry.js +106 -40
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +21 -14
- package/dist/esm/kup-input-panel.entry.js +440 -0
- package/dist/esm/kup-lazy.entry.js +13 -13
- package/dist/esm/kup-magic-box.entry.js +6 -6
- package/dist/esm/{kup-manager-cdb4f21a.js → kup-manager-a316a70e.js} +656 -121
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-pdf.entry.js +76596 -0
- package/dist/esm/kup-photo-frame.entry.js +4 -4
- package/dist/esm/{kup-planner-declarations-b9345758.js → kup-planner-declarations-398babf9.js} +3 -0
- package/dist/esm/{kup-planner-renderer-helper-da0518be.js → kup-planner-renderer-helper-a2ec9a1c.js} +57 -8
- package/dist/esm/kup-planner-renderer.entry.js +44 -11
- package/dist/esm/{kup-planner-time-formatter-a68e05ba.js → kup-planner-time-formatter-ddf84f9b.js} +1 -1
- package/dist/esm/kup-planner.entry.js +81 -9
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +5 -5
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-008bdcdc.js +1 -0
- package/dist/ketchup/p-042e874a.entry.js +1 -0
- package/dist/ketchup/{p-837bd0a6.entry.js → p-074ccd53.entry.js} +1 -1
- package/dist/ketchup/{p-41e8402e.entry.js → p-1088ab22.entry.js} +1 -1
- package/dist/ketchup/{p-d9284d98.entry.js → p-1bcac01f.entry.js} +1 -1
- package/dist/ketchup/{p-e0a1fbe7.entry.js → p-1e028d95.entry.js} +1 -1
- package/dist/ketchup/p-25058baa.js +1 -0
- package/dist/ketchup/{p-cbe42afd.entry.js → p-2932e7e8.entry.js} +1 -1
- package/dist/ketchup/{p-1cd48eea.entry.js → p-2b84db7b.entry.js} +1 -1
- package/dist/ketchup/{p-d608f866.entry.js → p-2ef90f60.entry.js} +1 -1
- package/dist/ketchup/{p-bedabdb5.js → p-339bbeae.js} +1 -1
- package/dist/ketchup/{p-157f0e89.entry.js → p-48e45ac0.entry.js} +1 -1
- package/dist/ketchup/p-53af4c87.js +1 -0
- package/dist/ketchup/{p-4dfc5927.entry.js → p-556f7ddc.entry.js} +1 -1
- package/dist/ketchup/{p-cc7352a8.entry.js → p-5f7d8c21.entry.js} +1 -1
- package/dist/ketchup/{p-e0c10de2.entry.js → p-6362738c.entry.js} +1 -1
- package/dist/ketchup/{p-ad6a3c2a.entry.js → p-65e363c6.entry.js} +1 -1
- package/dist/ketchup/p-6921bc81.entry.js +16 -0
- package/dist/ketchup/p-6961e0ce.entry.js +1 -0
- package/dist/ketchup/p-7123d2a4.entry.js +1 -0
- package/dist/ketchup/{p-a5074ce4.js → p-801776bc.js} +1 -1
- package/dist/ketchup/{p-ca8a1f53.entry.js → p-81645576.entry.js} +1 -1
- package/dist/ketchup/p-838dea62.js +1 -0
- package/dist/ketchup/{p-924b841b.js → p-84b511e1.js} +1 -1
- package/dist/ketchup/{p-9a856951.js → p-8d4050ec.js} +4 -4
- package/dist/ketchup/{p-1474852d.entry.js → p-9e2533e1.entry.js} +1 -1
- package/dist/ketchup/{p-c6b34763.entry.js → p-a06974a3.entry.js} +1 -1
- package/dist/ketchup/p-a6beb822.js +1 -0
- package/dist/ketchup/p-abe181d0.entry.js +1 -0
- package/dist/ketchup/{p-ba0f28b7.js → p-b3540f83.js} +1 -1
- package/dist/ketchup/{p-b6a21b6a.entry.js → p-c702eb45.entry.js} +1 -1
- package/dist/ketchup/{p-090e5097.entry.js → p-ccb6dbb0.entry.js} +1 -1
- package/dist/ketchup/{p-d839ce21.entry.js → p-cf44485a.entry.js} +2 -2
- package/dist/ketchup/p-d2001dec.entry.js +44 -0
- package/dist/ketchup/{p-e508b2fd.entry.js → p-dbb6cd8d.entry.js} +1 -1
- package/dist/ketchup/p-eb8ea3a6.js +1 -0
- package/dist/ketchup/{p-590c34bc.js → p-f6c8f006.js} +1 -1
- package/dist/ketchup/{p-4c100286.entry.js → p-f79ffe77.entry.js} +1 -1
- package/dist/ketchup/{p-31c0cfc0.entry.js → p-fdcfaedd.entry.js} +1 -1
- package/dist/ketchup/p-fe75ede2.entry.js +1 -0
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +81 -0
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +67 -0
- package/dist/types/components/kup-pdf/kup-pdf-declarations.d.ts +7 -0
- package/dist/types/components/kup-pdf/kup-pdf.d.ts +42 -0
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +29 -2
- package/dist/types/components/kup-planner/kup-planner-helper.d.ts +2 -1
- package/dist/types/components/kup-planner/kup-planner.d.ts +38 -0
- package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +1 -1
- package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +6 -0
- package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +13 -1
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +6 -2
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +3 -1
- package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +1 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +4 -0
- package/dist/types/components.d.ts +266 -2
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/package.json +2 -1
- package/dist/components/kup-planner-renderer-helper.js +0 -379
- package/dist/ketchup/p-21351b19.entry.js +0 -1
- package/dist/ketchup/p-2b40d9b9.entry.js +0 -1
- package/dist/ketchup/p-5c79cb74.js +0 -1
- package/dist/ketchup/p-670354ef.entry.js +0 -1
- package/dist/ketchup/p-8e3b6de8.js +0 -1
- package/dist/ketchup/p-935f58fc.js +0 -1
- package/dist/ketchup/p-9852b1e9.js +0 -1
- package/dist/ketchup/p-ca42a421.entry.js +0 -16
- package/dist/ketchup/p-d50515f7.js +0 -1
- package/dist/ketchup/p-e841c2ae.js +0 -1
- package/dist/ketchup/p-ec4050e1.entry.js +0 -1
|
@@ -108,39 +108,39 @@ export class KupLazy {
|
|
|
108
108
|
switch (this.componentName) {
|
|
109
109
|
case 'kup-button':
|
|
110
110
|
//call_to_action.svg
|
|
111
|
-
resource = (h("svg", { key: '
|
|
111
|
+
resource = (h("svg", { key: 'bca5daf712b40d11abe4f3b1856385844642acf1', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'ab212455b45b78bf981309de350b4b3619a288e9', d: "M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z" })));
|
|
112
112
|
break;
|
|
113
113
|
case 'kup-card':
|
|
114
114
|
//art_track.svg
|
|
115
|
-
resource = (h("svg", { key: '
|
|
115
|
+
resource = (h("svg", { key: '1e266ffe7b2568dc6caa45592e86b73c7683cc16', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '14a4eb6f9c5b6772cd26ec29aef7b470e0fe6574', d: "M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z" })));
|
|
116
116
|
break;
|
|
117
117
|
case 'kup-checkbox':
|
|
118
118
|
//check_box_outline_blank.svg
|
|
119
|
-
resource = (h("svg", { key: '
|
|
119
|
+
resource = (h("svg", { key: 'd553613ffa5ee60014a4e89cf8e62ace3384f3a4', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'bf5a69068bc1f2142a0d4b451cf3cdceb16d7963', d: "M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z" })));
|
|
120
120
|
break;
|
|
121
121
|
case 'kup-chart':
|
|
122
122
|
//chart-bar.svg
|
|
123
|
-
resource = (h("svg", { key: '
|
|
123
|
+
resource = (h("svg", { key: '51f3129e31571f6e7a8faf293a6f3e35ba7524e0', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '19085e9d52b14637127c1bafdb37beb5349d2300', d: "M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z" })));
|
|
124
124
|
break;
|
|
125
125
|
case 'kup-data-table':
|
|
126
126
|
//table-large.svg
|
|
127
|
-
resource = (h("svg", { key: '
|
|
127
|
+
resource = (h("svg", { key: 'f7f187befb900356e7e589b3d169adff21791e35', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '4a53ed7568274a78be593b5ce8cd412747313725', d: "M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z" })));
|
|
128
128
|
break;
|
|
129
129
|
case 'kup-image':
|
|
130
130
|
//photo.svg
|
|
131
|
-
resource = (h("svg", { key: '
|
|
131
|
+
resource = (h("svg", { key: '587c27f674e8c3f153c9ed047ed605301a477621', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'e76e9b0410e3375d8d981396fdacc2f2c44dadf1', d: "M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z" })));
|
|
132
132
|
break;
|
|
133
133
|
case 'kup-progress-bar':
|
|
134
134
|
//linear_scale.svg
|
|
135
|
-
resource = (h("svg", { key: '
|
|
135
|
+
resource = (h("svg", { key: 'c7e82a2c18827a874acd6b8fe2dbcb4009ab3807', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '291ca07cfeced3bbbc92cb5ae7ac69375b640e22', d: "M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z" })));
|
|
136
136
|
break;
|
|
137
137
|
case 'kup-radio':
|
|
138
138
|
//radio_button_unchecked.svg
|
|
139
|
-
resource = (h("svg", { key: '
|
|
139
|
+
resource = (h("svg", { key: 'd2f81e158dc86c4ef74ad7628ac376f7e0eacbe2', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'fc4ec71ff460760866b3ad99db0d8cb9b8e3cd3b', d: "M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z" })));
|
|
140
140
|
break;
|
|
141
141
|
default:
|
|
142
142
|
//art_track.svg
|
|
143
|
-
resource = (h("svg", { key: '
|
|
143
|
+
resource = (h("svg", { key: '8da82bcc100ef628d5f4bab0a8d28c06841270ca', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'f95db9cad4ee1973048e1a121cf84a8b0ecbce99', d: "M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z" })));
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
146
|
if ((this.renderMode === KupLazyRender.VIEWPORT && this.isInViewport) ||
|
|
@@ -149,14 +149,14 @@ export class KupLazy {
|
|
|
149
149
|
this.data &&
|
|
150
150
|
this.isInViewport)) {
|
|
151
151
|
let Tag = this.componentName;
|
|
152
|
-
content = (h(Tag, Object.assign({ key: '
|
|
152
|
+
content = (h(Tag, Object.assign({ key: 'af0853700b7bbfdcfd01f500fe303816264b387f' }, this.data, { ref: (el) => (this.lazyComponent = el) })));
|
|
153
153
|
className += ' kup-loaded';
|
|
154
154
|
}
|
|
155
155
|
else if (this.showPlaceholder) {
|
|
156
156
|
content = resource;
|
|
157
157
|
className += ' kup-to-be-loaded';
|
|
158
158
|
}
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '66562d25373ef498b4b82bc654752c894051ce6b', class: className }, h("style", { key: '7b314d53110ba9310ee1717f3b026da85e95e04d' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '4e72e07e2acb78b1db0e0a69c8a3424ff14731ff', id: componentWrapperId }, content)));
|
|
160
160
|
}
|
|
161
161
|
disconnectedCallback() {
|
|
162
162
|
var _a;
|
|
@@ -243,7 +243,7 @@ export class KupList {
|
|
|
243
243
|
}
|
|
244
244
|
__classPrivateFieldSet(this, _KupList_radios, [], "f");
|
|
245
245
|
let index = 0;
|
|
246
|
-
return (h(Host, { key: '
|
|
246
|
+
return (h(Host, { key: '3181209e4896fb9f83feff44ad341bc1b4cd3e7c' }, h("style", { key: '360f38ea751b8b6e969629936967db8fa36efa20' }, __classPrivateFieldGet(this, _KupList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'c66d2c82e8ce58320e9d2413825463234b206a02', id: "kup-component", class: wrapperClass }, h("ul", { key: '009e5afdbd9bd5b0ec63a1fdcb814a05a171946b', class: componentClass, role: roleAttr, "aria-multiselectable": ariaMultiSelectable }, this.data
|
|
247
247
|
.filter((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_itemCompliant).call(this, item))
|
|
248
248
|
.map((item) => __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_renderListItem).call(this, item, index++))))));
|
|
249
249
|
}
|
|
@@ -263,11 +263,11 @@ export class KupMagicBox {
|
|
|
263
263
|
this.kupManager.debug.logRender(this, true);
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
|
-
return (h(Host, { key: '
|
|
266
|
+
return (h(Host, { key: '212f73b08fa30db6822a33f61dd8d10fe5e0ae5c' }, h("style", { key: 'bd8dfa094092c2b010867f98d595320d59e120e8' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '29d97585aa1a3d0c8680912289153337c2c2a23c', id: componentWrapperId }, h("div", { key: 'fc73991d493f68a37690b4b9d8dbc45ff15e9c1a', class: "magic-box-wrapper" }, h("div", { key: '7f27dcf3a8916ea1007a263cff3a1b835ce39612', class: "actions", id: "drag-handle" }, h("kup-combobox", Object.assign({ key: '2f7303dd205ad6411c73e5ec5809632b12d134ca' }, this.comboboxProps())), h("kup-button", { key: 'ef696124673192ca35f7b71138f061c6e09a3f70', styling: FButtonStyling.FLAT, icon: "delete", label: "Reset", "onkup-button-click": () => {
|
|
267
267
|
this.data = null;
|
|
268
|
-
} }), h("kup-button", { key: '
|
|
268
|
+
} }), h("kup-button", { key: '09d63727c8500844e614606d5417f350cb2aebed', id: "close-dialog", customStyle: `:host{${KupThemeColorValues.PRIMARY}: var(${KupThemeColorValues.TITLE});}`, icon: "clear", "onkup-button-click": () => {
|
|
269
269
|
this.kupManager.hideMagicBox();
|
|
270
|
-
} })), h("div", { key: '
|
|
270
|
+
} })), h("div", { key: 'aaa1d0f9e81041dfa3669bcb1222b937760c49aa', class: "content", ref: (el) => (this.wrapperRef = el) }, this.setContent())))));
|
|
271
271
|
}
|
|
272
272
|
disconnectedCallback() {
|
|
273
273
|
this.kupManager.interact.unregister([
|
|
@@ -98,7 +98,7 @@ export class KupNavBar {
|
|
|
98
98
|
this.kupManager.debug.logRender(this, true);
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: 'c0ee317aa4f4c5d7eea17e92073c2382dfed6f38', class: "header" }, h("style", { key: '48b3dec462796c406f3c492f402cd18090b780c4' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '6a4822ca6723bf9f7145db93dffe88f7781cccb3', id: componentWrapperId }, h("header", { key: '178148cbe743a0c4d9b4e41b26519f2ebb89c776', class: `${navbarClass} ${navbarClass}--${this.styling.toLowerCase()} ` }, h("div", { key: '5ee2f06ac2e4518cf6c993e0e9b09b9cf77e66ff', class: `${navbarClass}__row` }, this.content())))));
|
|
102
102
|
}
|
|
103
103
|
disconnectedCallback() {
|
|
104
104
|
this.kupManager.language.unregister(this);
|
|
@@ -331,7 +331,7 @@ export class KupNumericPicker {
|
|
|
331
331
|
this.kupManager.debug.logRender(this, true);
|
|
332
332
|
}
|
|
333
333
|
render() {
|
|
334
|
-
return (h(Host, { key: '
|
|
334
|
+
return (h(Host, { key: '83c844a686d9a82576b8ccbbdaaf0ce61190fad4' }, h("style", { key: '9f8e8eeeeb0db1f67cdd03e0815aa3cc0126f7b0' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '787aee96d5550a9bdb98d3d746142967456645f4', id: componentWrapperId }, this.prepTextfield())));
|
|
335
335
|
}
|
|
336
336
|
disconnectedCallback() {
|
|
337
337
|
this.kupManager.dates.unregister(this);
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
.kup-body-compact-01 {
|
|
2
|
+
font-family: var(--kup-font-family);
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 18px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
letter-spacing: 0.16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.kup-body-01 {
|
|
10
|
+
font-family: var(--kup-font-family);
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
letter-spacing: 0.16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kup-code-01 {
|
|
18
|
+
font-family: var(--kup-font-family-monospace);
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
line-height: 16px;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
letter-spacing: 0.32px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.kup-label-01 {
|
|
26
|
+
font-family: var(--kup-font-family);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
line-height: 16px;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
letter-spacing: 0.32px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kup-caption-02 {
|
|
34
|
+
font-family: var(--kup-font-family);
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
line-height: 15px;
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
letter-spacing: 1px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.kup-caption-01 {
|
|
42
|
+
font-family: var(--kup-font-family);
|
|
43
|
+
font-size: 10px;
|
|
44
|
+
line-height: 13px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
letter-spacing: 1px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.kup-small-label-01 {
|
|
50
|
+
font-family: var(--kup-font-family);
|
|
51
|
+
font-size: 6px;
|
|
52
|
+
line-height: 9px;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
letter-spacing: 1px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.kup-heading-compact-01 {
|
|
58
|
+
font-family: var(--kup-font-family);
|
|
59
|
+
font-size: 14px;
|
|
60
|
+
line-height: 18px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
letter-spacing: 0.16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kup-heading-01 {
|
|
66
|
+
font-family: var(--kup-font-family);
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
letter-spacing: 0.16px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kup-heading-02 {
|
|
74
|
+
font-family: var(--kup-font-family);
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
line-height: 24px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
letter-spacing: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.kup-heading-03 {
|
|
82
|
+
font-family: var(--kup-font-family);
|
|
83
|
+
font-size: 20px;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
letter-spacing: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.kup-heading-04 {
|
|
90
|
+
font-family: var(--kup-font-family);
|
|
91
|
+
font-size: 28px;
|
|
92
|
+
line-height: 36px;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
letter-spacing: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kup-heading-05 {
|
|
98
|
+
font-family: var(--kup-font-family);
|
|
99
|
+
font-size: 32px;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
font-weight: 300;
|
|
102
|
+
letter-spacing: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.kup-heading-06 {
|
|
106
|
+
font-family: var(--kup-font-family);
|
|
107
|
+
font-size: 42px;
|
|
108
|
+
line-height: 50px;
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
letter-spacing: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.kup-heading-07 {
|
|
114
|
+
font-family: var(--kup-font-family);
|
|
115
|
+
font-size: 54px;
|
|
116
|
+
line-height: 64px;
|
|
117
|
+
font-weight: 300;
|
|
118
|
+
letter-spacing: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kup-heading-08 {
|
|
122
|
+
font-family: var(--kup-font-family);
|
|
123
|
+
font-size: 54px;
|
|
124
|
+
line-height: 64px;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
letter-spacing: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @prop --kup-pdf-height: Sets a custom height for the component.
|
|
131
|
+
* @prop --kup-pdf-width: Sets a custom width for the component.
|
|
132
|
+
*/
|
|
133
|
+
:host {
|
|
134
|
+
--kup_pdf_height: var(--kup-pdf-height, 100%);
|
|
135
|
+
--kup_pdf_width: var(--kup-pdf-width, 100%);
|
|
136
|
+
height: var(--kup_pdf_height);
|
|
137
|
+
width: var(--kup_pdf_width);
|
|
138
|
+
display: block;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
#kup-component {
|
|
142
|
+
height: var(--kup_pdf_height);
|
|
143
|
+
width: var(--kup_pdf_width);
|
|
144
|
+
overflow: auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
#kup-component::-webkit-scrollbar {
|
|
148
|
+
width: 1.1rem;
|
|
149
|
+
height: 1.1rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#kup-component::-webkit-scrollbar-corner {
|
|
153
|
+
background: transparent;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
#kup-component::-webkit-scrollbar-thumb {
|
|
157
|
+
border: 6px solid transparent;
|
|
158
|
+
background: rgba(0, 0, 0, 0.2);
|
|
159
|
+
background: var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));
|
|
160
|
+
border-radius: 10px;
|
|
161
|
+
background-clip: padding-box;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
#kup-component::-webkit-scrollbar-thumb:hover {
|
|
165
|
+
border: 4px solid transparent;
|
|
166
|
+
background: rgba(0, 0, 0, 0.3);
|
|
167
|
+
background: var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));
|
|
168
|
+
background-clip: padding-box;
|
|
169
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var _KupPdf_kupManager;
|
|
9
|
+
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
10
|
+
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
11
|
+
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
12
|
+
import { getProps, setProps } from "../../utils/utils";
|
|
13
|
+
import { KupPdfProps } from "./kup-pdf-declarations";
|
|
14
|
+
import * as pdfjsLib from "pdfjs-dist";
|
|
15
|
+
import * as pdfjsWorker from "pdfjs-dist/build/pdf.worker.js";
|
|
16
|
+
export class KupPdf {
|
|
17
|
+
constructor() {
|
|
18
|
+
/*-------------------------------------------------*/
|
|
19
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
20
|
+
/*-------------------------------------------------*/
|
|
21
|
+
_KupPdf_kupManager.set(this, kupManagerInstance());
|
|
22
|
+
this.pdfPath = undefined;
|
|
23
|
+
}
|
|
24
|
+
/*-------------------------------------------------*/
|
|
25
|
+
/* W a t c h e r s */
|
|
26
|
+
/*-------------------------------------------------*/
|
|
27
|
+
onPdfPathChange() {
|
|
28
|
+
this.wrapperRef.innerHTML = '';
|
|
29
|
+
this.renderPdf();
|
|
30
|
+
}
|
|
31
|
+
/*-------------------------------------------------*/
|
|
32
|
+
/* P u b l i c M e t h o d s */
|
|
33
|
+
/*-------------------------------------------------*/
|
|
34
|
+
/**
|
|
35
|
+
* Used to retrieve component's props values.
|
|
36
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
37
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
38
|
+
*/
|
|
39
|
+
async getProps(descriptions) {
|
|
40
|
+
return getProps(this, KupPdfProps, descriptions);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* This method is used to trigger a new render of the component.
|
|
44
|
+
*/
|
|
45
|
+
async refresh() {
|
|
46
|
+
forceUpdate(this);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Sets the props to the component.
|
|
50
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
51
|
+
*/
|
|
52
|
+
async setProps(props) {
|
|
53
|
+
setProps(this, KupPdfProps, props);
|
|
54
|
+
}
|
|
55
|
+
/*-------------------------------------------------*/
|
|
56
|
+
/* L i f e c y c l e H o o k s */
|
|
57
|
+
/*-------------------------------------------------*/
|
|
58
|
+
componentWillLoad() {
|
|
59
|
+
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logLoad(this, false);
|
|
60
|
+
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.register(this);
|
|
61
|
+
}
|
|
62
|
+
componentDidLoad() {
|
|
63
|
+
this.kupReady.emit({
|
|
64
|
+
comp: this,
|
|
65
|
+
id: this.rootElement.id,
|
|
66
|
+
});
|
|
67
|
+
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker;
|
|
68
|
+
this.renderPdf().then(() => {
|
|
69
|
+
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logLoad(this, true);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
componentWillRender() {
|
|
73
|
+
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logRender(this, false);
|
|
74
|
+
}
|
|
75
|
+
componentDidRender() {
|
|
76
|
+
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").debug.logRender(this, true);
|
|
77
|
+
}
|
|
78
|
+
async renderPdf() {
|
|
79
|
+
try {
|
|
80
|
+
const loadingPdfTask = pdfjsLib.getDocument({
|
|
81
|
+
url: this.pdfPath,
|
|
82
|
+
withCredentials: true,
|
|
83
|
+
});
|
|
84
|
+
const pdf = await loadingPdfTask.promise;
|
|
85
|
+
const pdfContainer = this.wrapperRef;
|
|
86
|
+
for (let page = 1; page <= pdf.numPages; page++) {
|
|
87
|
+
const canvas = document.createElement('canvas');
|
|
88
|
+
pdfContainer.appendChild(canvas);
|
|
89
|
+
pdf.getPage(page).then(function (page) {
|
|
90
|
+
const requiredScale = 2; // initial scale is set to 2 so the pdf outputs clear, keeping on 1 causes the pdf to be blurry
|
|
91
|
+
const viewport = page.getViewport({ scale: requiredScale });
|
|
92
|
+
// set canvas height/width to upscale the pdf
|
|
93
|
+
canvas.height = requiredScale * viewport.height;
|
|
94
|
+
canvas.width = requiredScale * viewport.width;
|
|
95
|
+
canvas.style.width = '100%';
|
|
96
|
+
page.render({
|
|
97
|
+
canvasContext: canvas.getContext('2d'),
|
|
98
|
+
viewport: viewport,
|
|
99
|
+
transform: [requiredScale, 0, 0, requiredScale, 0, 0],
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch (error) { }
|
|
105
|
+
}
|
|
106
|
+
render() {
|
|
107
|
+
return (h(Host, { key: '51c637e689633b072188148f2a3cb6e1d7d62f00' }, h("div", { key: 'bb98286e27145e4c5f3a836161de335d6a465637', id: componentWrapperId, ref: (el) => (this.wrapperRef = el) })));
|
|
108
|
+
}
|
|
109
|
+
disconnectedCallback() {
|
|
110
|
+
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.unregister(this);
|
|
111
|
+
}
|
|
112
|
+
static get is() { return "kup-pdf"; }
|
|
113
|
+
static get encapsulation() { return "shadow"; }
|
|
114
|
+
static get originalStyleUrls() {
|
|
115
|
+
return {
|
|
116
|
+
"$": ["kup-pdf.scss"]
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
static get styleUrls() {
|
|
120
|
+
return {
|
|
121
|
+
"$": ["kup-pdf.css"]
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
static get properties() {
|
|
125
|
+
return {
|
|
126
|
+
"pdfPath": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"mutable": false,
|
|
129
|
+
"complexType": {
|
|
130
|
+
"original": "string",
|
|
131
|
+
"resolved": "string",
|
|
132
|
+
"references": {}
|
|
133
|
+
},
|
|
134
|
+
"required": false,
|
|
135
|
+
"optional": false,
|
|
136
|
+
"docs": {
|
|
137
|
+
"tags": [{
|
|
138
|
+
"name": "default",
|
|
139
|
+
"text": "null"
|
|
140
|
+
}],
|
|
141
|
+
"text": "Path of the pdf document"
|
|
142
|
+
},
|
|
143
|
+
"attribute": "pdf-path",
|
|
144
|
+
"reflect": false
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
static get events() {
|
|
149
|
+
return [{
|
|
150
|
+
"method": "kupReady",
|
|
151
|
+
"name": "kup-pdf-ready",
|
|
152
|
+
"bubbles": true,
|
|
153
|
+
"cancelable": false,
|
|
154
|
+
"composed": true,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Triggered when the component is ready."
|
|
158
|
+
},
|
|
159
|
+
"complexType": {
|
|
160
|
+
"original": "KupEventPayload",
|
|
161
|
+
"resolved": "KupEventPayload",
|
|
162
|
+
"references": {
|
|
163
|
+
"KupEventPayload": {
|
|
164
|
+
"location": "import",
|
|
165
|
+
"path": "../../types/GenericTypes",
|
|
166
|
+
"id": "src/types/GenericTypes.ts::KupEventPayload"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}];
|
|
171
|
+
}
|
|
172
|
+
static get methods() {
|
|
173
|
+
return {
|
|
174
|
+
"getProps": {
|
|
175
|
+
"complexType": {
|
|
176
|
+
"signature": "(descriptions?: boolean) => Promise<GenericObject>",
|
|
177
|
+
"parameters": [{
|
|
178
|
+
"name": "descriptions",
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"docs": "- When provided and true, the result will be the list of props with their description."
|
|
181
|
+
}],
|
|
182
|
+
"references": {
|
|
183
|
+
"Promise": {
|
|
184
|
+
"location": "global",
|
|
185
|
+
"id": "global::Promise"
|
|
186
|
+
},
|
|
187
|
+
"GenericObject": {
|
|
188
|
+
"location": "import",
|
|
189
|
+
"path": "../../types/GenericTypes",
|
|
190
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"return": "Promise<GenericObject>"
|
|
194
|
+
},
|
|
195
|
+
"docs": {
|
|
196
|
+
"text": "Used to retrieve component's props values.",
|
|
197
|
+
"tags": [{
|
|
198
|
+
"name": "param",
|
|
199
|
+
"text": "descriptions - When provided and true, the result will be the list of props with their description."
|
|
200
|
+
}, {
|
|
201
|
+
"name": "returns",
|
|
202
|
+
"text": "List of props as object, each key will be a prop."
|
|
203
|
+
}]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"refresh": {
|
|
207
|
+
"complexType": {
|
|
208
|
+
"signature": "() => Promise<void>",
|
|
209
|
+
"parameters": [],
|
|
210
|
+
"references": {
|
|
211
|
+
"Promise": {
|
|
212
|
+
"location": "global",
|
|
213
|
+
"id": "global::Promise"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"return": "Promise<void>"
|
|
217
|
+
},
|
|
218
|
+
"docs": {
|
|
219
|
+
"text": "This method is used to trigger a new render of the component.",
|
|
220
|
+
"tags": []
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"setProps": {
|
|
224
|
+
"complexType": {
|
|
225
|
+
"signature": "(props: GenericObject) => Promise<void>",
|
|
226
|
+
"parameters": [{
|
|
227
|
+
"name": "props",
|
|
228
|
+
"type": "GenericObject",
|
|
229
|
+
"docs": "- Object containing props that will be set to the component."
|
|
230
|
+
}],
|
|
231
|
+
"references": {
|
|
232
|
+
"Promise": {
|
|
233
|
+
"location": "global",
|
|
234
|
+
"id": "global::Promise"
|
|
235
|
+
},
|
|
236
|
+
"GenericObject": {
|
|
237
|
+
"location": "import",
|
|
238
|
+
"path": "../../types/GenericTypes",
|
|
239
|
+
"id": "src/types/GenericTypes.ts::GenericObject"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"return": "Promise<void>"
|
|
243
|
+
},
|
|
244
|
+
"docs": {
|
|
245
|
+
"text": "Sets the props to the component.",
|
|
246
|
+
"tags": [{
|
|
247
|
+
"name": "param",
|
|
248
|
+
"text": "props - Object containing props that will be set to the component."
|
|
249
|
+
}]
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
static get elementRef() { return "rootElement"; }
|
|
255
|
+
static get watchers() {
|
|
256
|
+
return [{
|
|
257
|
+
"propName": "pdfPath",
|
|
258
|
+
"methodName": "onPdfPathChange"
|
|
259
|
+
}];
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
_KupPdf_kupManager = new WeakMap();
|
|
@@ -99,9 +99,9 @@ export class KupPhotoFrame {
|
|
|
99
99
|
if (this.isInViewport && !__classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f")) {
|
|
100
100
|
__classPrivateFieldSet(this, _KupPhotoFrame_renderResource, true, "f");
|
|
101
101
|
}
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: 'd6d82199e94a278a68fcd3bcb2e128f4714f7dcd' }, h("style", { key: 'ba1ceb0cd797d7a3a7808d7b2cd4849193faff42' }, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '4701a46d03923c418672ed93098d5bde32ae38ae', id: componentWrapperId, ref: (el) => {
|
|
103
103
|
__classPrivateFieldSet(this, _KupPhotoFrame_wrapperEl, el, "f");
|
|
104
|
-
} }, h("img", Object.assign({ key: '
|
|
104
|
+
} }, h("img", Object.assign({ key: '451b86c100861cb4b72cfc2575e2c7ad6da3b6ee' }, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
|
|
105
105
|
if (__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalWidth >
|
|
106
106
|
__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalHeight) {
|
|
107
107
|
__classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('horizontal');
|
|
@@ -47,6 +47,8 @@ export var KupPlannerTaskAction;
|
|
|
47
47
|
KupPlannerTaskAction["onDblClick"] = "onDblClick";
|
|
48
48
|
KupPlannerTaskAction["onResize"] = "onResize";
|
|
49
49
|
KupPlannerTaskAction["onRightClick"] = "onRightClick";
|
|
50
|
+
KupPlannerTaskAction["onPhase"] = "onPhase";
|
|
51
|
+
KupPlannerTaskAction["onTask"] = "onTask";
|
|
50
52
|
})(KupPlannerTaskAction || (KupPlannerTaskAction = {}));
|
|
51
53
|
export var KupPlannerGanttRowType;
|
|
52
54
|
(function (KupPlannerGanttRowType) {
|
|
@@ -81,6 +83,7 @@ export const defaultStylingOptions = {
|
|
|
81
83
|
barProgressSelectedColor: '#A2A415',
|
|
82
84
|
barBackgroundColor: '#A2A415',
|
|
83
85
|
barBackgroundSelectedColor: '#A2A415',
|
|
86
|
+
barDropZoneColor: '#4d9f0240'
|
|
84
87
|
};
|
|
85
88
|
export const KUP_PLANNER_MAIN_GANTT_ID = 'main';
|
|
86
89
|
export const KUP_PLANNER_SECONDARY_GANTT_ID = 'secondary';
|