@ctzy-web-client/plugin-component-vue 1.0.7 → 1.0.9
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/package.json +3 -3
- package/src/advance-select/advance-operation.vue +2 -1
- package/src/advance-select/advance-option.vue +2 -1
- package/src/advance-select/advance-select.vue +2 -1
- package/src/advance-select/events-helpers.js +2 -1
- package/src/advance-select/index.js +1 -0
- package/src/advance-select/use-advance-option.js +2 -1
- package/src/advance-select/use-advance-select.js +1 -0
- package/src/application-slot/application-slot.js +2 -1
- package/src/application-slot/breadcrumb-item.vue +1 -0
- package/src/application-slot/header-tools-item.vue +1 -0
- package/src/application-slot/index.js +1 -0
- package/src/breadcrumb-select/breadcrumb-select.vue +2 -1
- package/src/breadcrumb-select/index.js +1 -0
- package/src/components.js +1 -0
- package/src/contextmenu/contextmenu-item.vue +2 -1
- package/src/contextmenu/contextmenu.vue +2 -1
- package/src/contextmenu/index.js +1 -0
- package/src/contextmenu/use-contextmenu.js +2 -1
- package/src/data-form/data-form-item.vue +2 -1
- package/src/data-form/data-form.vue +2 -1
- package/src/data-form/dynamic-component.js +1 -0
- package/src/data-form/form-components/Blots/AtBlot.js +1 -0
- package/src/data-form/form-components/bwa-date-picker.vue +1 -0
- package/src/data-form/form-components/bwa-date-time-picker.vue +1 -0
- package/src/data-form/form-components/bwa-input-float.vue +1 -0
- package/src/data-form/form-components/bwa-input-integer.vue +1 -0
- package/src/data-form/form-components/bwa-input.vue +1 -0
- package/src/data-form/form-components/bwa-multi-select.vue +1 -0
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +3 -2
- package/src/data-form/form-components/bwa-rich-text.vue +2 -1
- package/src/data-form/form-components/bwa-select.vue +1 -0
- package/src/data-form/form-components/bwa-textarea.vue +1 -0
- package/src/data-form/form-components/bwa-upload.vue +2 -1
- package/src/data-form/form-components/bwa-user-multi-select.vue +1 -0
- package/src/data-form/form-components/bwa-user-select.vue +2 -1
- package/src/data-form/index.js +1 -0
- package/src/data-table/data-column-view.vue +2 -1
- package/src/data-table/data-table-card.vue +2 -1
- package/src/data-table/data-table-column.vue +2 -1
- package/src/data-table/data-table.vue +2 -1
- package/src/data-table/dynamic-component.js +1 -0
- package/src/data-table/index.js +1 -0
- package/src/data-table/use-datatable-drag.js +1 -0
- package/src/datatable-settings/datatable-settings.vue +2 -1
- package/src/datatable-settings/index.js +1 -0
- package/src/date-range/date-picker.vue +2 -1
- package/src/date-range/date-range.vue +4 -3
- package/src/date-range/index.js +1 -0
- package/src/drag-list/constants.js +1 -0
- package/src/drag-list/drag-item.vue +2 -1
- package/src/drag-list/drag-list.vue +2 -1
- package/src/drag-list/index.js +1 -0
- package/src/drag-list/use-drag-list.js +1 -0
- package/src/dragable/constants.js +1 -0
- package/src/dragable/dragable-item.vue +2 -1
- package/src/dragable/dragable-operation.vue +2 -1
- package/src/dragable/dragable.vue +2 -1
- package/src/dragable/index.js +1 -0
- package/src/dragable/use-dragable.js +1 -0
- package/src/filter-panel/conditions/condition.js +1 -0
- package/src/filter-panel/conditions/date-range-condition.vue +1 -0
- package/src/filter-panel/conditions/department-condition/department-condition.vue +2 -1
- package/src/filter-panel/conditions/department-condition/department-node.vue +2 -1
- package/src/filter-panel/conditions/index.js +1 -0
- package/src/filter-panel/conditions/input-condition.vue +2 -1
- package/src/filter-panel/conditions/multi-user-condition.vue +2 -1
- package/src/filter-panel/conditions/multiple-menu-condition.vue +1 -0
- package/src/filter-panel/conditions/single-menu-condition.vue +2 -1
- package/src/filter-panel/conditions/single-user-condition.vue +2 -1
- package/src/filter-panel/filter-panel-item.vue +2 -1
- package/src/filter-panel/filter-panel.vue +2 -1
- package/src/filter-panel/index.js +1 -0
- package/src/filter-panel/use-filter-panel-item.js +2 -1
- package/src/filter-panel/use-filter-panel.js +2 -1
- package/src/hooks/use-data/index.js +3 -2
- package/src/index.js +1 -0
- package/src/layout/index.js +1 -0
- package/src/layout/layout.vue +2 -1
- package/src/make-installer.js +2 -1
- package/src/math/Rectangle.js +1 -0
- package/src/menu/index.js +1 -0
- package/src/menu/menu-item.vue +2 -1
- package/src/menu/menu.vue +2 -1
- package/src/panel/index.js +1 -0
- package/src/panel/panel.vue +2 -1
- package/src/panel-tabs/index.js +1 -0
- package/src/panel-tabs/panel-tabs.js +2 -1
- package/src/pct-filter-panel/index.js +1 -0
- package/src/pct-filter-panel/pct-compents/index.js +1 -0
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +2 -1
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +2 -1
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +3 -2
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue +3 -2
- package/src/pct-filter-panel/pct-filter-panel-item.vue +2 -1
- package/src/pct-filter-panel/pct-filter-panel.vue +2 -1
- package/src/pct-filter-panel/use-filter-panel-item.js +2 -1
- package/src/pct-filter-panel/use-filter-panel.js +3 -2
- package/src/plugins.js +1 -0
- package/src/progress/index.js +1 -0
- package/src/progress/progress-item.vue +2 -1
- package/src/progress/progress.vue +2 -1
- package/src/progress/use-progress.js +1 -0
- package/src/utils/db.js +1 -0
- package/src/utils.js +1 -0
- package/src/where-filter-panel/use-where-filter-panel.js +2 -1
- package/src/where-filter-panel/where-filter-panel.vue +1 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/advance-select/advance-operation.mjs +0 -43
- package/es/advance-select/advance-option.mjs +0 -125
- package/es/advance-select/advance-select.mjs +0 -359
- package/es/advance-select/events-helpers.mjs +0 -29
- package/es/advance-select/index.mjs +0 -13
- package/es/advance-select/use-advance-option.mjs +0 -43
- package/es/advance-select/use-advance-select.mjs +0 -117
- package/es/application-slot/application-slot.mjs +0 -51
- package/es/application-slot/breadcrumb-item.mjs +0 -23
- package/es/application-slot/header-tools-item.mjs +0 -23
- package/es/application-slot/index.mjs +0 -16
- package/es/breadcrumb-select/breadcrumb-select.mjs +0 -155
- package/es/breadcrumb-select/index.mjs +0 -6
- package/es/components.mjs +0 -22
- package/es/contextmenu/contextmenu-item.mjs +0 -21
- package/es/contextmenu/contextmenu.mjs +0 -64
- package/es/contextmenu/index.mjs +0 -10
- package/es/contextmenu/use-contextmenu.mjs +0 -85
- package/es/data-form/data-form-item.mjs +0 -53
- package/es/data-form/data-form.mjs +0 -175
- package/es/data-form/dynamic-component.mjs +0 -23
- package/es/data-form/form-components/Blots/AtBlot.mjs +0 -25
- package/es/data-form/form-components/bwa-date-picker.mjs +0 -45
- package/es/data-form/form-components/bwa-date-time-picker.mjs +0 -50
- package/es/data-form/form-components/bwa-input-float.mjs +0 -43
- package/es/data-form/form-components/bwa-input-integer.mjs +0 -56
- package/es/data-form/form-components/bwa-input.mjs +0 -38
- package/es/data-form/form-components/bwa-multi-select.mjs +0 -35
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +0 -234
- package/es/data-form/form-components/bwa-rich-text.mjs +0 -325
- package/es/data-form/form-components/bwa-select.mjs +0 -76
- package/es/data-form/form-components/bwa-textarea.mjs +0 -33
- package/es/data-form/form-components/bwa-upload.mjs +0 -159
- package/es/data-form/form-components/bwa-user-multi-select.mjs +0 -30
- package/es/data-form/form-components/bwa-user-select.mjs +0 -69
- package/es/data-form/index.mjs +0 -34
- package/es/data-table/data-column-view.mjs +0 -131
- package/es/data-table/data-table-card.mjs +0 -118
- package/es/data-table/data-table-column.mjs +0 -56
- package/es/data-table/data-table.mjs +0 -369
- package/es/data-table/dynamic-component.mjs +0 -48
- package/es/data-table/index.mjs +0 -13
- package/es/data-table/use-datatable-drag.mjs +0 -110
- package/es/datatable-settings/datatable-settings.mjs +0 -309
- package/es/datatable-settings/index.mjs +0 -6
- package/es/date-range/date-picker.mjs +0 -128
- package/es/date-range/date-range.mjs +0 -176
- package/es/date-range/index.mjs +0 -6
- package/es/drag-list/constants.mjs +0 -3
- package/es/drag-list/drag-item.mjs +0 -49
- package/es/drag-list/drag-list.mjs +0 -56
- package/es/drag-list/index.mjs +0 -6
- package/es/drag-list/use-drag-list.mjs +0 -154
- package/es/dragable/constants.mjs +0 -4
- package/es/dragable/dragable-item.mjs +0 -25
- package/es/dragable/dragable-operation.mjs +0 -32
- package/es/dragable/dragable.mjs +0 -31
- package/es/dragable/index.mjs +0 -15
- package/es/dragable/use-dragable.mjs +0 -134
- package/es/filter-panel/conditions/condition.mjs +0 -30
- package/es/filter-panel/conditions/date-range-condition.mjs +0 -46
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +0 -81
- package/es/filter-panel/conditions/department-condition/department-node.mjs +0 -74
- package/es/filter-panel/conditions/index.mjs +0 -21
- package/es/filter-panel/conditions/input-condition.mjs +0 -83
- package/es/filter-panel/conditions/multi-user-condition.mjs +0 -64
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +0 -41
- package/es/filter-panel/conditions/single-menu-condition.mjs +0 -68
- package/es/filter-panel/conditions/single-user-condition.mjs +0 -64
- package/es/filter-panel/filter-panel-item.mjs +0 -47
- package/es/filter-panel/filter-panel.mjs +0 -180
- package/es/filter-panel/index.mjs +0 -15
- package/es/filter-panel/use-filter-panel-item.mjs +0 -52
- package/es/filter-panel/use-filter-panel.mjs +0 -135
- package/es/hooks/use-data/index.mjs +0 -152
- package/es/index.mjs +0 -27
- package/es/layout/index.mjs +0 -6
- package/es/layout/layout.mjs +0 -86
- package/es/make-installer.mjs +0 -34
- package/es/math/Rectangle.mjs +0 -25
- package/es/menu/index.mjs +0 -6
- package/es/menu/menu-item.mjs +0 -75
- package/es/menu/menu.mjs +0 -60
- package/es/node_modules/.pnpm/@vueuse_core@9.6.0_vue@3.2.41/node_modules/@vueuse/core/index.mjs +0 -6372
- package/es/node_modules/.pnpm/@vueuse_shared@9.6.0_vue@3.2.41/node_modules/@vueuse/shared/index.mjs +0 -1517
- package/es/panel/index.mjs +0 -6
- package/es/panel/panel.mjs +0 -55
- package/es/panel-tabs/index.mjs +0 -6
- package/es/panel-tabs/panel-tabs.mjs +0 -66
- package/es/pct-filter-panel/index.mjs +0 -10
- package/es/pct-filter-panel/pct-compents/index.mjs +0 -10
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +0 -71
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +0 -74
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +0 -186
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +0 -147
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +0 -48
- package/es/pct-filter-panel/pct-filter-panel.mjs +0 -251
- package/es/pct-filter-panel/use-filter-panel-item.mjs +0 -56
- package/es/pct-filter-panel/use-filter-panel.mjs +0 -127
- package/es/plugins.mjs +0 -5
- package/es/progress/index.mjs +0 -10
- package/es/progress/progress-item.mjs +0 -68
- package/es/progress/progress.mjs +0 -74
- package/es/progress/use-progress.mjs +0 -46
- package/es/utils/db.mjs +0 -9
- package/es/utils.mjs +0 -99
- package/es/where-filter-panel/index.mjs +0 -1
- package/es/where-filter-panel/use-where-filter-panel.mjs +0 -18
- package/es/where-filter-panel/where-filter-panel.mjs +0 -17
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -13
- package/lib/advance-select/advance-operation.js +0 -47
- package/lib/advance-select/advance-option.js +0 -129
- package/lib/advance-select/advance-select.js +0 -363
- package/lib/advance-select/events-helpers.js +0 -33
- package/lib/advance-select/index.js +0 -20
- package/lib/advance-select/use-advance-option.js +0 -47
- package/lib/advance-select/use-advance-select.js +0 -122
- package/lib/application-slot/application-slot.js +0 -55
- package/lib/application-slot/breadcrumb-item.js +0 -27
- package/lib/application-slot/header-tools-item.js +0 -27
- package/lib/application-slot/index.js +0 -23
- package/lib/breadcrumb-select/breadcrumb-select.js +0 -159
- package/lib/breadcrumb-select/index.js +0 -11
- package/lib/components.js +0 -26
- package/lib/contextmenu/contextmenu-item.js +0 -25
- package/lib/contextmenu/contextmenu.js +0 -68
- package/lib/contextmenu/index.js +0 -16
- package/lib/contextmenu/use-contextmenu.js +0 -89
- package/lib/data-form/data-form-item.js +0 -57
- package/lib/data-form/data-form.js +0 -179
- package/lib/data-form/dynamic-component.js +0 -27
- package/lib/data-form/form-components/Blots/AtBlot.js +0 -31
- package/lib/data-form/form-components/bwa-date-picker.js +0 -49
- package/lib/data-form/form-components/bwa-date-time-picker.js +0 -54
- package/lib/data-form/form-components/bwa-input-float.js +0 -47
- package/lib/data-form/form-components/bwa-input-integer.js +0 -60
- package/lib/data-form/form-components/bwa-input.js +0 -42
- package/lib/data-form/form-components/bwa-multi-select.js +0 -39
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +0 -242
- package/lib/data-form/form-components/bwa-rich-text.js +0 -333
- package/lib/data-form/form-components/bwa-select.js +0 -80
- package/lib/data-form/form-components/bwa-textarea.js +0 -37
- package/lib/data-form/form-components/bwa-upload.js +0 -163
- package/lib/data-form/form-components/bwa-user-multi-select.js +0 -34
- package/lib/data-form/form-components/bwa-user-select.js +0 -73
- package/lib/data-form/index.js +0 -40
- package/lib/data-table/data-column-view.js +0 -135
- package/lib/data-table/data-table-card.js +0 -122
- package/lib/data-table/data-table-column.js +0 -60
- package/lib/data-table/data-table.js +0 -373
- package/lib/data-table/dynamic-component.js +0 -56
- package/lib/data-table/index.js +0 -20
- package/lib/data-table/use-datatable-drag.js +0 -114
- package/lib/datatable-settings/datatable-settings.js +0 -313
- package/lib/datatable-settings/index.js +0 -11
- package/lib/date-range/date-picker.js +0 -136
- package/lib/date-range/date-range.js +0 -180
- package/lib/date-range/index.js +0 -11
- package/lib/drag-list/constants.js +0 -7
- package/lib/drag-list/drag-item.js +0 -53
- package/lib/drag-list/drag-list.js +0 -60
- package/lib/drag-list/index.js +0 -11
- package/lib/drag-list/use-drag-list.js +0 -158
- package/lib/dragable/constants.js +0 -9
- package/lib/dragable/dragable-item.js +0 -29
- package/lib/dragable/dragable-operation.js +0 -36
- package/lib/dragable/dragable.js +0 -35
- package/lib/dragable/index.js +0 -22
- package/lib/dragable/use-dragable.js +0 -138
- package/lib/filter-panel/conditions/condition.js +0 -34
- package/lib/filter-panel/conditions/date-range-condition.js +0 -50
- package/lib/filter-panel/conditions/department-condition/department-condition.js +0 -85
- package/lib/filter-panel/conditions/department-condition/department-node.js +0 -78
- package/lib/filter-panel/conditions/index.js +0 -26
- package/lib/filter-panel/conditions/input-condition.js +0 -87
- package/lib/filter-panel/conditions/multi-user-condition.js +0 -68
- package/lib/filter-panel/conditions/multiple-menu-condition.js +0 -45
- package/lib/filter-panel/conditions/single-menu-condition.js +0 -72
- package/lib/filter-panel/conditions/single-user-condition.js +0 -68
- package/lib/filter-panel/filter-panel-item.js +0 -51
- package/lib/filter-panel/filter-panel.js +0 -184
- package/lib/filter-panel/index.js +0 -20
- package/lib/filter-panel/use-filter-panel-item.js +0 -56
- package/lib/filter-panel/use-filter-panel.js +0 -139
- package/lib/hooks/use-data/index.js +0 -157
- package/lib/index.js +0 -60
- package/lib/layout/index.js +0 -11
- package/lib/layout/layout.js +0 -90
- package/lib/make-installer.js +0 -62
- package/lib/math/Rectangle.js +0 -29
- package/lib/menu/index.js +0 -11
- package/lib/menu/menu-item.js +0 -79
- package/lib/menu/menu.js +0 -64
- package/lib/node_modules/.pnpm/@vueuse_core@9.6.0_vue@3.2.41/node_modules/@vueuse/core/index.js +0 -6635
- package/lib/node_modules/.pnpm/@vueuse_shared@9.6.0_vue@3.2.41/node_modules/@vueuse/shared/index.js +0 -1628
- package/lib/panel/index.js +0 -11
- package/lib/panel/panel.js +0 -59
- package/lib/panel-tabs/index.js +0 -11
- package/lib/panel-tabs/panel-tabs.js +0 -70
- package/lib/pct-filter-panel/index.js +0 -14
- package/lib/pct-filter-panel/pct-compents/index.js +0 -16
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +0 -75
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +0 -78
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +0 -190
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +0 -151
- package/lib/pct-filter-panel/pct-filter-panel-item.js +0 -52
- package/lib/pct-filter-panel/pct-filter-panel.js +0 -255
- package/lib/pct-filter-panel/use-filter-panel-item.js +0 -60
- package/lib/pct-filter-panel/use-filter-panel.js +0 -131
- package/lib/plugins.js +0 -9
- package/lib/progress/index.js +0 -16
- package/lib/progress/progress-item.js +0 -72
- package/lib/progress/progress.js +0 -78
- package/lib/progress/use-progress.js +0 -51
- package/lib/utils/db.js +0 -17
- package/lib/utils.js +0 -110
- package/lib/where-filter-panel/index.js +0 -2
- package/lib/where-filter-panel/use-where-filter-panel.js +0 -22
- package/lib/where-filter-panel/where-filter-panel.js +0 -21
- package/style/advance-select.css +0 -1
- package/style/breadcrumb-select.css +0 -1
- package/style/common.css +0 -1
- package/style/contextmenu.css +0 -1
- package/style/data-form.css +0 -1
- package/style/data-table.css +0 -1
- package/style/datatable-settings.css +0 -1
- package/style/date-range.css +0 -1
- package/style/department-condition.css +0 -1
- package/style/drag-list.css +0 -1
- package/style/dragable.css +0 -1
- package/style/filter-panel.css +0 -1
- package/style/index.css +0 -1
- package/style/input-condition.css +0 -1
- package/style/layout.css +0 -1
- package/style/menu.css +0 -1
- package/style/panel-tabs.css +0 -1
- package/style/panel.css +0 -1
- package/style/pct-filter-panel.css +0 -1
- package/style/progress.css +0 -1
- package/style/rich-text.css +0 -1
- package/style/var.css +0 -1
- /package/style/{src/advance-select.scss → advance-select.scss} +0 -0
- /package/style/{src/breadcrumb-select.scss → breadcrumb-select.scss} +0 -0
- /package/style/{src/common → common}/var.scss +0 -0
- /package/style/{src/common.scss → common.scss} +0 -0
- /package/style/{src/contextmenu.scss → contextmenu.scss} +0 -0
- /package/style/{src/data-form.scss → data-form.scss} +0 -0
- /package/style/{src/data-table.scss → data-table.scss} +0 -0
- /package/style/{src/datatable-settings.scss → datatable-settings.scss} +0 -0
- /package/style/{src/date-range.scss → date-range.scss} +0 -0
- /package/style/{src/department-condition.scss → department-condition.scss} +0 -0
- /package/style/{src/drag-list.scss → drag-list.scss} +0 -0
- /package/style/{src/dragable.scss → dragable.scss} +0 -0
- /package/style/{src/filter-panel.scss → filter-panel.scss} +0 -0
- /package/style/{src/index.scss → index.scss} +0 -0
- /package/style/{src/input-condition.scss → input-condition.scss} +0 -0
- /package/style/{src/layout.scss → layout.scss} +0 -0
- /package/style/{src/menu.scss → menu.scss} +0 -0
- /package/style/{src/mixins → mixins}/_var.scss +0 -0
- /package/style/{src/mixins → mixins}/config.scss +0 -0
- /package/style/{src/mixins → mixins}/function.scss +0 -0
- /package/style/{src/mixins → mixins}/mixins.scss +0 -0
- /package/style/{src/panel-tabs.scss → panel-tabs.scss} +0 -0
- /package/style/{src/panel.scss → panel.scss} +0 -0
- /package/style/{src/pct-filter-panel.scss → pct-filter-panel.scss} +0 -0
- /package/style/{src/progress.scss → progress.scss} +0 -0
- /package/style/{src/rich-text.scss → rich-text.scss} +0 -0
- /package/style/{src/theme → theme}/theme.scss +0 -0
- /package/style/{src/theme → theme}/var.scss +0 -0
- /package/style/{src/var.scss → var.scss} +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
var useFilterPanelItem = require('./use-filter-panel-item.js');
|
|
8
|
-
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
|
-
|
|
10
|
-
const __default__ = vue.defineComponent({
|
|
11
|
-
name: "BwaPctFilterPanelItem"
|
|
12
|
-
});
|
|
13
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
14
|
-
props: {
|
|
15
|
-
prop: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
close: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
emits: ["close"],
|
|
24
|
-
setup(__props, { emit }) {
|
|
25
|
-
const props = __props;
|
|
26
|
-
const ns = webBaseClientVue.useNamespace("pctfilterpanel");
|
|
27
|
-
const { value, column, allowClose, closeHandle, showTitle, filterPanelLineNum } = useFilterPanelItem.useFilterPanelItem(props);
|
|
28
|
-
const data = vue.reactive({ value });
|
|
29
|
-
vue.provide(
|
|
30
|
-
webBaseClientVue.filterPanelItemKey,
|
|
31
|
-
vue.reactive({
|
|
32
|
-
column
|
|
33
|
-
})
|
|
34
|
-
);
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
37
|
-
class: vue.normalizeClass(vue.unref(ns).b("item")),
|
|
38
|
-
style: vue.normalizeStyle({ "width": vue.unref(filterPanelLineNum) ? (100 / vue.unref(filterPanelLineNum)).toFixed(2) + "%" : vue.unref(showTitle) ? "25%" : "20%" })
|
|
39
|
-
}, [
|
|
40
|
-
vue.renderSlot(_ctx.$slots, "default", { data }),
|
|
41
|
-
vue.unref(allowClose) ? (vue.openBlock(), vue.createElementBlock("i", {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: vue.normalizeClass(["ptp-icon", "ptp-close", vue.unref(ns).be("item", "close")]),
|
|
44
|
-
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(closeHandle) && vue.unref(closeHandle)(...args))
|
|
45
|
-
}, null, 2)) : vue.createCommentVNode("v-if", true)
|
|
46
|
-
], 6);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
var PctFilterPanelItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-filter-panel-item.vue"]]);
|
|
51
|
-
|
|
52
|
-
exports["default"] = PctFilterPanelItem;
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
var useFilterPanel = require('./use-filter-panel.js');
|
|
8
|
-
var pctFilterPanelItem = require('./pct-filter-panel-item.js');
|
|
9
|
-
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
|
-
|
|
11
|
-
const __default__ = vue.defineComponent({
|
|
12
|
-
name: "BwaPctFilterPanel"
|
|
13
|
-
});
|
|
14
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
15
|
-
props: {
|
|
16
|
-
dataTable: {
|
|
17
|
-
type: Object
|
|
18
|
-
},
|
|
19
|
-
showSearch: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
|
-
},
|
|
23
|
-
showFieldOptions: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: true
|
|
26
|
-
},
|
|
27
|
-
searchAttr: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: "search"
|
|
30
|
-
},
|
|
31
|
-
searchPlaceholder: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: ""
|
|
34
|
-
},
|
|
35
|
-
searchFields: {
|
|
36
|
-
type: Array,
|
|
37
|
-
default: () => []
|
|
38
|
-
},
|
|
39
|
-
showTitle: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: false
|
|
42
|
-
},
|
|
43
|
-
searchTitle: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: "\u6807\u9898\u540D\u79F0"
|
|
46
|
-
},
|
|
47
|
-
filterPanelLineNum: {
|
|
48
|
-
type: Number
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["reset", "filter"],
|
|
52
|
-
setup(__props, { emit }) {
|
|
53
|
-
const props = __props;
|
|
54
|
-
const ns = webBaseClientVue.useNamespace("pctfilterpanel");
|
|
55
|
-
const {
|
|
56
|
-
dataTable,
|
|
57
|
-
filterPanel,
|
|
58
|
-
currentFilterColumns,
|
|
59
|
-
selectedColumnAttrNames,
|
|
60
|
-
closableColumns,
|
|
61
|
-
searchParams,
|
|
62
|
-
handleFieldSearch,
|
|
63
|
-
searchValue,
|
|
64
|
-
isChange,
|
|
65
|
-
handleReset,
|
|
66
|
-
handleSearch
|
|
67
|
-
} = useFilterPanel.useFilterPanel(props, { emit });
|
|
68
|
-
console.log(currentFilterColumns);
|
|
69
|
-
vue.watch(
|
|
70
|
-
filterPanel,
|
|
71
|
-
(filterPanel2, _, onCleanup) => {
|
|
72
|
-
filterPanel2.existComponent = true;
|
|
73
|
-
onCleanup(() => {
|
|
74
|
-
filterPanel2.existComponent = false;
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
{ immediate: true }
|
|
78
|
-
);
|
|
79
|
-
vue.provide(
|
|
80
|
-
webBaseClientVue.filterPanelKey,
|
|
81
|
-
vue.reactive({
|
|
82
|
-
dataTable,
|
|
83
|
-
filterPanel,
|
|
84
|
-
currentFilterColumns,
|
|
85
|
-
showTitle: props.showTitle,
|
|
86
|
-
filterPanelLineNum: props.filterPanelLineNum
|
|
87
|
-
})
|
|
88
|
-
);
|
|
89
|
-
return (_ctx, _cache) => {
|
|
90
|
-
const _component_BwaPctMultipleMenuCondition = vue.resolveComponent("BwaPctMultipleMenuCondition");
|
|
91
|
-
const _component_BwaPctInputCondition = vue.resolveComponent("BwaPctInputCondition");
|
|
92
|
-
const _component_BwaPctDateRangeCondition = vue.resolveComponent("BwaPctDateRangeCondition");
|
|
93
|
-
const _component_ElInput = vue.resolveComponent("ElInput");
|
|
94
|
-
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
95
|
-
const _component_ElCheckbox = vue.resolveComponent("ElCheckbox");
|
|
96
|
-
const _component_BwaAdvanceOption = vue.resolveComponent("BwaAdvanceOption");
|
|
97
|
-
const _component_BwaAdvanceSelect = vue.resolveComponent("BwaAdvanceSelect");
|
|
98
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
99
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
100
|
-
}, [
|
|
101
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
102
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentFilterColumns), (column) => {
|
|
103
|
-
return vue.renderSlot(_ctx.$slots, `condition-${column.attrName}`, {
|
|
104
|
-
key: column.attrName,
|
|
105
|
-
attrName: column.attrName
|
|
106
|
-
}, () => [
|
|
107
|
-
vue.createVNode(pctFilterPanelItem["default"], {
|
|
108
|
-
prop: column.fullAttrName
|
|
109
|
-
}, {
|
|
110
|
-
default: vue.withCtx(({ data }) => {
|
|
111
|
-
var _a, _b;
|
|
112
|
-
return [
|
|
113
|
-
!column.component || column.component === "BwaMultipleMenuCondition" || column.component === "BwaSingleMenuCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctMultipleMenuCondition, {
|
|
114
|
-
key: 0,
|
|
115
|
-
modelValue: data.value,
|
|
116
|
-
"onUpdate:modelValue": ($event) => data.value = $event,
|
|
117
|
-
column,
|
|
118
|
-
multiple: column.component !== "BwaSingleMenuCondition",
|
|
119
|
-
showTitle: props.showTitle,
|
|
120
|
-
showSearch: (_a = column.componentProps) == null ? void 0 : _a.showSearch,
|
|
121
|
-
options: ((_b = column.componentProps) == null ? void 0 : _b.options) || []
|
|
122
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "multiple", "showTitle", "showSearch", "options"])) : vue.createCommentVNode("v-if", true),
|
|
123
|
-
column.component === "BwaInputCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctInputCondition, {
|
|
124
|
-
key: 1,
|
|
125
|
-
modelValue: data.value,
|
|
126
|
-
"onUpdate:modelValue": ($event) => data.value = $event,
|
|
127
|
-
column,
|
|
128
|
-
showTitle: props.showTitle
|
|
129
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "showTitle"])) : vue.createCommentVNode("v-if", true),
|
|
130
|
-
column.component === "BwaDateRangeCondition" ? (vue.openBlock(), vue.createBlock(_component_BwaPctDateRangeCondition, {
|
|
131
|
-
key: 2,
|
|
132
|
-
modelValue: data.value,
|
|
133
|
-
"onUpdate:modelValue": ($event) => data.value = $event,
|
|
134
|
-
showTitle: props.showTitle
|
|
135
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "showTitle"])) : vue.createCommentVNode("v-if", true)
|
|
136
|
-
];
|
|
137
|
-
}),
|
|
138
|
-
_: 2
|
|
139
|
-
}, 1032, ["prop"])
|
|
140
|
-
]);
|
|
141
|
-
}), 128))
|
|
142
|
-
]),
|
|
143
|
-
__props.showSearch ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
144
|
-
key: 0,
|
|
145
|
-
style: vue.normalizeStyle([{ "display": "flex", "align-items": "center", "padding-right": "20px", "box-sizing": "border-box" }, {
|
|
146
|
-
"width": props.filterPanelLineNum ? (100 / props.filterPanelLineNum).toFixed(2) + "%" : props.showTitle ? "25%" : "20%"
|
|
147
|
-
}])
|
|
148
|
-
}, [
|
|
149
|
-
__props.showTitle ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
150
|
-
key: 0,
|
|
151
|
-
class: vue.normalizeClass(vue.unref(ns).e("title")),
|
|
152
|
-
style: { "padding-right": "8px" }
|
|
153
|
-
}, vue.toDisplayString(__props.searchTitle), 3)) : vue.createCommentVNode("v-if", true),
|
|
154
|
-
vue.createVNode(_component_ElInput, {
|
|
155
|
-
"prefix-icon": "Search",
|
|
156
|
-
size: "small",
|
|
157
|
-
clearable: "",
|
|
158
|
-
modelValue: vue.unref(searchValue),
|
|
159
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(searchValue) ? searchValue.value = $event : null),
|
|
160
|
-
placeholder: __props.searchPlaceholder,
|
|
161
|
-
class: vue.normalizeClass(vue.unref(ns).e("search"))
|
|
162
|
-
}, null, 8, ["modelValue", "placeholder", "class"])
|
|
163
|
-
], 4)) : vue.createCommentVNode("v-if", true),
|
|
164
|
-
__props.showFieldOptions ? (vue.openBlock(), vue.createBlock(pctFilterPanelItem["default"], {
|
|
165
|
-
key: 1,
|
|
166
|
-
style: { "width": "auto", "padding-right": "16px" }
|
|
167
|
-
}, {
|
|
168
|
-
default: vue.withCtx(() => [
|
|
169
|
-
__props.showFieldOptions ? (vue.openBlock(), vue.createBlock(_component_BwaAdvanceSelect, {
|
|
170
|
-
key: 0,
|
|
171
|
-
modelValue: vue.unref(selectedColumnAttrNames),
|
|
172
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(selectedColumnAttrNames) ? selectedColumnAttrNames.value = $event : null),
|
|
173
|
-
"show-selectIcon": false,
|
|
174
|
-
onSearch: vue.unref(handleFieldSearch),
|
|
175
|
-
class: vue.normalizeClass(vue.unref(ns).e("options")),
|
|
176
|
-
source: "pct"
|
|
177
|
-
}, {
|
|
178
|
-
"reference-content": vue.withCtx(() => [
|
|
179
|
-
vue.createVNode(_component_ElButton, {
|
|
180
|
-
size: "small",
|
|
181
|
-
class: vue.normalizeClass(vue.unref(ns).e("filterBut"))
|
|
182
|
-
}, {
|
|
183
|
-
default: vue.withCtx(() => [
|
|
184
|
-
vue.createElementVNode("div", {
|
|
185
|
-
class: vue.normalizeClass(vue.unref(ns).be("filter", "plus"))
|
|
186
|
-
}, null, 2),
|
|
187
|
-
vue.createElementVNode("span", {
|
|
188
|
-
class: vue.normalizeClass(vue.unref(ns).be("filter", "label"))
|
|
189
|
-
}, " \u7B5B\u9009 ", 2)
|
|
190
|
-
]),
|
|
191
|
-
_: 1
|
|
192
|
-
}, 8, ["class"])
|
|
193
|
-
]),
|
|
194
|
-
default: vue.withCtx(() => [
|
|
195
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(closableColumns), (column) => {
|
|
196
|
-
return vue.openBlock(), vue.createBlock(_component_BwaAdvanceOption, {
|
|
197
|
-
value: column.fullAttrName,
|
|
198
|
-
label: column.title,
|
|
199
|
-
key: column.fullAttrName,
|
|
200
|
-
class: vue.normalizeClass(vue.unref(ns).be("filter", "option"))
|
|
201
|
-
}, {
|
|
202
|
-
default: vue.withCtx(() => [
|
|
203
|
-
vue.createVNode(_component_ElCheckbox, {
|
|
204
|
-
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
205
|
-
}, ["prevent"])),
|
|
206
|
-
modelValue: vue.unref(selectedColumnAttrNames).includes(column.fullAttrName),
|
|
207
|
-
class: vue.normalizeClass(vue.unref(ns).be("filter", "checkbox"))
|
|
208
|
-
}, {
|
|
209
|
-
default: vue.withCtx(() => [
|
|
210
|
-
vue.createTextVNode(vue.toDisplayString(column.title), 1)
|
|
211
|
-
]),
|
|
212
|
-
_: 2
|
|
213
|
-
}, 1032, ["modelValue", "class"]),
|
|
214
|
-
vue.createElementVNode("span", {
|
|
215
|
-
class: vue.normalizeClass(vue.unref(ns).be("filter", "title"))
|
|
216
|
-
}, vue.toDisplayString(column.componentTitle), 3)
|
|
217
|
-
]),
|
|
218
|
-
_: 2
|
|
219
|
-
}, 1032, ["value", "label", "class"]);
|
|
220
|
-
}), 128))
|
|
221
|
-
]),
|
|
222
|
-
_: 1
|
|
223
|
-
}, 8, ["modelValue", "onSearch", "class"])) : vue.createCommentVNode("v-if", true)
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
227
|
-
vue.createVNode(_component_ElButton, {
|
|
228
|
-
size: "small",
|
|
229
|
-
type: "primary",
|
|
230
|
-
class: vue.normalizeClass(vue.unref(ns).e("reset")),
|
|
231
|
-
onClick: vue.unref(handleSearch)
|
|
232
|
-
}, {
|
|
233
|
-
default: vue.withCtx(() => [
|
|
234
|
-
vue.createTextVNode(" \u67E5\u8BE2 ")
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
}, 8, ["class", "onClick"]),
|
|
238
|
-
vue.createVNode(_component_ElButton, {
|
|
239
|
-
size: "small",
|
|
240
|
-
class: vue.normalizeClass(vue.unref(ns).e("reset")),
|
|
241
|
-
onClick: vue.unref(handleReset)
|
|
242
|
-
}, {
|
|
243
|
-
default: vue.withCtx(() => [
|
|
244
|
-
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
245
|
-
]),
|
|
246
|
-
_: 1
|
|
247
|
-
}, 8, ["class", "onClick"]),
|
|
248
|
-
vue.renderSlot(_ctx.$slots, "button")
|
|
249
|
-
], 2);
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
var PctFilterPanel = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-filter-panel.vue"]]);
|
|
254
|
-
|
|
255
|
-
exports["default"] = PctFilterPanel;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
|
|
8
|
-
const useFilterPanelItem = (props) => {
|
|
9
|
-
const filterPanelContext = vue.inject(webBaseClientVue.filterPanelKey);
|
|
10
|
-
const showTitle = vue.computed(() => filterPanelContext.showTitle);
|
|
11
|
-
const filterPanelLineNum = vue.computed(() => filterPanelContext.filterPanelLineNum);
|
|
12
|
-
const filterPanel = vue.computed(() => filterPanelContext.filterPanel);
|
|
13
|
-
const column = vue.computed(() => {
|
|
14
|
-
if (!vue.unref(filterPanel)) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
return vue.unref(filterPanel).getColumn(props.prop);
|
|
18
|
-
});
|
|
19
|
-
const value = vue.computed({
|
|
20
|
-
get: () => {
|
|
21
|
-
if (!vue.unref(column)) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
return vue.unref(filterPanel).getFilterParam(vue.unref(column));
|
|
25
|
-
},
|
|
26
|
-
set: (v) => {
|
|
27
|
-
if (!vue.unref(column)) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
vue.unref(filterPanel).setFilterParam(vue.unref(column), v, false);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const allowClose = vue.computed(() => {
|
|
34
|
-
var _a;
|
|
35
|
-
return props.close || !!((_a = vue.unref(column)) == null ? void 0 : _a.closable);
|
|
36
|
-
});
|
|
37
|
-
const closeHandle = () => {
|
|
38
|
-
if (!vue.unref(column)) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
vue.unref(filterPanel).closeColumn(vue.unref(column));
|
|
42
|
-
vue.unref(filterPanel).dataTable.refresh();
|
|
43
|
-
};
|
|
44
|
-
vue.onMounted(() => {
|
|
45
|
-
vue.unref(filterPanel).changeOriginFilterParams();
|
|
46
|
-
});
|
|
47
|
-
vue.onBeforeUnmount(() => {
|
|
48
|
-
vue.unref(filterPanel).changeOriginFilterParams();
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
value,
|
|
52
|
-
column,
|
|
53
|
-
allowClose,
|
|
54
|
-
closeHandle,
|
|
55
|
-
showTitle,
|
|
56
|
-
filterPanelLineNum
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
exports.useFilterPanelItem = useFilterPanelItem;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var ElementPlus = require('element-plus');
|
|
6
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
7
|
-
var vue = require('vue');
|
|
8
|
-
var rxjs = require('rxjs');
|
|
9
|
-
var db = require('../utils/db.js');
|
|
10
|
-
|
|
11
|
-
const useFilterPanel = (props, context) => {
|
|
12
|
-
var _a;
|
|
13
|
-
const dataTable = ElementPlus.useProp("dataTable");
|
|
14
|
-
const filterPanel = vue.computed(() => vue.unref(dataTable).filterPanel);
|
|
15
|
-
const filterPanelTable = db.dataModelDB.filterPanel;
|
|
16
|
-
const currentFilterColumns = vue.computed(() => vue.unref(filterPanel).getAppliedColumns());
|
|
17
|
-
const userService = webBaseClientVue.useService("UserService");
|
|
18
|
-
const _userID = ((_a = userService == null ? void 0 : userService.userInfo) == null ? void 0 : _a.id) || "0";
|
|
19
|
-
const searchParams = vue.computed(() => vue.unref(filterPanel)._filterParams);
|
|
20
|
-
const selectedColumnAttrNames = vue.computed({
|
|
21
|
-
get: () => vue.unref(filterPanel).getSelectedColumnAttrNames(),
|
|
22
|
-
set: (v) => {
|
|
23
|
-
const oldSelectedColumnAttrNames = selectedColumnAttrNames.value;
|
|
24
|
-
vue.unref(filterPanel).setSelectedColumnAttrNames(v);
|
|
25
|
-
if (vue.unref(filterPanel).ready) {
|
|
26
|
-
const existsOldAttrNames = oldSelectedColumnAttrNames.filter((attrName) => v.includes(attrName));
|
|
27
|
-
if (existsOldAttrNames.length < oldSelectedColumnAttrNames.length) {
|
|
28
|
-
vue.unref(dataTable).refresh();
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const closableColumns = vue.computed(() => vue.unref(filterPanel).getSearchClosableColumns());
|
|
34
|
-
const searchValue = vue.computed({
|
|
35
|
-
get: () => vue.unref(filterPanel).getSearchValue(),
|
|
36
|
-
set: (v) => vue.unref(filterPanel).setSeachValue(v, false)
|
|
37
|
-
});
|
|
38
|
-
const isChange = vue.computed(() => vue.unref(filterPanel).isChange());
|
|
39
|
-
vue.watch(ElementPlus.useProp("searchAttr"), (searchAttr) => {
|
|
40
|
-
vue.unref(filterPanel).setSearchAttr(searchAttr);
|
|
41
|
-
}, {
|
|
42
|
-
immediate: true
|
|
43
|
-
});
|
|
44
|
-
vue.watch(ElementPlus.useProp("searchFields"), (searchFields) => {
|
|
45
|
-
vue.unref(filterPanel).setSearchFields(searchFields);
|
|
46
|
-
}, {
|
|
47
|
-
immediate: true
|
|
48
|
-
});
|
|
49
|
-
const handleFieldSearch = (value) => {
|
|
50
|
-
vue.unref(filterPanel).fieldSearchValue = value;
|
|
51
|
-
};
|
|
52
|
-
const handleReset = () => {
|
|
53
|
-
vue.unref(filterPanel).resetFilterParams();
|
|
54
|
-
context.emit("reset");
|
|
55
|
-
};
|
|
56
|
-
const handleSearch = () => {
|
|
57
|
-
dataTable.value.load();
|
|
58
|
-
};
|
|
59
|
-
webBaseClientVue.useEventDispatcher(filterPanel, "params-change", () => {
|
|
60
|
-
const _filterPanel = vue.unref(filterPanel);
|
|
61
|
-
context.emit("filter", {
|
|
62
|
-
..._filterPanel.getFilterParams(),
|
|
63
|
-
[_filterPanel.getSearchAttr()]: _filterPanel.getSearchValue()
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
const appName = webBaseClientVue.useValue("AppName");
|
|
67
|
-
const selectedColumnChangeSubscription = new rxjs.Observable((observer) => webBaseClientVue.useEventDispatcher(filterPanel, "selected-column-change", observer.next.bind(observer))).subscribe(async () => {
|
|
68
|
-
var _a2;
|
|
69
|
-
const _appName = vue.unref(appName);
|
|
70
|
-
const _tableName = vue.unref(dataTable).name;
|
|
71
|
-
let result = await filterPanelTable.where("[app+tableName+userID]").equals([_appName, _tableName, _userID]).toArray();
|
|
72
|
-
let filterPanelOrder = result.length ? (_a2 = result[0].order) != null ? _a2 : [] : [];
|
|
73
|
-
const attrNames = vue.unref(filterPanel).getSelectedColumnAttrNames();
|
|
74
|
-
attrNames.sort((a1, a2) => {
|
|
75
|
-
const index1 = filterPanelOrder.indexOf(a1);
|
|
76
|
-
const index2 = filterPanelOrder.indexOf(a2);
|
|
77
|
-
if (index1 === -1 && index2 === -1) {
|
|
78
|
-
return 1;
|
|
79
|
-
}
|
|
80
|
-
if (index1 === -1) {
|
|
81
|
-
return 1;
|
|
82
|
-
}
|
|
83
|
-
if (index2 === -1) {
|
|
84
|
-
return -1;
|
|
85
|
-
}
|
|
86
|
-
return index1 - index2;
|
|
87
|
-
});
|
|
88
|
-
filterPanelTable.put({
|
|
89
|
-
app: _appName,
|
|
90
|
-
tableName: _tableName,
|
|
91
|
-
userID: _userID,
|
|
92
|
-
order: attrNames
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
const loadFilterPanelItemOrder = () => {
|
|
96
|
-
filterPanelTable.where("[app+tableName+userID]").equals([vue.unref(appName), vue.unref(dataTable).name, _userID]).toArray((res) => {
|
|
97
|
-
var _a2, _b;
|
|
98
|
-
selectedColumnAttrNames.value = (_b = (_a2 = res[0]) == null ? void 0 : _a2.order) != null ? _b : [];
|
|
99
|
-
vue.nextTick(() => {
|
|
100
|
-
vue.unref(filterPanel).ready = true;
|
|
101
|
-
vue.unref(filterPanel).changeOriginFilterParams();
|
|
102
|
-
vue.unref(filterPanel).changeOriginSearchValue();
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
if (!vue.unref(filterPanel).isInited) {
|
|
107
|
-
webBaseClientVue.useEventDispatcher(filterPanel, "initCompleted", loadFilterPanelItemOrder);
|
|
108
|
-
} else {
|
|
109
|
-
loadFilterPanelItemOrder();
|
|
110
|
-
}
|
|
111
|
-
vue.onBeforeUnmount(() => {
|
|
112
|
-
selectedColumnChangeSubscription.unsubscribe();
|
|
113
|
-
});
|
|
114
|
-
const columns = vue.computed(() => vue.unref(filterPanel).getColumns());
|
|
115
|
-
const instance = vue.getCurrentInstance();
|
|
116
|
-
return {
|
|
117
|
-
dataTable,
|
|
118
|
-
filterPanel,
|
|
119
|
-
currentFilterColumns,
|
|
120
|
-
searchParams,
|
|
121
|
-
selectedColumnAttrNames,
|
|
122
|
-
closableColumns,
|
|
123
|
-
handleFieldSearch,
|
|
124
|
-
searchValue,
|
|
125
|
-
isChange,
|
|
126
|
-
handleReset,
|
|
127
|
-
handleSearch
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
exports.useFilterPanel = useFilterPanel;
|
package/lib/plugins.js
DELETED
package/lib/progress/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var install = require('element-plus/es/utils/vue/install');
|
|
6
|
-
var progress = require('./progress.js');
|
|
7
|
-
var progressItem = require('./progress-item.js');
|
|
8
|
-
|
|
9
|
-
const BwaProgress = install.withInstall(progress["default"], {
|
|
10
|
-
ProgressItem: progressItem["default"]
|
|
11
|
-
});
|
|
12
|
-
const BwaProgressItem = install.withInstall(progressItem["default"]);
|
|
13
|
-
|
|
14
|
-
exports.BwaProgress = BwaProgress;
|
|
15
|
-
exports.BwaProgressItem = BwaProgressItem;
|
|
16
|
-
exports["default"] = BwaProgress;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var rxjs = require('rxjs');
|
|
7
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
8
|
-
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
|
-
|
|
10
|
-
const __default__ = vue.defineComponent({ name: "BwaProgressItem" });
|
|
11
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
12
|
-
props: {
|
|
13
|
-
width: { type: Number, default: 0 },
|
|
14
|
-
label: { type: String, required: true }
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const props = __props;
|
|
18
|
-
const { width, label } = vue.toRefs(props);
|
|
19
|
-
const ns = webBaseClientVue.useNamespace("progress-item");
|
|
20
|
-
const progressItemEl = vue.ref(null);
|
|
21
|
-
const progress = vue.inject(webBaseClientVue.progressKey);
|
|
22
|
-
const percent = vue.computed(() => vue.unref(width) / progress.max * 100 + "%");
|
|
23
|
-
const attrs = vue.useAttrs();
|
|
24
|
-
const id = progress.nextID();
|
|
25
|
-
const colorObservable = new rxjs.Observable(
|
|
26
|
-
(observer) => vue.watch(
|
|
27
|
-
vue.computed(() => attrs.style["--bwa-progress-item-color"]),
|
|
28
|
-
observer.next.bind(observer),
|
|
29
|
-
{ immediate: true }
|
|
30
|
-
)
|
|
31
|
-
).pipe(rxjs.delayWhen(() => rxjs.from(vue.nextTick())));
|
|
32
|
-
const widthObservable = new rxjs.Observable(
|
|
33
|
-
(observer) => vue.watch(width, observer.next.bind(observer), { immediate: true })
|
|
34
|
-
).pipe(rxjs.map((width2) => parseInt(width2) || 0));
|
|
35
|
-
const labelObservable = new rxjs.Observable(
|
|
36
|
-
(observer) => vue.watch(label, observer.next.bind(observer), { immediate: true })
|
|
37
|
-
).pipe();
|
|
38
|
-
const progressItemObservable = rxjs.combineLatest([
|
|
39
|
-
widthObservable,
|
|
40
|
-
labelObservable,
|
|
41
|
-
colorObservable
|
|
42
|
-
]);
|
|
43
|
-
const subscription = progressItemObservable.subscribe({
|
|
44
|
-
next: ([width2, label2, color]) => {
|
|
45
|
-
progress.handleProgressItemCreate({
|
|
46
|
-
id,
|
|
47
|
-
width: width2,
|
|
48
|
-
label: label2,
|
|
49
|
-
color
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
complete: () => {
|
|
53
|
-
progress.handleProgressItemDestroy(id);
|
|
54
|
-
},
|
|
55
|
-
error: () => {
|
|
56
|
-
progress.handleProgressItemDestroy(id);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
vue.onBeforeUnmount(subscription.unsubscribe.bind(subscription));
|
|
60
|
-
return (_ctx, _cache) => {
|
|
61
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
62
|
-
class: vue.normalizeClass(vue.unref(ns).b()),
|
|
63
|
-
style: vue.normalizeStyle({ width: vue.unref(percent) }),
|
|
64
|
-
ref_key: "progressItemEl",
|
|
65
|
-
ref: progressItemEl
|
|
66
|
-
}, null, 6);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
var ProgressItem = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "progress-item.vue"]]);
|
|
71
|
-
|
|
72
|
-
exports["default"] = ProgressItem;
|
package/lib/progress/progress.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var ElementPlus = require('element-plus');
|
|
7
|
-
var webBaseClientVue = require('web-base-client-vue');
|
|
8
|
-
var useProgress = require('./use-progress.js');
|
|
9
|
-
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
|
-
|
|
11
|
-
const __default__ = vue.defineComponent({ name: "BwaProgress" });
|
|
12
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
13
|
-
props: {
|
|
14
|
-
max: { type: Number, default: 0 },
|
|
15
|
-
showLabel: { type: Boolean, default: true },
|
|
16
|
-
labelWidth: { type: String, default: "auto" }
|
|
17
|
-
},
|
|
18
|
-
setup(__props) {
|
|
19
|
-
const props = __props;
|
|
20
|
-
const { max } = vue.toRefs(props);
|
|
21
|
-
const ns = webBaseClientVue.useNamespace("progress");
|
|
22
|
-
const states = useProgress.useProgressState(props);
|
|
23
|
-
const { percent, handleProgressItemCreate, handleProgressItemDestroy, nextID } = useProgress.useProgress(props, states);
|
|
24
|
-
vue.provide(
|
|
25
|
-
webBaseClientVue.progressKey,
|
|
26
|
-
vue.reactive({ max, handleProgressItemCreate, handleProgressItemDestroy, nextID })
|
|
27
|
-
);
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
return vue.openBlock(), vue.createBlock(vue.unref(ElementPlus.ElTooltip), {
|
|
30
|
-
placement: "bottom-start",
|
|
31
|
-
effect: "light",
|
|
32
|
-
"append-to": ".bwa-application"
|
|
33
|
-
}, {
|
|
34
|
-
content: vue.withCtx(() => [
|
|
35
|
-
vue.createElementVNode("div", {
|
|
36
|
-
class: vue.normalizeClass(vue.unref(ns).be("info", "wrapper"))
|
|
37
|
-
}, [
|
|
38
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(states).progressItemList, (item) => {
|
|
39
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
40
|
-
key: item.id,
|
|
41
|
-
class: vue.normalizeClass(vue.unref(ns).be("item", "info")),
|
|
42
|
-
style: vue.normalizeStyle({ "--bwa-progress-item-dot-color": item.color })
|
|
43
|
-
}, [
|
|
44
|
-
vue.createElementVNode("span", {
|
|
45
|
-
class: vue.normalizeClass(vue.unref(ns).be("item", "label"))
|
|
46
|
-
}, vue.toDisplayString(item.label), 3),
|
|
47
|
-
vue.createElementVNode("span", {
|
|
48
|
-
class: vue.normalizeClass(vue.unref(ns).be("item", "value"))
|
|
49
|
-
}, vue.toDisplayString(item.width), 3)
|
|
50
|
-
], 6);
|
|
51
|
-
}), 128))
|
|
52
|
-
], 2)
|
|
53
|
-
]),
|
|
54
|
-
default: vue.withCtx(() => [
|
|
55
|
-
vue.createElementVNode("div", {
|
|
56
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
|
57
|
-
}, [
|
|
58
|
-
vue.createElementVNode("div", {
|
|
59
|
-
class: vue.normalizeClass(vue.unref(ns).e("inner")),
|
|
60
|
-
style: vue.normalizeStyle({ "--bwa-progress-width": vue.unref(max) })
|
|
61
|
-
}, [
|
|
62
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
63
|
-
], 6),
|
|
64
|
-
__props.showLabel ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
65
|
-
key: 0,
|
|
66
|
-
class: vue.normalizeClass(vue.unref(ns).e("percent")),
|
|
67
|
-
style: vue.normalizeStyle({ "--bwa-progress-label-width": __props.labelWidth })
|
|
68
|
-
}, vue.toDisplayString(vue.unref(percent)) + "% ", 7)) : vue.createCommentVNode("v-if", true)
|
|
69
|
-
], 2)
|
|
70
|
-
]),
|
|
71
|
-
_: 3
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
var Progress = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "progress.vue"]]);
|
|
77
|
-
|
|
78
|
-
exports["default"] = Progress;
|